Changeset 2104 for trunk/src/lib/kDep.c


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.
File:
1 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        }
Note: See TracChangeset for help on using the changeset viewer.