From: Fred L. Drake, Jr.
Date: Fri, 16 Jul 2004 02:31:27 +0000 (+0000)
Subject: added more detail about XML_CONTEXT_BYTES
X-Git-Tag: R_1_95_8~7
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f70a4ab7dd81cde0968edceb880976fb34dca187;p=libexpat
added more detail about XML_CONTEXT_BYTES
---
diff --git a/expat/doc/reference.html b/expat/doc/reference.html
index 2a00af6b..91ec6d19 100644
--- a/expat/doc/reference.html
+++ b/expat/doc/reference.html
@@ -345,10 +345,11 @@ short is used. Defining this implies
The number of input bytes of markup context which the parser will
ensure are available for reporting via XML_GetInputContext
. This is
-normally set to 1024. If this is not defined, the input context will
-not be available and XML_GetInputContext
will always report NULL. Without
-this, Expat has a smaller memory footprint and can be faster.
+normally set to 1024, and must be set to a positive interger. If this
+is not defined, the input context will not be available and XML_GetInputContext
will
+always report NULL. Without this, Expat has a smaller memory
+footprint and can be faster.
XML_STATIC
On Windows, this should be set if Expat is going to be linked
@@ -1685,6 +1686,9 @@ untranslated bytes of the input.
Only a limited amount of context is kept, so if the event
triggering a call spans over a very large amount of input, the actual
parse position may be before the beginning of the buffer.
+
+If XML_CONTEXT_BYTES
is not defined, this will always
+return NULL.