From: Peep P. <so...@us...> - 2004-04-03 20:31:00
|
Update of /cvsroot/agd/server/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5214 Modified Files: lex.l Log Message: Updates the position correctly. Index: lex.l =================================================================== RCS file: /cvsroot/agd/server/src/lex.l,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- lex.l 1 Apr 2004 19:17:14 -0000 1.13 +++ lex.l 3 Apr 2004 20:18:39 -0000 1.14 @@ -25,10 +25,10 @@ #define RET(type, value, tok) \ pos += yyleng; \ if(conf.debuglevel > 3) \ - printf("yylex(): %"#type"; pos: %d\n", value, pos); \ + printf("yylex(): %"#type"\n", value); \ return tok #else -#define RET(type, value, tok) return tok +#define RET(type, value, tok) pos += yyleng; return tok #endif #define NEWLINE() pos = 1; line++ |