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:
William S Fulton 2009-09-13 20:20:11 +00:00
commit 4ebb9b0db2
3 changed files with 30 additions and 27 deletions

View file

@ -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) {