VirtualBox

Changeset 325 in kBuild for trunk


Ignore:
Timestamp:
Oct 3, 2005 2:46:21 PM (19 years ago)
Author:
bird
Message:

stupid, stupid bug in w32 casing.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r317 r325  
    11/* $Id$ */
     2
     32005-10-03: bird
     4    - src/kDepPre/kDepPre.c, kBuild/bin/x86.win32/kDepPre.exe:
     5        o Fixed stupid stupid bug in the win32 case correcting code.
     6          Rebuilt the win32 binary.
    27
    382005-08-11: bird
  • trunk/src/kDepPre/kDepPre.c

    r304 r325  
    3232#ifdef __WIN32__
    3333#include <windows.h>
    34 #endif 
    35 
    36 #ifdef HAVE_FGETC_UNLOCKED 
     34#endif
     35
     36#ifdef HAVE_FGETC_UNLOCKED
    3737# define FGETC(s)   getc_unlocked(s)
    3838#else
    3939# define FGETC(s)   fgetc(s)
    40 #endif 
     40#endif
    4141
    4242#ifdef NEED_ISBLANK
    4343# define isblank(ch) ( (unsigned char)(ch) == ' ' || (unsigned char)(ch) == '\t' )
    44 #endif 
     44#endif
    4545
    4646
     
    5656    struct DEP *pNext;
    5757    /** The filename hash. */
    58     unsigned    uHash; 
     58    unsigned    uHash;
    5959    /** The length of the filename. */
    60     size_t      cchFilename;   
     60    size_t      cchFilename;
    6161    /** The filename. */
    6262    char        szFilename[4];
     
    7575 * Corrects the case of a path.
    7676 * Expects a fullpath!
    77  * 
     77 *
    7878 * @param   pszPath     Pointer to the path, both input and output.
    7979 *                      The buffer must be able to hold one more byte than the string length.
     
    9090        } \
    9191    } while (0)
    92    
     92
    9393    char *psz = pszPath;
    9494    if (*psz == '/' || *psz == '\\')
     
    189189}
    190190
    191 #endif 
     191#endif
    192192
    193193
    194194/**
    195195 * Prints the dependency chain.
    196  * 
     196 *
    197197 * @returns Pointer to the allocated dependency.
    198198 * @param   pOutput     Output stream.
     
    203203    for (pDep = g_pDeps; pDep; pDep = pDep->pNext)
    204204    {
    205         /* 
     205        /*
    206206         * Skip some fictive names like <built-in> and <command line>.
    207207         */
     
    214214        if (_fullpath(szFilename, pDep->szFilename, sizeof(szFilename)))
    215215            w32_fixcase(szFilename);
     216        fprintf(pOutput, " \\\n\t%s", szFilename);
     217        }
     218#else
    216219        fprintf(pOutput, " \\\n\t%s", pDep->szFilename);
    217         }
    218 #else       
    219         fprintf(pOutput, " \\\n\t%s", pDep->szFilename);
    220 #endif       
     220#endif
    221221    }
    222222    fprintf(pOutput, "\n\n");
     
    249249/**
    250250 * Adds a dependency.
    251  * 
     251 *
    252252 * @returns Pointer to the allocated dependency.
    253253 * @param   pszFilename     The filename.
     
    265265    pDepPrev = NULL;
    266266    for (pDep = g_pDeps; pDep; pDepPrev = pDep, pDep = pDep->pNext)
    267         if (    pDep->uHash == uHash 
     267        if (    pDep->uHash == uHash
    268268            &&  pDep->cchFilename == cchFilename
    269269            &&  !memcmp(pDep->szFilename, pszFilename, cchFilename))
     
    300300/**
    301301 * Parses the output from a preprocessor of a C-style language.
    302  * 
     302 *
    303303 * @returns 0 on success.
    304304 * @returns 1 or other approriate exit code on failure.
     
    307307static int ParseCPrecompiler(FILE *pInput)
    308308{
    309     enum 
     309    enum
    310310    {
    311311        C_DISCOVER = 0,
     
    416416                /* retreive and unescape the filename. */
    417417                char   *psz = &szBuf[0];
    418                 while (     (ch = FGETC(pInput)) != EOF 
     418                while (     (ch = FGETC(pInput)) != EOF
    419419                       &&   psz < &szBuf[sizeof(szBuf) - 1])
    420420                {
     
    432432                                fprintf(stderr, "warning: unknown escape char '%c'\n", ch);
    433433                                continue;
    434                                
     434
    435435                        }
    436436                        *psz++ = ch == '\\' ? '/' : ch;
     
    443443                        *psz = '\0';
    444444                        /* compare with current dep, add & switch on mismatch. */
    445                         if (    !pDep 
     445                        if (    !pDep
    446446                            ||  pDep->cchFilename != cchFilename
    447447                            ||  memcmp(pDep->szFilename, szBuf, cchFilename))
     
    479479{
    480480    int         i;
    481    
     481
    482482    /* Arguments. */
    483483    int         iExec = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette