minor rewrite of enum value handling
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7df94f65e5
commit
4ebb9b0db2
3 changed files with 30 additions and 27 deletions
|
|
@ -3127,8 +3127,8 @@ c_enum_decl : storage_class ENUM ename LBRACE enumlist RBRACE SEMI {
|
|||
if (unnamedinstance) {
|
||||
SwigType *cty = NewString("enum ");
|
||||
Setattr($$,"type",cty);
|
||||
Setattr($$,"unnamedinstance","1");
|
||||
Setattr(n,"unnamedinstance","1");
|
||||
SetFlag($$,"unnamedinstance");
|
||||
SetFlag(n,"unnamedinstance");
|
||||
Delete(cty);
|
||||
}
|
||||
if ($8) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue