Commit 0714c5bf authored by Daniel Veillard's avatar Daniel Veillard
Browse files

small optimization back. Daniel

* parser.c: small optimization back.
Daniel
parent 1441251f
Sun Jan 23 01:00:09 CET 2005 Daniel Veillard <daniel@veillard.com>
* parser.c: small optimization back.
Sat Jan 22 00:40:31 CET 2005 Daniel Veillard <daniel@veillard.com>
 
* dict.c parser.c include/libxml/dict.h: a single lock version
......
......@@ -3189,6 +3189,7 @@ xmlParseCharData(xmlParserCtxtPtr ctxt, int cdata) {
int nbchar = 0;
int line = ctxt->input->line;
int col = ctxt->input->col;
int ccol;
SHRINK;
GROW;
......@@ -3233,15 +3234,18 @@ get_more_space:
}
return;
}
get_more:
ccol = ctxt->input->col;
while (((*in > ']') && (*in <= 0x7F)) ||
((*in > '&') && (*in < '<')) ||
((*in > '<') && (*in < ']')) ||
((*in >= 0x20) && (*in < '&')) ||
(*in == 0x09)) {
in++;
ctxt->input->col++;
ccol++;
}
ctxt->input->col = ccol;
if (*in == 0xA) {
ctxt->input->line++; ctxt->input->col = 1;
in++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment