Check for garbage after #include
This commit is contained in:
parent
d7b6541a62
commit
72fcc53c49
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue