Minor stuff

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-09-26 21:34:11 +00:00
commit ee4856e064
3 changed files with 6 additions and 4 deletions

View file

@ -325,7 +325,7 @@ statement : swig_directive { $$ = $1; }
* -- SWIG DIRECTIVES --
* ============================================================================= */
swig_directive : MODULE idstring {
$$ = new_node("moduledirective",$1.filename,$1.line);
$$ = new_node("module",$1.filename,$1.line);
Setattr($$,ATTR_NAME,$2.text);
}
| MACRO ID COMMA STRING COMMA NUM_INT LBRACE {
@ -337,7 +337,7 @@ swig_directive : MODULE idstring {
$$ = $9.node;
}
| RENAME ID ID SEMI {
$$ = new_node("renamedirective",$2.filename,$2.line);
$$ = new_node("rename",$2.filename,$2.line);
Setattr($$,"oldname",$2.text);
Setattr($$,"newname",$3.text);
}

View file

@ -26,11 +26,11 @@ tag : "scope"
syntax : { statements }
attributes : None. "child" attribute contains nodes within the scope.
tag : "moduledirective"
tag : "module"
syntax : %module idstring
attributes : "name" - Module name
tag : "renamedirective"
tag : "rename"
syntax : %rename id1 id2;
attributes : "oldname" - Old name (id1)
"newname" - New name (id2)

View file

@ -9,6 +9,7 @@
#include "preprocessor.h"
#include "lparse.h"
#ifdef OLDSTUFF
/* -------- Module variables ------- */
#define CPLUS_PUBLIC 1
@ -640,6 +641,7 @@ void test_init() {
config_top = LParse_parse(pconfig);
}
#endif