Changeset 6632 for trunk/tools


Ignore:
Timestamp:
Sep 4, 2001, 3:48:29 PM (24 years ago)
Author:
bird
Message:

Synced with os2tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/fastdep/fastdep.c

    r6158 r6632  
    1 /* $Id: fastdep.c,v 1.29 2001-07-03 21:59:56 bird Exp $
     1/* $Id: fastdep.c,v 1.30 2001-09-04 13:48:29 bird Exp $
    22 *
    33 * Fast dependents. (Fast = Quick and Dirty!)
     
    867867{
    868868    printf(
    869         "FastDep v0.40\n"
     869        "FastDep v0.41\n"
    870870        "Dependency scanner. Creates a makefile readable depend file.\n"
    871871        " - was quick and dirty, now it's just quick -\n"
     
    20652065
    20662066            /* add extention .cpy - hardcoded for the moment. */
    2067             strcat(szFullname, ".cpy");
     2067            strcpy(&szFullname[j], ".cpy");
    20682068
    20692069            /* find include file! */
    20702070            psz = pathlistFindFile(options.pszInclude, szFullname, szBuffer);
     2071            if (!psz)
     2072            {
     2073                strcpy(&szFullname[j], ".cbl");
     2074                psz = pathlistFindFile(options.pszInclude, szFullname, szBuffer);
     2075            }
    20712076
    20722077            /* did we find the include? */
     
    20802085            else
    20812086            {
    2082                 fprintf(stderr, "%s(%d): warning include file '%s' not found!\n",
     2087                szFullname[j] = '\0';
     2088                fprintf(stderr, "%s(%d): warning copybook '%s' was not found!\n",
    20832089                        pszFilename, iLine, szFullname);
    20842090                depMarkNotFound(pvRule);
Note: See TracChangeset for help on using the changeset viewer.