Don't treat `restrict' as a reserved identifier in C++ mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e6611209f6
commit
07ae5a2aca
4 changed files with 13 additions and 4 deletions
|
|
@ -751,8 +751,6 @@ int yylex(void) {
|
|||
return (yylex());
|
||||
if (strcmp(yytext, "mutable") == 0)
|
||||
return (yylex());
|
||||
if (strcmp(yytext, "restrict") == 0)
|
||||
return (yylex());
|
||||
if (strcmp(yytext, "explicit") == 0)
|
||||
return (EXPLICIT);
|
||||
if (strcmp(yytext, "export") == 0)
|
||||
|
|
@ -780,6 +778,8 @@ int yylex(void) {
|
|||
yylval.type = NewSwigType(T_COMPLEX);
|
||||
return (TYPE_COMPLEX);
|
||||
}
|
||||
if (strcmp(yytext, "restrict") == 0)
|
||||
return (yylex());
|
||||
}
|
||||
|
||||
/* Misc keywords */
|
||||
|
|
@ -812,8 +812,6 @@ int yylex(void) {
|
|||
return (REGISTER);
|
||||
if (strcmp(yytext, "inline") == 0)
|
||||
return (yylex());
|
||||
if (strcmp(yytext, "restrict") == 0)
|
||||
return (yylex());
|
||||
|
||||
/* SWIG directives */
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue