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