1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-28 23:14:57 +03:00

trying to clarify even more the xmlCleanupParser() use and the memory

* parser.c docs/*: trying to clarify even more the xmlCleanupParser()
  use and the memory documentation
Daniel

svn path=/trunk/; revision=3719
This commit is contained in:
Daniel Veillard
2008-03-31 08:27:07 +00:00
parent dc1716010a
commit 05b37c6893
30 changed files with 184 additions and 43 deletions

View File

@@ -13176,12 +13176,15 @@ xmlInitParser(void) {
/**
* xmlCleanupParser:
*
* Cleanup function for the XML library. It tries to reclaim all
* parsing related global memory allocated for the library processing.
* It doesn't deallocate any document related memory. Calling this
* function should not prevent reusing the library but one should
* call xmlCleanupParser() only when the process has
* finished using the library and all XML document built with it.
* This function name is somewhat misleading. It does not clean up
* parser state, it cleans up memory allocated by the library itself.
* It is a cleanup function for the XML library. It tries to reclaim all
* related global memory allocated for the library processing.
* It doesn't deallocate any document related memory. One should
* call xmlCleanupParser() only when the process has finished using
* the library and all XML/HTML documents built with it.
* See also xmlInitParser() which has the opposite function of preparing
* the library for operations.
*/
void