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:
parent
4fc70bb9a9
commit
c1e79cd94d
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue