Changeset 3556 for trunk/tools
- Timestamp:
- May 18, 2000, 11:28:40 PM (25 years ago)
- File:
-
- 1 edited
-
trunk/tools/fastdep/fastdep.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/fastdep/fastdep.c
r3213 r3556 1 /* $Id: fastdep.c,v 1. 19 2000-03-24 01:50:36bird Exp $1 /* $Id: fastdep.c,v 1.20 2000-05-18 21:28:40 bird Exp $ 2 2 * 3 3 * Fast dependents. (Fast = Quick and Dirty!) … … 243 243 static const char *apszExtC_CPP[] = {"c", "sqc", "cpp", "h", "hpp", NULL}; 244 244 static const char *apszExtAsm[] = {"asm", "inc", NULL}; 245 static const char *apszExtRC[] = {"rc", " dlg", NULL};245 static const char *apszExtRC[] = {"rc", "orc", "dlg", NULL}; 246 246 static const char *apszExtCOBOL[] = {"cbl", "cob", "sqb", NULL}; 247 247 static CONFIGENTRY aConfig[] = … … 261 261 { 262 262 apszExtRC, 263 1,263 2, 264 264 langRC, 265 265 }, … … 1287 1287 1288 1288 /* 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 1292 1293 ) 1293 1294 { … … 1297 1298 int j; 1298 1299 1299 if (i1 == 0)1300 if (i1 != 0) 1300 1301 { /* 1301 1302 * #include <file.h>, #include "file.h" or DLGINCLUDE 1 "file.h" … … 1320 1321 } 1321 1322 else 1322 { /* RCINCLUDE filename.dlg 1323 { /* 1324 * RCINCLUDE ["]filename.dlg["] 1323 1325 * Extract filename. 1324 1326 */ … … 1326 1328 /* skip to filename.dlg start - if eol will continue to loop. */ 1327 1329 i += 9; 1328 while (szBuffer[i] == ' ' || szBuffer[i] == '\t' )1330 while (szBuffer[i] == ' ' || szBuffer[i] == '\t' || szBuffer[i] == '"') 1329 1331 i++; 1330 1332 if (szBuffer[i] == '\0') … … 1333 1335 /* search to end of filename. */ 1334 1336 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') 1336 1339 j++; 1337 1340 }
Note:
See TracChangeset
for help on using the changeset viewer.
