Modify following features to work as flags, so that they can be truely set and unset:
immutable git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bc0c43d7c1
commit
32839df23b
12 changed files with 42 additions and 42 deletions
|
|
@ -1591,7 +1591,7 @@ constant_directive : CONSTANT ID EQUAL definetype SEMI {
|
|||
Setattr($$,"value",$4.val);
|
||||
if ($4.rawval) Setattr($$,"rawval", $4.rawval);
|
||||
Setattr($$,"storage","%constant");
|
||||
Setattr($$,"feature:immutable","1");
|
||||
SetFlag($$,"feature:immutable");
|
||||
add_symbols($$);
|
||||
} else {
|
||||
if ($4.type == T_ERROR) {
|
||||
|
|
@ -1615,7 +1615,7 @@ constant_directive : CONSTANT ID EQUAL definetype SEMI {
|
|||
Setattr($$,"value",$4.val);
|
||||
if ($4.rawval) Setattr($$,"rawval", $4.rawval);
|
||||
Setattr($$,"storage","%constant");
|
||||
Setattr($$,"feature:immutable","1");
|
||||
SetFlag($$,"feature:immutable");
|
||||
add_symbols($$);
|
||||
} else {
|
||||
if ($4.type == T_ERROR) {
|
||||
|
|
@ -4927,7 +4927,7 @@ edecl : ID {
|
|||
$$ = new_node("enumitem");
|
||||
Setattr($$,"name",$1);
|
||||
Setattr($$,"type",NewSwigType(T_INT));
|
||||
Setattr($$,"feature:immutable","1");
|
||||
SetFlag($$,"feature:immutable");
|
||||
}
|
||||
| ID EQUAL etype {
|
||||
$$ = new_node("enumitem");
|
||||
|
|
@ -4940,7 +4940,7 @@ edecl : ID {
|
|||
Setattr($$,"value",$1);
|
||||
Setattr($$,"type",NewSwigType(T_INT));
|
||||
}
|
||||
Setattr($$,"feature:immutable","1");
|
||||
SetFlag($$,"feature:immutable");
|
||||
}
|
||||
| empty { $$ = 0; }
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue