Changeset 3556 for trunk/tools


Ignore:
Timestamp:
May 18, 2000, 11:28:40 PM (25 years ago)
Author:
bird
Message:

Hot fix for bug in langRC. '"' weren't removed in RCINCLUDE statements.
extention ".orc" is handled by langRC.

File:
1 edited

Legend:

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

    r3213 r3556  
    1 /* $Id: fastdep.c,v 1.19 2000-03-24 01:50:36 bird Exp $
     1/* $Id: fastdep.c,v 1.20 2000-05-18 21:28:40 bird Exp $
    22 *
    33 * Fast dependents. (Fast = Quick and Dirty!)
     
    243243static const char *apszExtC_CPP[] = {"c", "sqc", "cpp", "h", "hpp", NULL};
    244244static const char *apszExtAsm[]   = {"asm", "inc", NULL};
    245 static const char *apszExtRC[]    = {"rc", "dlg", NULL};
     245static const char *apszExtRC[]    = {"rc", "orc", "dlg", NULL};
    246246static const char *apszExtCOBOL[] = {"cbl", "cob", "sqb", NULL};
    247247static CONFIGENTRY aConfig[] =
     
    261261    {
    262262        apszExtRC,
    263         1,
     263        2,
    264264        langRC,
    265265    },
     
    12871287
    12881288        /* is this an include? */
    1289         if (   (i1 = strncmp(&szBuffer[i], "#include", 8)) == 0
    1290             ||       strncmp(&szBuffer[i], "RCINCLUDE", 9) == 0
    1291             || (i1 = strncmp(&szBuffer[i], "DLGINCLUDE", 10)) == 0
     1289        i1 = 1;
     1290        if (   strncmp(&szBuffer[i], "#include", 8) == 0
     1291            || (i1 = strncmp(&szBuffer[i], "RCINCLUDE", 9)) == 0
     1292            || strncmp(&szBuffer[i], "DLGINCLUDE", 10) == 0
    12921293            )
    12931294        {
     
    12971298            int  j;
    12981299
    1299             if (i1 == 0)
     1300            if (i1 != 0)
    13001301            {   /*
    13011302                 * #include <file.h>,  #include "file.h" or DLGINCLUDE 1 "file.h"
     
    13201321            }
    13211322            else
    1322             {   /* RCINCLUDE filename.dlg
     1323            {   /*
     1324                 * RCINCLUDE ["]filename.dlg["]
    13231325                 * Extract filename.
    13241326                 */
     
    13261328                /* skip to filename.dlg start - if eol will continue to loop. */
    13271329                i += 9;
    1328                 while (szBuffer[i] == ' ' || szBuffer[i] == '\t')
     1330                while (szBuffer[i] == ' ' || szBuffer[i] == '\t' || szBuffer[i] == '"')
    13291331                    i++;
    13301332                if (szBuffer[i] == '\0')
     
    13331335                /* search to end of filename. */
    13341336                j = i+1;
    1335                 while (szBuffer[i+j] != ' ' && szBuffer[i+j] != '\t' && szBuffer[i+j] != '\0')
     1337                while (   szBuffer[i+j] != ' ' && szBuffer[i+j] != '\t'
     1338                       && szBuffer[i+j] != '"' && szBuffer[i+j] != '\0')
    13361339                    j++;
    13371340            }
Note: See TracChangeset for help on using the changeset viewer.