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:
Dave Beazley 2003-08-07 15:46:00 +00:00
commit 16d2a79297

View file

@ -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;