mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
Fix many places where malloc failures aren't reported. Make some API function return an error code. Changing the return type from void to int is technically an ABI break but should be safe on most platforms. - xmlNodeSetContent - xmlNodeSetContentLen - xmlNodeAddContent - xmlNodeAddContentLen - xmlNodeSetBase Introduce new API functions that return a separate error code if a memory allocation fails. - xmlNodeGetAttrValue - xmlNodeGetBaseSafe - xmlGetNsListSafe Introduce private functions xmlTreeEnsureXMLDecl and xmlSplitQName4. Don't report low-level errors to the global error handler. Fix tree Introduce xmlGetNsListSafe Fix tree
23 lines
705 B
C
23 lines
705 B
C
#ifndef XML_TREE_H_PRIVATE__
|
|
#define XML_TREE_H_PRIVATE__
|
|
|
|
/*
|
|
* Internal variable indicating if a callback has been registered for
|
|
* node creation/destruction. It avoids spending a lot of time in locking
|
|
* function while checking if the callback exists.
|
|
*/
|
|
XML_HIDDEN extern int
|
|
__xmlRegisterCallbacks;
|
|
|
|
XML_HIDDEN xmlNsPtr
|
|
xmlTreeEnsureXMLDecl(xmlDocPtr doc);
|
|
XML_HIDDEN xmlNodePtr
|
|
xmlStaticCopyNode(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
|
|
int extended);
|
|
XML_HIDDEN xmlNodePtr
|
|
xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent);
|
|
XML_HIDDEN const xmlChar *
|
|
xmlSplitQName4(const xmlChar *name, xmlChar **prefixPtr);
|
|
|
|
#endif /* XML_TREE_H_PRIVATE__ */
|