fig bug #1477756, inline and restrict keywords in C99
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
856e304379
commit
6b1607a19a
1 changed files with 3 additions and 0 deletions
|
|
@ -1278,6 +1278,7 @@ int yylex(void) {
|
|||
if (strcmp(yytext,"catch") == 0) return (CATCH);
|
||||
if (strcmp(yytext,"inline") == 0) 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) return(yylex());
|
||||
if (strcmp(yytext,"typename") == 0) return (TYPENAME);
|
||||
|
|
@ -1337,6 +1338,8 @@ int yylex(void) {
|
|||
|
||||
if (strcmp(yytext,"volatile") == 0) return(VOLATILE);
|
||||
if (strcmp(yytext,"register") == 0) 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