=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/lex.c,v retrieving revision 1.31 retrieving revision 1.35 diff -u -p -r1.31 -r1.35 --- OpenXM_contrib2/asir2000/parse/lex.c 2004/03/04 07:11:01 1.31 +++ OpenXM_contrib2/asir2000/parse/lex.c 2005/10/19 04:51:15 1.35 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.30 2004/03/01 02:03:28 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.34 2004/12/17 03:09:08 noro Exp $ */ #include #include "ca.h" @@ -188,6 +188,8 @@ int yylex() c1 = Getc(); if ( c1 == 'n' ) { c1 = '\n'; + }else if ( c1 == 'r' ) { + c1 = '\r'; }else if ( c1 == 't' ) { c1 = '\t'; }else if ( isdigit(c1) ){ @@ -486,7 +488,7 @@ static int skipspace() { case ' ': case '\t': case '\r': c = Getc(); break; case '\n': - c = afternl(); break; + c = afternl(); break; case '/': if ( (c1 = Getc()) == '*' ) c = aftercomment(); @@ -718,7 +720,7 @@ char *readline_console(char *prompt) exp_result = history_expand(line,&expansion); if ( !exp_result ) { free(expansion); - for ( ; isspace(*line); line++ ); + for ( ; isspace((unsigned char)*line); line++ ); add_history(line); break; } else if ( exp_result > 0 ) {