mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
code cleanup, especially the function comments. fixed a small bug when
* DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: code cleanup, especially the function comments. * tree.c: fixed a small bug when freeing nodes which are XInclude ones. Daniel
This commit is contained in:
22
parser.c
22
parser.c
@ -1234,7 +1234,6 @@ xmlCharStrndup(const char *cur, int len) {
|
||||
/**
|
||||
* xmlCharStrdup:
|
||||
* @cur: the input char *
|
||||
* @len: the len of @cur
|
||||
*
|
||||
* a strdup for char's to xmlChar's
|
||||
*
|
||||
@ -2390,6 +2389,16 @@ xmlParseAttValue(xmlParserCtxtPtr ctxt) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlParseAttValueComplex:
|
||||
* @ctxt: an XML parser context
|
||||
*
|
||||
* parse a value for an attribute, this is the fallback function
|
||||
* of xmlParseAttValue() when the attribute parsing requires handling
|
||||
* of non-ASCII characters.
|
||||
*
|
||||
* Returns the AttValue parsed or NULL. The value has to be freed by the caller.
|
||||
*/
|
||||
xmlChar *
|
||||
xmlParseAttValueComplex(xmlParserCtxtPtr ctxt) {
|
||||
xmlChar limit = 0;
|
||||
@ -2838,6 +2847,15 @@ get_more:
|
||||
xmlParseCharDataComplex(ctxt, cdata);
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlParseCharDataComplex:
|
||||
* @ctxt: an XML parser context
|
||||
* @cdata: int indicating whether we are within a CDATA section
|
||||
*
|
||||
* parse a CharData section.this is the fallback function
|
||||
* of xmlParseCharData() when the parsing requires handling
|
||||
* of non-ASCII characters.
|
||||
*/
|
||||
void
|
||||
xmlParseCharDataComplex(xmlParserCtxtPtr ctxt, int cdata) {
|
||||
xmlChar buf[XML_PARSER_BIG_BUFFER_SIZE + 5];
|
||||
@ -10815,7 +10833,7 @@ xmlAddEntityReference(xmlEntityPtr ent, xmlNodePtr firstNode,
|
||||
|
||||
/**
|
||||
* xmlSetEntityReferenceFunc:
|
||||
* @func : A valid function
|
||||
* @func: A valid function
|
||||
*
|
||||
* Set the function to call call back when a xml reference has been made
|
||||
*/
|
||||
|
Reference in New Issue
Block a user