diff options
author | coopercc <coopercc> | 2000-09-24 03:43:36 +0000 |
---|---|---|
committer | coopercc <coopercc> | 2000-09-24 03:43:36 +0000 |
commit | 88e345d65955fb82aeaabc5e42ed97f7fb5de40b (patch) | |
tree | 809e610e9cd8a843743790aba6cd7ec4becc8065 /doc | |
parent | 7363c38a74c396a1c7365e627c23f23817383651 (diff) | |
download | libexpat-88e345d65955fb82aeaabc5e42ed97f7fb5de40b.tar.gz |
Added dynamic malloc substitution. Added libtool versioning.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference.html | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/doc/reference.html b/doc/reference.html index 8f5a2b2..59e4390 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -110,7 +110,6 @@ copyright and to distribute it with expat. <li><a href="#XML_GetIdAttributeIndex">XML_GetIdAttributeIndex</a></li> <li><a href="#XML_SetEncoding">XML_SetEncoding</a></li> <li><a href="#XML_SetParamEntityParsing">XML_SetParamEntityParsing</a></li> - <li><a href="#XML_ContentFree">XML_ContentFree</a></li> </ul> </li> </ul> @@ -564,6 +563,28 @@ of the namespace URI, <em>sep</em>, and the local part of the name. This means that you should pick a character for <em>sep</em> that can't be part of a legal URI.</div> +<div class="fcndec"><a name="XML_ParserCreate_MM"><pre> +XML_Parser +XML_ParserCreate_MM(const XML_Char *encoding, + const XML_Memory_Handling_Suite *ms, + const XML_Char *sep) +</pre></a></div> +<div class="fcndef"> +<p>Construct a new parser using the suite of memory handling functions +specified in <code>ms</code>. If <code>ms</code> is NULL, then use the +standard set of memory management functions. If <code>sep</code> is +non NULL, then namespace processing is enabled in the created parser +and the character pointed at by sep is used as the separator between +the namespace URI and the local part of the name</p> +<div class="eg"><pre> +typedef struct { + void *(*malloc_fcn)(size_t size); + void *(*realloc_fcn)(void *ptr, size_t size); + void (*free_fcn)(void *ptr); +} XML_Memory_Handling_Suite; +</pre></div> +</div> + <div class="fcndec"><a name="XML_ExternalEntityParserCreate"><pre> XML_Parser XML_ExternalEntityParserCreate(XML_Parser p, @@ -1071,8 +1092,7 @@ struct XML_cp { <p>Sets a handler for element declarations in a DTD. The handler gets called with the name of the element in the declaration and a pointer to a structure that contains the element model. It is the application's responsibility to -free this data structure by calling -<a href="#XML_ContentFree">XML_ContentFree</a>.</p> +free this data structure.</p> <p>The <code>model</code> argument is the root of a tree of <code>XML_Content</code> nodes. If <code>type</code> equals @@ -1415,13 +1435,5 @@ The choices for <code>code</code> are: </ul> </div> -<div class="fcndec"><a name="XML_ContentFree"><pre> -void -XML_ContentFree(XML_Content *content); -</pre></a></div> -<div class="fcndef"> -Free the model data structure passed to an element declaration handler. -</div> - </body> </html> |