summaryrefslogtreecommitdiff
path: root/HTMLparser.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-10-01 18:23:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-10-01 18:23:35 +0000
commitbc765307ffed746e57f669fc4d38925f32b776f3 (patch)
treecee59ebfe4ec5b5caada89a59f712a30c3ca4407 /HTMLparser.c
parentf09e7e35de098cc017eaeabc5d7127fba6057445 (diff)
downloadlibxml2-bc765307ffed746e57f669fc4d38925f32b776f3.tar.gz
Cleanups, 1 bug fix:
- HTMLparser.c: fixed htmlStartCloseIndexinitialized init - entities.h: exported xmlInitializePredefinedEntities - parser.[ch] : added xmlInitParser() - parserInternals.h : had to export htmlInitAutoClose() Daniel
Diffstat (limited to 'HTMLparser.c')
-rw-r--r--HTMLparser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/HTMLparser.c b/HTMLparser.c
index 2bafa72c..6866c4b5 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -579,7 +579,8 @@ static int htmlStartCloseIndexinitialized = 0;
* htmlInitAutoClose:
*
* Initialize the htmlStartCloseIndex for fast lookup of closing tags names.
- *
+ * This is not reentrant. Call xmlInitParser() once before processing in
+ * case of use in multithreaded programs.
*/
void
htmlInitAutoClose(void) {
@@ -594,6 +595,7 @@ htmlInitAutoClose(void) {
while (htmlStartClose[i] != NULL) i++;
i++;
}
+ htmlStartCloseIndexinitialized = 1;
}
/**