Ignore:
Timestamp:
Nov 1, 1999, 12:57:09 AM (26 years ago)
Author:
bird
Message:

Updated option/argument handling.
Corrected a few bugs.

Location:
trunk/src/win32k/dev16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/dev16/d16init.c

    r1467 r1535  
    1 /* $Id: d16init.c,v 1.2 1999-10-27 02:02:53 bird Exp $
     1/* $Id: d16init.c,v 1.3 1999-10-31 23:57:00 bird Exp $
    22 *
    33 * d16init - init routines for both drivers.
     
    9494                else
    9595                {
     96                    /* FIXME quiet test! */
    9697                    register NPSZ npsz = "Win32k.sys succesfully initiated!\n\r";
    9798                    DosPutMessage(1, strlen(npsz)+1, npsz);
  • trunk/src/win32k/dev16/probkrnl.c

    r1467 r1535  
    1 /* $Id: probkrnl.c,v 1.2 1999-10-27 02:02:53 bird Exp $
     1/* $Id: probkrnl.c,v 1.3 1999-10-31 23:57:01 bird Exp $
    22 *
    33 * Description:   Autoprobes the os2krnl file and os2krnl[*].sym files.
     
    66 *                16-bit inittime code.
    77 *
    8  *                All data has to be initiated because this file is to be compiled into assembly,
    9  *                automaticly modified and run thru an assembler to produce an object-file. This
    10  *                because there is no other known way to combine 32-bit and 16-bit C/C++ code into
    11  *                the same device driver which works.
     8 *                All data has to be initiated because this is 16-bit C code
     9 *                and is to be linked with 32-bit C/C++ code. Uninitiazlied
     10 *                data ends up in the BSS segment, and that segment can't
     11 *                both be 32-bit and 16-bit. I have not found any other way
     12 *                around this problem that initiating all data.
    1213 *
    1314 *                How this works:
     
    8687};
    8788
    88 unsigned long int   fInitSuccess = 0;
    8989unsigned long int   ulBuild      = 0;
    9090unsigned short      usVerMajor   = 0;
     
    9696 */
    9797static int      fQuiet = 0;
    98 
    9998static char     szUsrOS2Krnl[50] = {0};
    10099static char     szOS2Krnl[]      = {"c:\\os2krnl"};
     
    917916/**
    918917 * "main" function.
     918 * Note that the option -Noloader causes nothing to be done.
    919919 * @returns   0 on success, something else on error.
    920920 * @param     pReqPack  Pointer to init request packet
    921921 * @remark
    922  * @result    init_success
    923922 */
    924923int ProbeKernel(PRPINITIN pReqPack)
     
    943942            {
    944943                i++;
    945                 if (pReqPack->InitArgs[i] == 'V' || pReqPack->InitArgs[i] == 'v')
    946                     fQuiet = 0;
    947                 else if (pReqPack->InitArgs[i] == 'Q' || pReqPack->InitArgs[i] == 'q')
    948                     fQuiet = 1;
    949                 else if (pReqPack->InitArgs[i] == 'K' || pReqPack->InitArgs[i] == 'k')
    950                 {   /* kernel file */
    951                     i++;
    952                     i += kargncpy(szUsrOS2Krnl, &pReqPack->InitArgs[i], sizeof(szUsrOS2Krnl));
    953                 }
    954                 else if (pReqPack->InitArgs[i] == 'S' || pReqPack->InitArgs[i] == 's')
    955                 {   /* symbol file */
    956                     i++;
    957                     i += kargncpy(szUsrSym, &pReqPack->InitArgs[i], sizeof(szUsrSym));
     944                switch (pReqPack->InitArgs[i])
     945                {
     946                    case 'k':
     947                    case 'K': /* Kernel file */
     948                        i++;
     949                        i += kargncpy(szUsrOS2Krnl, &pReqPack->InitArgs[i], sizeof(szUsrOS2Krnl));
     950                        break;
     951
     952                    case 'n':
     953                    case 'N': /* NoLoader */
     954                        return 0;
     955
     956                    case 'q':
     957                    case 'Q': /* Quiet */
     958                        fQuiet = 1;
     959                        break;
     960
     961                    case 's':
     962                    case 'S': /* Symbol file */
     963                        i++;
     964                        i += kargncpy(szUsrSym, &pReqPack->InitArgs[i], sizeof(szUsrSym));
     965                        break;
     966
     967                    case 'v':
     968                    case 'V': /* Verbose */
     969                        fQuiet = 0;
     970                        break;
    958971                }
    959972            }
     
    10291042    dprintf(("rc=%d; i=%d\n", rc, i));
    10301043    ShowResult(rc, i);
    1031     fInitSuccess = rc = 0;
    10321044
    10331045    return rc;
Note: See TracChangeset for help on using the changeset viewer.