1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

small optimization back. Daniel

* parser.c: small optimization back.
Daniel
This commit is contained in:
Daniel Veillard
2005-01-23 00:01:01 +00:00
parent 1441251f85
commit 0714c5bfdf
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
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> 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 * dict.c parser.c include/libxml/dict.h: a single lock version

View File

@@ -3189,6 +3189,7 @@ xmlParseCharData(xmlParserCtxtPtr ctxt, int cdata) {
int nbchar = 0; int nbchar = 0;
int line = ctxt->input->line; int line = ctxt->input->line;
int col = ctxt->input->col; int col = ctxt->input->col;
int ccol;
SHRINK; SHRINK;
GROW; GROW;
@@ -3233,15 +3234,18 @@ get_more_space:
} }
return; return;
} }
get_more: get_more:
ccol = ctxt->input->col;
while (((*in > ']') && (*in <= 0x7F)) || while (((*in > ']') && (*in <= 0x7F)) ||
((*in > '&') && (*in < '<')) || ((*in > '&') && (*in < '<')) ||
((*in > '<') && (*in < ']')) || ((*in > '<') && (*in < ']')) ||
((*in >= 0x20) && (*in < '&')) || ((*in >= 0x20) && (*in < '&')) ||
(*in == 0x09)) { (*in == 0x09)) {
in++; in++;
ctxt->input->col++; ccol++;
} }
ctxt->input->col = ccol;
if (*in == 0xA) { if (*in == 0xA) {
ctxt->input->line++; ctxt->input->col = 1; ctxt->input->line++; ctxt->input->col = 1;
in++; in++;