Check for garbage after #include

This commit is contained in:
ceriel 1991-01-03 13:45:22 +00:00
parent d7b6541a62
commit 72fcc53c49

View file

@ -307,7 +307,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)){