Fixed [ 779062 ] Class"\n"::foo not supported.
Also changed 'char' to 'int' in a few places to silence warning messages. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f5d3cbda02
commit
16d2a79297
1 changed files with 4 additions and 4 deletions
|
|
@ -391,7 +391,7 @@ void skip_decl(void) {
|
|||
static void get_escape() {
|
||||
int result = 0;
|
||||
int state = 0;
|
||||
char c;
|
||||
int c;
|
||||
|
||||
while(1) {
|
||||
c = nextchar();
|
||||
|
|
@ -495,7 +495,7 @@ static void get_escape() {
|
|||
int yylook(void) {
|
||||
|
||||
int state;
|
||||
char c = 0;
|
||||
int c = 0;
|
||||
|
||||
state = 0;
|
||||
yylen = 0;
|
||||
|
|
@ -512,11 +512,11 @@ int yylook(void) {
|
|||
if (c == '\n') {
|
||||
state = 0;
|
||||
yylen = 0;
|
||||
last_id = 0;
|
||||
/* last_id = 0;*/
|
||||
} else if (isspace(c) || (c=='\\')) {
|
||||
state = 0;
|
||||
yylen = 0;
|
||||
last_id = 0;
|
||||
/* last_id = 0; */
|
||||
}
|
||||
|
||||
else if ((isalpha(c)) || (c == '_')) state = 7;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue