mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-03 08:58:17 +03:00
fixed problem with attribute listing (bug 142674) and added macro
* testSAX.c: fixed problem with attribute listing (bug 142674) and added macro LIBXML_TEST_VERSION to assure xmlInitParser gets called (bug 142686)
This commit is contained in:
parent
669adfcd3a
commit
06112d18ff
@ -1,3 +1,9 @@
|
||||
Wed Jun 02 11:26:41 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* testSAX.c: fixed problem with attribute listing (bug 142674)
|
||||
and added macro LIBXML_TEST_VERSION to assure xmlInitParser
|
||||
gets called (bug 142686)
|
||||
|
||||
Sat May 29 21:35:52 CEST 2004 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* test/schemas/date_0.xml xmlschemastypes.c: applied a patch from
|
||||
|
@ -918,7 +918,7 @@ startElementNsDebug(void *ctx ATTRIBUTE_UNUSED,
|
||||
}
|
||||
fprintf(stdout, ", %d, %d", nb_attributes, nb_defaulted);
|
||||
if (attributes != NULL) {
|
||||
for (i = 0;i < nb_attributes;i += 5) {
|
||||
for (i = 0;i < nb_attributes * 5;i += 5) {
|
||||
if (attributes[i + 1] != NULL)
|
||||
fprintf(stdout, ", %s:%s='", attributes[i + 1], attributes[i]);
|
||||
else
|
||||
@ -1118,6 +1118,8 @@ int main(int argc, char **argv) {
|
||||
int i;
|
||||
int files = 0;
|
||||
|
||||
LIBXML_TEST_VERSION /* be safe, plus calls xmlInitParser */
|
||||
|
||||
for (i = 1; i < argc ; i++) {
|
||||
if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
|
||||
debug++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user