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

@@ -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++;