=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/parse/lex.c,v retrieving revision 1.32 retrieving revision 1.35 diff -u -p -r1.32 -r1.35 --- OpenXM_contrib2/asir2000/parse/lex.c 2004/03/26 08:25:37 1.32 +++ 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.31 2004/03/04 07:11:01 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) ){ @@ -478,8 +480,6 @@ void purge_stdin() #endif } -extern int asir_texmacs; - static int skipspace() { int c,c1; @@ -720,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 ) {