Check for garbage after #include
This commit is contained in:
parent
4274e43ced
commit
13f0286788
@ -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)){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user