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@4977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ab47e2aec6
commit
c9ecaaba02
1 changed files with 4 additions and 4 deletions
|
|
@ -391,7 +391,7 @@ void skip_decl(void) {
|
||||||
static void get_escape() {
|
static void get_escape() {
|
||||||
int result = 0;
|
int result = 0;
|
||||||
int state = 0;
|
int state = 0;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
c = nextchar();
|
c = nextchar();
|
||||||
|
|
@ -495,7 +495,7 @@ static void get_escape() {
|
||||||
int yylook(void) {
|
int yylook(void) {
|
||||||
|
|
||||||
int state;
|
int state;
|
||||||
char c = 0;
|
int c = 0;
|
||||||
|
|
||||||
state = 0;
|
state = 0;
|
||||||
yylen = 0;
|
yylen = 0;
|
||||||
|
|
@ -512,11 +512,11 @@ int yylook(void) {
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
state = 0;
|
state = 0;
|
||||||
yylen = 0;
|
yylen = 0;
|
||||||
last_id = 0;
|
/* last_id = 0;*/
|
||||||
} else if (isspace(c) || (c=='\\')) {
|
} else if (isspace(c) || (c=='\\')) {
|
||||||
state = 0;
|
state = 0;
|
||||||
yylen = 0;
|
yylen = 0;
|
||||||
last_id = 0;
|
/* last_id = 0; */
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((isalpha(c)) || (c == '_')) state = 7;
|
else if ((isalpha(c)) || (c == '_')) state = 7;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue