Changeset 2104 for trunk/src/lib


Ignore:
Timestamp:
Nov 26, 2008, 2:52:53 AM (17 years ago)
Author:
bird
Message:
kDepIDB: Added a -qquiet switch for disabling harmless warnings about stale files that cannot be found.
Location:
trunk/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/kDep.c

    r2019 r2104  
    170170 * 'Optimizes' and corrects the dependencies.
    171171 */
    172 void depOptimize(int fFixCase)
     172void depOptimize(int fFixCase, int fQuiet)
    173173{
    174174    /*
     
    226226        if (stat(pszFilename, &s))
    227227        {
    228             fprintf(stderr, "kDep: Skipping '%s' - %s!\n", pszFilename, strerror(errno));
     228            if (   !fQuiet
     229                || errno != ENOENT
     230                || (   pszFilename[0] != '/'
     231                    && pszFilename[0] != '\\'
     232                    && (   !isalpha(pszFilename[0])
     233                        || pszFilename[1] != ':'
     234                        || (    pszFilename[2] != '/'
     235                            &&  pszFilename[2] != '\\')))
     236               )
     237                fprintf(stderr, "kDep: Skipping '%s' - %s!\n", pszFilename, strerror(errno));
    229238            continue;
    230239        }
  • trunk/src/lib/kDep.h

    r2019 r2104  
    4242
    4343extern PDEP depAdd(const char *pszFilename, size_t cchFilename);
    44 extern void depOptimize(int fFixCase);
     44extern void depOptimize(int fFixCase, int fQuiet);
    4545extern void depPrint(FILE *pOutput);
    4646extern void depPrintStubs(FILE *pOutput);
Note: See TracChangeset for help on using the changeset viewer.