add initial C99 complex support + long double

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-10 08:18:14 +00:00
commit 2459ec99d1
5 changed files with 36 additions and 3 deletions

View file

@ -1200,6 +1200,10 @@ int yylex(void) {
if (strcmp(yytext,"class") == 0) {
Swig_warning(WARN_PARSE_CLASS_KEYWORD,cparse_file,cparse_line, "class keyword used, but not in C++ mode.\n");
}
if (strcmp(yytext,"complex") == 0) {
yylval.type = NewSwigType(T_COMPLEX);
return(TYPE_COMPLEX);
}
}
/* Objective-C keywords */