Anonymous avatar Anonymous committed 33a6752

Modified Files:
parser.c
+ parser cleanup ready for libxml2 >= 2.4.7

Comments (0)

Files changed (1)

 /* parser.c
  * $Id$
- * Author: Christian Glahn (2001) 
  *
  * This modules keeps the the c-implementation of the multiple parser
- * implementation. I think this module is required, so we keep the
- * perl implementation clear of adding c-features to
+ * implementation. I think this module is required, so we can keep the
+ * perl implementation clear of adding c-features, too
+ *
+ * phish [10-30-2001]:
+ * This file requires libxml2 2.4.7!!! anyversion <= 2.4.6 will not work,
+ * since xmlCleanupInputCallbacks is not implemented in these versions.
  *
  * TODO:
  * add all parser flags to the parser object
         xmlPedanticParserDefaultValue = 0;
         xmlDoValidityCheckingDefaultValue = 0;
 
-        /* here we should be able to unregister our callbacks.
-         * since we know the id, this function should expect this id
-         * to remove this handler set.
-         * another opinion would be a callback pop, that pops the last
-         * callback function off the callback stack
+        /* after resetting the parser defaults, we have to clean the
+         * callbacks, too.
          */
-
-        xmlRegisterInputCallbacks(NULL, NULL, NULL, NULL);
-
-/*         xmlCleanupParser(); */
+        xmlCleanupInputCallbacks();
+        xmlRegisterDefaultInputCallbacks();
     }
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.