change flag -xs to -i, -xm to -m, dependencies

This commit is contained in:
ceriel
1990-06-06 16:10:19 +00:00
parent 27c1b37c21
commit aff5b89ac9
7 changed files with 125 additions and 8 deletions

View File

@@ -35,6 +35,7 @@ char ifstack[IFDEPTH]; /* if-stack: the content of an entry is */
int nestlevel = -1;
int svnestlevel[30] = {-1};
int nestcount;
extern int do_preprocess;
char *
GetIdentifier(skiponerr)
@@ -301,10 +302,12 @@ do_include()
inctable[0] = WorkingDir;
if (filenm) {
if (!InsertFile(filenm, &inctable[tok==FILESPECIFIER],&result)){
error("cannot open include file \"%s\"", filenm);
if (do_preprocess) error("cannot open include file \"%s\"", filenm);
else warning("cannot open include file \"%s\"", filenm);
add_dependency(filenm);
}
else {
if (filenm != result) free(filenm);
add_dependency(result);
WorkingDir = getwdir(result);
svnestlevel[++nestcount] = nestlevel;
FileName = result;