mirror of https://github.com/swig/swig
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
|
@ -1,6 +1,9 @@
|
|||
Version 1.3.32 (in progress)
|
||||
============================
|
||||
|
||||
04/16/2007: olly
|
||||
Don't treat `restrict' as a reserved identifier in C++ mode.
|
||||
|
||||
04/16/2007: olly
|
||||
[PHP5] Fix how zend_throw_exception() is called (bug #1700785).
|
||||
|
||||
|
|
|
@ -220,6 +220,7 @@ CPP_TEST_CASES += \
|
|||
reference_global_vars \
|
||||
register_par \
|
||||
rename_scope \
|
||||
restrict_cplusplus \
|
||||
return_const_value \
|
||||
return_value_scope \
|
||||
rname \
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
%module restrict_cplusplus
|
||||
|
||||
%inline %{
|
||||
struct foo {
|
||||
int restrict;
|
||||
};
|
||||
%}
|
|
@ -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…
Reference in New Issue