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:
parent
703a022d0a
commit
ee4856e064
3 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue