libexpat/expat/lib
Samanta Navarro b12f34fe32 Fix build_model regression.
The iterative approach in build_model failed to fill children arrays
correctly. A preorder traversal is not required and turned out to be the
culprit. Use an easier algorithm:

Add nodes from scaffold tree starting at index 0 (root) to the target
array whenever children are encountered. This ensures that children
are adjacent to each other. This complies with the recursive version.

Store only the scaffold index in numchildren field to prevent a direct
processing of these children, which would require a recursive solution.
This allows the algorithm to iterate through the target array from start
to end without jumping back and forth, converting on the fly.

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
2022-02-20 11:55:46 +00:00
..
.gitignore
ascii.h
asciitab.h
expat_external.h
expat.h Bump version to 2.4.5 2022-02-18 20:17:16 +01:00
iasciitab.h
internal.h
latin1tab.h
libexpat.def
libexpatw.def
Makefile.am
nametab.h
siphash.h
utf8tab.h
winconfig.h
xmlparse.c Fix build_model regression. 2022-02-20 11:55:46 +00:00
xmlrole.c Sync file headers 2022-02-15 21:23:29 +01:00
xmlrole.h
xmltok_impl.c Sync file headers 2022-02-18 20:17:16 +01:00
xmltok_impl.h
xmltok_ns.c
xmltok.c Sync file headers 2022-02-18 20:17:16 +01:00
xmltok.h