Removed last vestiges of enums being handled as integers in the core.
Mod for consistency across warning messages. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6778 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0c9b24e339
commit
77d2823b7f
1 changed files with 3 additions and 4 deletions
|
|
@ -1849,14 +1849,12 @@ module_directive: MODULE options idstring {
|
||||||
------------------------------------------------------------ */
|
------------------------------------------------------------ */
|
||||||
|
|
||||||
name_directive : NAME LPAREN idstring RPAREN {
|
name_directive : NAME LPAREN idstring RPAREN {
|
||||||
Swig_warning(WARN_DEPRECATED_NAME,cparse_file,cparse_line,
|
Swig_warning(WARN_DEPRECATED_NAME,cparse_file,cparse_line, "%%name is deprecated. Use %%rename instead.\n");
|
||||||
"%%name is deprecated. Use %%rename instead (see docs).\n");
|
|
||||||
yyrename = NewString($3);
|
yyrename = NewString($3);
|
||||||
$$ = 0;
|
$$ = 0;
|
||||||
}
|
}
|
||||||
| NAME LPAREN RPAREN {
|
| NAME LPAREN RPAREN {
|
||||||
Swig_warning(WARN_DEPRECATED_NAME,cparse_file,cparse_line,
|
Swig_warning(WARN_DEPRECATED_NAME,cparse_file,cparse_line, "%%name is deprecated. Use %%rename instead.\n");
|
||||||
"%%name is deprecated. Use %%rename instead (see docs).\n");
|
|
||||||
$$ = 0;
|
$$ = 0;
|
||||||
Swig_error(cparse_file,cparse_line,"Missing argument to %%name directive.\n");
|
Swig_error(cparse_file,cparse_line,"Missing argument to %%name directive.\n");
|
||||||
}
|
}
|
||||||
|
|
@ -2711,6 +2709,7 @@ c_enum_decl : storage_class ENUM ename LBRACE enumlist RBRACE SEMI {
|
||||||
Setattr(n,"unnamed",unnamed);
|
Setattr(n,"unnamed",unnamed);
|
||||||
|
|
||||||
if (unnamedinstance) {
|
if (unnamedinstance) {
|
||||||
|
Setattr($$,"type",NewString("enum "));
|
||||||
Setattr($$,"unnamedinstance","1");
|
Setattr($$,"unnamedinstance","1");
|
||||||
Setattr(n,"unnamedinstance","1");
|
Setattr(n,"unnamedinstance","1");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue