Fix -nopreprocess option to correctly generate output filenames and display filenames in warnings and errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ef14c8a6f6
commit
8ac9453f62
5 changed files with 81 additions and 53 deletions
|
|
@ -1894,6 +1894,8 @@ include_directive: includetype options string LBRACKET {
|
|||
$1.filename = Copy(cparse_file);
|
||||
$1.line = cparse_line;
|
||||
scanner_set_location(NewString($3),1);
|
||||
if ($2 && GetFlag($2, "maininput"))
|
||||
scanner_set_main_input_file(NewString($3));
|
||||
} interface RBRACKET {
|
||||
String *mname = 0;
|
||||
$$ = $6;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue