fix incomplete module name replacement when using the -module flag #1282637
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bd470c2e61
commit
2557f80bba
1 changed files with 1 additions and 1 deletions
|
|
@ -1857,7 +1857,6 @@ insert_directive : HBLOCK {
|
|||
|
||||
module_directive: MODULE options idstring {
|
||||
$$ = new_node("module");
|
||||
Setattr($$,"name",$3);
|
||||
if ($2) {
|
||||
Setattr($$,"options",$2);
|
||||
if (Getattr($2,"directors")) {
|
||||
|
|
@ -1873,6 +1872,7 @@ module_directive: MODULE options idstring {
|
|||
}
|
||||
}
|
||||
if (!ModuleName) ModuleName = NewString($3);
|
||||
Setattr($$,"name",ModuleName);
|
||||
if (!module_node) module_node = $$;
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue