From: Guenter B. <gu...@us...> - 2003-03-05 09:22:35
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1:/tmp/cvs-serv30486 Modified Files: xmllexer.c Log Message: handle '/' in comments correctly Index: xmllexer.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/xmllexer.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- xmllexer.c 1 Feb 2003 23:30:11 -0000 1.2 +++ xmllexer.c 5 Mar 2003 09:22:31 -0000 1.3 @@ -65,7 +65,7 @@ while ((tok_pos < tok_size) && (lexbuf_pos < lexbuf_size)) { c = lexbuf[lexbuf_pos]; #ifdef LOG - printf("xmllexer: c=%c, state=%d\n", c, state); + printf("xmllexer: c=%c, state=%d, in_comment=%d\n", c, state, in_comment); #endif if (lex_mode == NORMAL) { /* normal mode */ @@ -100,7 +100,8 @@ break; case '/': - state = 5; + if (!in_comment) + state = 5; tok[tok_pos] = c; tok_pos++; break; |