add more support for wchar

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-13 09:23:20 +00:00
commit c1e79cd94d
2 changed files with 6 additions and 1 deletions

View file

@ -1100,6 +1100,10 @@ int yylex(void) {
yylval.type = NewSwigType(T_CHAR);
return(TYPE_CHAR);
}
if (strcmp(yytext,"wchar_t") == 0) {
yylval.type = NewSwigType(T_WCHAR);
return(TYPE_WCHAR);
}
if (strcmp(yytext,"short") == 0) {
yylval.type = NewSwigType(T_SHORT);
return(TYPE_SHORT);

View file

@ -81,7 +81,8 @@ typedef DOH SwigType;
/* non-numeric */
#define T_CHAR 30
#define T_CHAR 29
#define T_WCHAR 30
#define T_USER 31
#define T_VOID 32
#define T_STRING 33