perl-XML-LibXML / parser.c

Author Commit Message Labels Comments Date
Modified Files: parser.c + parser cleanup ready for libxml2 >= 2.4.7
Some tweaks to make error handling faster Fix segfaults in LibXSLT, by restoring old entity handler
This is an incomplete checkin. The whole system compiles and runs, but a longtime runing is not guaranteed. This is because libxml2 does not (yet) implement reinitialization of callback, therefore the current this will fill the cb-stack with each parse. As well the interface changed slightly: Now the interface allows (currently more theoreticly) multiple parserinstances in a single process. Each parser may has its own set of callbacks. the multiple parser implementation has a perl and a c layer. the c-layer is implemented in parser.c. The libxml2 parser is now initialized each time, a file, string or handle is parsed. Therefor the parse_* functi…