Check for garbage in #pragma and #include

This commit is contained in:
ceriel
1991-01-03 13:50:57 +00:00
parent 72fcc53c49
commit 589f3a3e35
2 changed files with 31 additions and 3 deletions

View File

@@ -312,7 +312,9 @@ do_include()
filenm = (char *)0;
}
AccFileSpecifier = 0;
SkipToNewLine();
if (SkipToNewLine()) {
error("bad include syntax");
}
inctable[0] = WorkingDir;
if (filenm) {
if (!InsertFile(filenm, &inctable[tok==FILESPECIFIER],&result)){