diff --git a/Source/CParse/cscanner.c b/Source/CParse/cscanner.c index 42b3e54ff..3b2e9658f 100644 --- a/Source/CParse/cscanner.c +++ b/Source/CParse/cscanner.c @@ -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 {