Changeset 5283 for trunk/src/win32k


Ignore:
Timestamp:
Mar 2, 2001, 1:48:41 PM (25 years ago)
Author:
bird
Message:

Fixed CL compiler bugs.
And new toolkit boog.

Location:
trunk/src/win32k
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/clfix.c

    r4580 r5283  
    1 /* $Id: clfix.c,v 1.2 2000-11-09 20:42:43 bird Exp $
     1/* $Id: clfix.c,v 1.3 2001-03-02 12:48:41 bird Exp $
    22 *
    33 * A wrapper program for cl.exe fix will try fix some of the problems
     
    2828{
    2929    static char     szArgBuffer[32768];
     30        static char             szzEnv[4096];
     31        char *                  pszEnv = &szzEnv[0];
    3032    RESULTCODES     resc;
    3133    int             argi;
     
    3436    APIRET          rc;
    3537
    36 
     38       
    3739    /*
    3840     * Check that we have cl.exe at least passed in.
     
    5052    }
    5153
     54        /*
     55         * Blow away extra libpaths.
     56         */
     57        DosSetExtLIBPATH("", BEGIN_LIBPATH);
     58        DosSetExtLIBPATH("", END_LIBPATH);
     59
    5260
    5361    /*
     
    5967
    6068
    61     /* The other arguments. */
     69    /*
     70     * The other arguments.
     71         *              The -I arguments are put into the environment variable INCLUDE.
     72     */
     73        strcpy(pszEnv, "INCLUDE=");
     74    pszEnv += strlen(pszEnv);
    6275    if (argc > 2)
    6376    {
     
    6578        while (argi < argc)
    6679        {
    67             strcpy(psz, argv[argi]);
    68             psz += strlen(psz);
    69             *psz++ = ' ';
    70             argi++;
     80            if (   (argv[argi][0] == '-' || argv[argi][0] == '/')
     81                && (argv[argi][1] == 'I' || argv[argi][1] == 'i'))
     82            {
     83                strcpy(pszEnv, &argv[argi][2]);
     84                pszEnv += strlen(pszEnv);
     85                *pszEnv++ = ';';
     86                argi++;
     87            }
     88                        else
     89            {
     90                strcpy(psz, argv[argi]);
     91                psz += strlen(psz);
     92                *psz++ = ' ';
     93                argi++;
     94            }
    7195        }
    7296        psz[-1] = '\0';
     
    7498    *psz = '\0';
    7599
     100        printf("exe: %s\n", szArgBuffer);
     101        printf("arg: %s\n", szArgBuffer + strlen(szArgBuffer)+1);
     102        printf("env: %s\n", szzEnv);
    76103
    77104    /*
     
    91118    if (rc)
    92119        printf("clfix: DosDupHandle failed with rc=%d\n\n", rc);
    93 
     120                                                         
    94121
    95122    /*
     
    99126     *  this will solve the problems.
    100127     */
    101     if (DosExecPgm(NULL, 0, EXEC_SYNC, szArgBuffer, "\0\0", &resc, szArgBuffer) != NO_ERROR)
     128    if (DosExecPgm(NULL, 0, EXEC_SYNC, szArgBuffer, &szzEnv[0], &resc, szArgBuffer) != NO_ERROR)
    102129    {
    103130        /*complain*/
  • trunk/src/win32k/dev16/d16init.c

    r4787 r5283  
    1 /* $Id: d16init.c,v 1.9 2000-12-11 06:53:48 bird Exp $
     1/* $Id: d16init.c,v 1.10 2001-03-02 12:48:41 bird Exp $
    22 *
    33 * d16init - init routines for both drivers.
     
    9898    USHORT          usAction = 0;
    9999    NPSZ            npszErrMsg = NULL;
    100     NPSZ            npszErrMsg2 = NULL;
     100    const char *    npszErrMsg2 = NULL;
    101101
    102102    /*
     
    132132                    npszErrMsg = "Ring-0 initiation failed. rc=%x\n";
    133133                    if (rc >= ERROR_D32_FIRST && rc <= ERROR_D32_LAST)
    134                         npszErrMsg2 = GetErrorMsg(data.usRcInit32 + ERROR_PROB_SYM_D32_FIRST - ERROR_D32_FIRST);
     134                        npszErrMsg2 =
     135                        GetErrorMsg(
     136                        data.usRcInit32
     137                        + ERROR_PROB_SYM_D32_FIRST
     138                        - ERROR_D32_FIRST
     139                        );
    135140                }
    136141            }
     
    289294    return rc;
    290295}
     296
  • trunk/src/win32k/dev16/d16strat.c

    r4185 r5283  
    1 /* $Id: d16strat.c,v 1.10 2000-09-04 16:40:48 bird Exp $
     1/* $Id: d16strat.c,v 1.11 2001-03-02 12:48:41 bird Exp $
    22 *
    33 * d16strat.c - 16-bit strategy routine, device headers, device_helper (ptr)
     
    3939*   Global Variables                                                           *
    4040*******************************************************************************/
     41extern DDHDR _far aDevHdrs[2];
    4142DDHDR aDevHdrs[2] = /* This is the first piece data in the driver!!!!!!! */
    4243{
    4344    {
    44         (unsigned long)(void _far *)(&aDevHdrs[1]), /* NextHeader */
     45        &aDevHdrs[1], /* NextHeader */
    4546        DEVLEV_3 | DEV_30 | DEV_CHAR_DEV,           /* SDevAtt */
    4647        (unsigned short)(void _near *)strategyAsm0, /* StrategyEP */
  • trunk/src/win32k/test/win32ktst.c

    r5111 r5283  
    1 /* $Id: win32ktst.c,v 1.8 2001-02-11 15:28:10 bird Exp $
     1/* $Id: win32ktst.c,v 1.9 2001-03-02 12:48:41 bird Exp $
    22 *
    33 * Win32k test module.
     
    145145*   Structures and Typedefs                                                    *
    146146*******************************************************************************/
    147 #ifndef QS_MTE
     147#if !defined(QS_MTE) || defined(QS_MODVER)
    148148   /* From OS/2 Toolkit v4.5 (BSEDOS.H) */
    149149
Note: See TracChangeset for help on using the changeset viewer.