From eae9ec21a90d0c05e8ff524e6895470522a40f8d Mon Sep 17 00:00:00 2001
From: "Fred L. Drake, Jr."
Date: Wed, 24 Jan 2001 19:53:01 +0000
Subject: [PATCH] Document the #define constants giving library version
information.
---
expat/doc/reference.html | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/expat/doc/reference.html b/expat/doc/reference.html
index ae6e85a4..bfaeae41 100644
--- a/expat/doc/reference.html
+++ b/expat/doc/reference.html
@@ -918,7 +918,7 @@ declaration and is never null.
First, this handler returns an integer. A non-zero value should be returned
for successful handling of the external entity reference. Returning a zero
indicates failure, and causes the calling parser to return
-an XML_ERROR_EXTERNAL_ENTITY_HANDLING error.
+an XML_ERROR_EXTERNAL_ENTITY_HANDLING
error.
Second, instead of having userData as its first argument, it receives the
parser that encountered the entity reference. This, along with the context
@@ -1264,7 +1264,7 @@ typedef int
This happens when there is an external subset or a reference to a parameter
entity, but does not have standalone set to "yes" in an XML declaration.
If this handler returns 0, then the parser will throw an
-XML_ERROR_NOT_STANDALONE error.
+XML_ERROR_NOT_STANDALONE
error.
@@ -1455,9 +1455,9 @@ parameter entity that is the external DTD subset, according to
code
.
The choices for code
are:
-- XML_PARAM_ENTITY_PARSING_NEVER
-
- XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE
-
- XML_PARAM_ENTITY_PARSING_ALWAYS
+
XML_PARAM_ENTITY_PARSING_NEVER
+XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE
+XML_PARAM_ENTITY_PARSING_ALWAYS
@@ -1502,6 +1502,15 @@ typedef struct {
int micro;
} XML_Expat_Version;
+Some macros are also defined that support compile-time tests of the
+library version:
+
+XML_MAJOR_VERSION
+XML_MINOR_VERSION
+XML_MICRO_VERSION
+
+Testing these constants is currently the best way to determine if
+particular parts of the Expat API are available.