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:
Marcelo Matus 2005-09-11 17:53:20 +00:00
commit 2557f80bba

View file

@ -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 = $$;
}
;