1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

new API building Python script, does the C parsing directly, generates a

* doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API
  building Python script, does the C parsing directly, generates
  a better API description including structure fieds defs and
  enums. Still a couple of bugs, but good enough for the python
  wrappers now.
* DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c
  valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c
  include/libxml/schemasInternals.h include/libxml/tree.h: more
  cleanup based on the python analysis script reports.
* libxml.spec.in: make sure the API XML description is part of the
  devel package.
Daniel
This commit is contained in:
Daniel Veillard
2002-12-11 14:23:49 +00:00
parent 01c13b5be2
commit a9b66d00b5
20 changed files with 8369 additions and 5536 deletions

View File

@ -1,3 +1,17 @@
Wed Dec 11 14:54:47 CET 2002 Daniel Veillard <daniel@veillard.com>
* doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API
building Python script, does the C parsing directly, generates
a better API description including structure fieds defs and
enums. Still a couple of bugs, but good enough for the python
wrappers now.
* DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c
valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c
include/libxml/schemasInternals.h include/libxml/tree.h: more
cleanup based on the python analysis script reports.
* libxml.spec.in: make sure the API XML description is part of the
devel package.
Tue Dec 10 16:16:34 CET 2002 Daniel Veillard <daniel@veillard.com> Tue Dec 10 16:16:34 CET 2002 Daniel Veillard <daniel@veillard.com>
* DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c

View File

@ -68,18 +68,6 @@ struct _docbEntityDesc {
const char *desc; /* the description */ const char *desc; /* the description */
}; };
#if 0
docbElemDescPtr docbTagLookup (const xmlChar *tag);
docbEntityDescPtr docbEntityLookup(const xmlChar *name);
docbEntityDescPtr docbEntityValueLookup(int value);
int docbIsAutoClosed(docbDocPtr doc,
docbNodePtr elem);
int docbAutoCloseTag(docbDocPtr doc,
const xmlChar *name,
docbNodePtr elem);
#endif
static int docbParseCharRef(docbParserCtxtPtr ctxt); static int docbParseCharRef(docbParserCtxtPtr ctxt);
static xmlEntityPtr docbParseEntityRef(docbParserCtxtPtr ctxt, static xmlEntityPtr docbParseEntityRef(docbParserCtxtPtr ctxt,
xmlChar **str); xmlChar **str);

8
SAX.c
View File

@ -33,7 +33,7 @@
* getPublicId: * getPublicId:
* @ctx: the user data (XML parser context) * @ctx: the user data (XML parser context)
* *
* Return the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" * Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"
* *
* Returns a xmlChar * * Returns a xmlChar *
*/ */
@ -48,7 +48,7 @@ getPublicId(void *ctx ATTRIBUTE_UNUSED)
* getSystemId: * getSystemId:
* @ctx: the user data (XML parser context) * @ctx: the user data (XML parser context)
* *
* Return the system ID, basically URL or filename e.g. * Provides the system ID, basically URL or filename e.g.
* http://www.sgmlsource.com/dtds/memo.dtd * http://www.sgmlsource.com/dtds/memo.dtd
* *
* Returns a xmlChar * * Returns a xmlChar *
@ -64,7 +64,7 @@ getSystemId(void *ctx)
* getLineNumber: * getLineNumber:
* @ctx: the user data (XML parser context) * @ctx: the user data (XML parser context)
* *
* Return the line number of the current parsing point. * Provide the line number of the current parsing point.
* *
* Returns an int * Returns an int
*/ */
@ -79,7 +79,7 @@ getLineNumber(void *ctx)
* getColumnNumber: * getColumnNumber:
* @ctx: the user data (XML parser context) * @ctx: the user data (XML parser context)
* *
* Return the column number of the current parsing point. * Provide the column number of the current parsing point.
* *
* Returns an int * Returns an int
*/ */

View File

@ -21,7 +21,8 @@ APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \ EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \
tutorial/images/*.png tutorial/images/callouts/*.png \ tutorial/images/*.png tutorial/images/callouts/*.png \
API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \ API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \
html/*.sgml libxml2-api.xml parsedecl.py index.py search.php html/*.sgml libxml2-api.xml parsedecl.py index.py search.php \
apibuild.py
man_MANS = xmllint.1 xmlcatalog.1 man_MANS = xmllint.1 xmlcatalog.1
@ -52,8 +53,8 @@ xml: sgml
-@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \ -@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \
xmllint --sgml $$s > xml/"$$name".xml ; done) xmllint --sgml $$s > xml/"$$name".xml ; done)
libxml2-api.xml libxml2-refs.xml: xml parsedecl.py libxml-decl.txt libxml-decl-list.txt libxml2-api.xml: apibuild.py ../include/libxml/*.h
-(./parsedecl.py) -(./apibuild.py)
api: libxml2-api.xml libxml2-refs.xml api: libxml2-api.xml libxml2-refs.xml

1458
doc/apibuild.py Executable file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -139,10 +139,17 @@ struct _xmlSchemaAttributeGroup {
/** /**
* Schemas type definition. * XML_SCHEMAS_TYPE_MIXED:
*
* the element content type is mixed
*/ */
#define XML_SCHEMAS_TYPE_MIXED 1 << 0 #define XML_SCHEMAS_TYPE_MIXED 1 << 0
/**
* _xmlSchemaType:
*
* Schemas type definition.
*/
struct _xmlSchemaType { struct _xmlSchemaType {
xmlSchemaTypeType type; /* The kind of type */ xmlSchemaTypeType type; /* The kind of type */
struct _xmlSchemaType *next;/* the next type if in a sequence ... */ struct _xmlSchemaType *next;/* the next type if in a sequence ... */
@ -166,17 +173,53 @@ struct _xmlSchemaType {
}; };
/** /**
* xmlSchemaElement:
* An element definition. * An element definition.
* *
* xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of * xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of
* structures must be kept similar * structures must be kept similar
*/ */
/**
* XML_SCHEMAS_ELEM_NILLABLE:
*
* the element is nillable
*/
#define XML_SCHEMAS_ELEM_NILLABLE 1 << 0 #define XML_SCHEMAS_ELEM_NILLABLE 1 << 0
/**
* XML_SCHEMAS_ELEM_GLOBAL:
*
* the element is global
*/
#define XML_SCHEMAS_ELEM_GLOBAL 1 << 1 #define XML_SCHEMAS_ELEM_GLOBAL 1 << 1
/**
* XML_SCHEMAS_ELEM_DEFAULT:
*
* the element has a default value
*/
#define XML_SCHEMAS_ELEM_DEFAULT 1 << 2 #define XML_SCHEMAS_ELEM_DEFAULT 1 << 2
/**
* XML_SCHEMAS_ELEM_FIXED:
*
* the element has a fixed value
*/
#define XML_SCHEMAS_ELEM_FIXED 1 << 3 #define XML_SCHEMAS_ELEM_FIXED 1 << 3
/**
* XML_SCHEMAS_ELEM_ABSTRACT:
*
* the element is abstract
*/
#define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4 #define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4
/**
* XML_SCHEMAS_ELEM_TOPLEVEL:
*
* the element is top level
*/
#define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5 #define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5
/**
* XML_SCHEMAS_ELEM_REF:
*
* the element is a reference to a type
*/
#define XML_SCHEMAS_ELEM_REF 1 << 6 #define XML_SCHEMAS_ELEM_REF 1 << 6
typedef struct _xmlSchemaElement xmlSchemaElement; typedef struct _xmlSchemaElement xmlSchemaElement;
@ -208,15 +251,34 @@ struct _xmlSchemaElement {
xmlSchemaContentType contentType; xmlSchemaContentType contentType;
}; };
/** /*
* An facet definition. * XML_SCHEMAS_FACET_UNKNOWN:
* *
* unknown facet handling
*/ */
#define XML_SCHEMAS_FACET_UNKNOWN 0 #define XML_SCHEMAS_FACET_UNKNOWN 0
/*
* XML_SCHEMAS_FACET_PRESERVE:
*
* preserve the type of the facet
*/
#define XML_SCHEMAS_FACET_PRESERVE 1 #define XML_SCHEMAS_FACET_PRESERVE 1
/*
* XML_SCHEMAS_FACET_REPLACE:
*
* replace the type of the facet
*/
#define XML_SCHEMAS_FACET_REPLACE 2 #define XML_SCHEMAS_FACET_REPLACE 2
/*
* XML_SCHEMAS_FACET_COLLAPSE:
*
* collapse the types of the facet
*/
#define XML_SCHEMAS_FACET_COLLAPSE 3 #define XML_SCHEMAS_FACET_COLLAPSE 3
/**
* A facet definition.
*/
struct _xmlSchemaFacet { struct _xmlSchemaFacet {
xmlSchemaTypeType type; /* The kind of type */ xmlSchemaTypeType type; /* The kind of type */
struct _xmlSchemaFacet *next;/* the next type if in a sequence ... */ struct _xmlSchemaFacet *next;/* the next type if in a sequence ... */
@ -243,10 +305,22 @@ struct _xmlSchemaNotation {
}; };
/** /**
* A Schemas definition * XML_SCHEMAS_QUALIF_ELEM:
*
* the shemas requires qualified elements
*/ */
#define XML_SCHEMAS_QUALIF_ELEM 1 << 0 #define XML_SCHEMAS_QUALIF_ELEM 1 << 0
/**
* XML_SCHEMAS_QUALIF_ATTR:
*
* the shemas requires qualified attributes
*/
#define XML_SCHEMAS_QUALIF_ATTR 1 << 1 #define XML_SCHEMAS_QUALIF_ATTR 1 << 1
/**
* _xmlSchema:
*
* A Schemas definition
*/
struct _xmlSchema { struct _xmlSchema {
xmlChar *name; /* schema name */ xmlChar *name; /* schema name */
xmlChar *targetNamespace; /* the target namespace */ xmlChar *targetNamespace; /* the target namespace */

View File

@ -240,7 +240,7 @@ struct _xmlElementContent {
struct _xmlElementContent *c1; /* first child */ struct _xmlElementContent *c1; /* first child */
struct _xmlElementContent *c2; /* second child */ struct _xmlElementContent *c2; /* second child */
struct _xmlElementContent *parent; /* parent */ struct _xmlElementContent *parent; /* parent */
const xmlChar *prefix; /* Element name */ const xmlChar *prefix; /* Namespace prefix */
}; };
/** /**

View File

@ -115,7 +115,7 @@ rm -fr %{buildroot}
%doc %{_mandir}/man1/xml2-config.1* %doc %{_mandir}/man1/xml2-config.1*
%doc AUTHORS ChangeLog NEWS README Copyright TODO %doc AUTHORS ChangeLog NEWS README Copyright TODO
%doc doc/*.html doc/html doc/*.gif doc/*.png %doc doc/*.html doc/html doc/*.gif doc/*.png
%doc doc/tutorial %doc doc/tutorial doc/libxml2-api.xml
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/*a %{_libdir}/*a

View File

@ -1422,6 +1422,8 @@ xmlNanoHTTPAuthHeader(void *ctx) {
* xmlNanoHTTPContentLength: * xmlNanoHTTPContentLength:
* @ctx: the HTTP context * @ctx: the HTTP context
* *
* Provides the specified content length from the HTTP header.
*
* Return the specified content length from the HTTP header. Note that * Return the specified content length from the HTTP header. Note that
* a value of -1 indicates that the content length element was not included in * a value of -1 indicates that the content length element was not included in
* the response header. * the response header.
@ -1439,6 +1441,8 @@ xmlNanoHTTPContentLength( void * ctx ) {
* @ptr: pointer to set to the content buffer. * @ptr: pointer to set to the content buffer.
* @len: integer pointer to hold the length of the content * @len: integer pointer to hold the length of the content
* *
* Check if all the content was read
*
* Returns 0 if all the content was read and available, returns * Returns 0 if all the content was read and available, returns
* -1 if received content length was less than specified or an error * -1 if received content length was less than specified or an error
* occurred. * occurred.

View File

@ -4364,6 +4364,7 @@ xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt) {
/** /**
* xmlParseElementMixedContentDecl: * xmlParseElementMixedContentDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @inputchk: the input used for the current entity, needed for boundary checks
* *
* parse the declaration for a Mixed Element content * parse the declaration for a Mixed Element content
* The leading '(' and spaces have been skipped in xmlParseElementContentDecl * The leading '(' and spaces have been skipped in xmlParseElementContentDecl
@ -4491,6 +4492,7 @@ xmlParseElementMixedContentDecl(xmlParserCtxtPtr ctxt, xmlParserInputPtr inputch
/** /**
* xmlParseElementChildrenContentDecl: * xmlParseElementChildrenContentDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @inputchk: the input used for the current entity, needed for boundary checks
* *
* parse the declaration for a Mixed Element content * parse the declaration for a Mixed Element content
* The leading '(' and spaces have been skipped in xmlParseElementContentDecl * The leading '(' and spaces have been skipped in xmlParseElementContentDecl

View File

@ -2712,8 +2712,8 @@ xmlCheckLanguageID(const xmlChar *lang) {
/** /**
* xmlDecodeEntities: * xmlDecodeEntities:
* @ctxt: the parser context * @ctxt: the parser context
* @what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
* @len: the len to decode (in bytes !), -1 for no size limit * @len: the len to decode (in bytes !), -1 for no size limit
* @what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
* @end: an end marker xmlChar, 0 if none * @end: an end marker xmlChar, 0 if none
* @end2: an end marker xmlChar, 0 if none * @end2: an end marker xmlChar, 0 if none
* @end3: an end marker xmlChar, 0 if none * @end3: an end marker xmlChar, 0 if none

View File

@ -38,6 +38,7 @@ newCatalog()
parseCatalogFile() parseCatalogFile()
# functions from module debugXML # functions from module debugXML
boolToText()
debugDumpString() debugDumpString()
shellPrintXPathError() shellPrintXPathError()
@ -151,13 +152,6 @@ validateNamesValue()
validateNmtokenValue() validateNmtokenValue()
validateNmtokensValue() validateNmtokensValue()
# functions from module wincecompat
close()
getenv()
read()
strerror()
write()
# functions from module xmlIO # functions from module xmlIO
checkFilename() checkFilename()
cleanupInputCallbacks() cleanupInputCallbacks()
@ -171,9 +165,16 @@ registerDefaultInputCallbacks()
registerDefaultOutputCallbacks() registerDefaultOutputCallbacks()
registerHTTPPostCallbacks() registerHTTPPostCallbacks()
# functions from module xmlmemory.c
mallocBreakpoint()
# functions from module xmlregexp # functions from module xmlregexp
regexpCompile() regexpCompile()
# functions from module xmlschemastypes
schemaCleanupTypes()
schemaInitTypes()
# functions from module xmlunicode # functions from module xmlunicode
uCSIsAlphabeticPresentationForms() uCSIsAlphabeticPresentationForms()
uCSIsArabic() uCSIsArabic()
@ -394,6 +395,9 @@ Class xmlNode(xmlCore)
unsetNsProp() unsetNsProp()
unsetProp() unsetProp()
# functions from module tree.c
newReconciliedNs()
# functions from module valid # functions from module valid
isID() isID()
isRef() isRef()
@ -421,6 +425,9 @@ Class xmlNode(xmlCore)
xpathNextPrecedingSibling() xpathNextPrecedingSibling()
xpathNextSelf() xpathNextSelf()
# functions from module xpointer.c
xpointerAdvanceNode()
Class xmlDoc(xmlNode) Class xmlDoc(xmlNode)
@ -441,6 +448,9 @@ Class xmlDoc(xmlNode)
htmlSaveFileFormat() htmlSaveFileFormat()
htmlSetMetaEncoding() htmlSetMetaEncoding()
# functions from module HTMLtree.c
htmlNodeDumpOutput()
# functions from module debugXML # functions from module debugXML
debugDumpDocument() debugDumpDocument()
debugDumpDocumentHead() debugDumpDocumentHead()
@ -456,6 +466,9 @@ Class xmlDoc(xmlNode)
encodeSpecialChars() encodeSpecialChars()
parameterEntity() parameterEntity()
# functions from module parserInternals.c
upgradeOldNs()
# functions from module tree # functions from module tree
copyDoc() copyDoc()
createIntSubset() createIntSubset()
@ -623,6 +636,15 @@ Class xpathParserContext()
xpathTrueFunction() xpathTrueFunction()
xpathValueFlipSign() xpathValueFlipSign()
xpatherror() xpatherror()
# functions from module xpointer.c
xpointerEndPointFunction()
xpointerHereFunction()
xpointerOriginFunction()
xpointerRangeFunction()
xpointerRangeInsideFunction()
xpointerStartPointFunction()
xpointerStringRangeFunction()
Class parserCtxt() Class parserCtxt()
# accessors # accessors
doc() doc()
@ -641,6 +663,9 @@ Class parserCtxt()
htmlParseDocument() htmlParseDocument()
htmlParseElement() htmlParseElement()
# functions from module HTMLparser.c
htmlDecodeEntities()
# functions from module parser # functions from module parser
clearParserCtxt() clearParserCtxt()
freeParserCtxt() freeParserCtxt()
@ -648,8 +673,13 @@ Class parserCtxt()
parseChunk() parseChunk()
parseDocument() parseDocument()
parseExtParsedEnt() parseExtParsedEnt()
setupParserForBuffer()
stopParser() stopParser()
# functions from module parser.c
parseAttValueComplex()
parseCharDataComplex()
# functions from module parserInternals # functions from module parserInternals
decodeEntities() decodeEntities()
namespaceParseNCName() namespaceParseNCName()
@ -713,6 +743,9 @@ Class xmlDtd(xmlNode)
dtdQAttrDesc() dtdQAttrDesc()
dtdQElementDesc() dtdQElementDesc()
# functions from module valid.c
scanAttributeDecl()
Class xmlNs(xmlNode) Class xmlNs(xmlNode)

7
tree.c
View File

@ -899,8 +899,9 @@ xmlStringGetNodeList(xmlDocPtr doc, const xmlChar *value) {
* @list: a Node list * @list: a Node list
* @inLine: should we replace entity contents or show their external form * @inLine: should we replace entity contents or show their external form
* *
* Returns the string equivalent to the text contained in the Node list * Build the string equivalent to the text contained in the Node list
* made of TEXTs and ENTITY_REFs * made of TEXTs and ENTITY_REFs
*
* Returns a pointer to the string copy, the caller must free it with xmlFree(). * Returns a pointer to the string copy, the caller must free it with xmlFree().
*/ */
xmlChar * xmlChar *
@ -977,7 +978,7 @@ xmlNodeListGetString(xmlDocPtr doc, xmlNodePtr list, int inLine)
* @list: a Node list * @list: a Node list
* @inLine: should we replace entity contents or show their external form * @inLine: should we replace entity contents or show their external form
* *
* Returns the string equivalent to the text contained in the Node list * Builds the string equivalent to the text contained in the Node list
* made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() * made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString()
* this function doesn't do any character encoding handling. * this function doesn't do any character encoding handling.
* *
@ -7470,6 +7471,8 @@ xmlSaveFormatFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding,
* @encoding: the name of the encoding to use or NULL. * @encoding: the name of the encoding to use or NULL.
* @format: should formatting spaces be added. * @format: should formatting spaces be added.
* *
* Dump an XML document to a file or an URL.
*
* Returns the number of bytes written or -1 in case of error. * Returns the number of bytes written or -1 in case of error.
*/ */
int int

View File

@ -3825,6 +3825,7 @@ xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
* @ctxt: the validation context * @ctxt: the validation context
* @doc: a document instance * @doc: a document instance
* @elem: an element instance * @elem: an element instance
* @prefix: the namespace prefix
* @ns: an namespace declaration instance * @ns: an namespace declaration instance
* @value: the attribute value (without entities processing) * @value: the attribute value (without entities processing)
* *

12
xmlIO.c
View File

@ -246,7 +246,7 @@ xmlCleanupOutputCallbacks(void)
************************************************************************/ ************************************************************************/
/** /**
* xmlCheckFilename * xmlCheckFilename:
* @path: the path to check * @path: the path to check
* *
* function checks to see if @path is a valid source * function checks to see if @path is a valid source
@ -461,6 +461,8 @@ xmlFileWrite (void * context, const char * buffer, int len) {
* @context: the I/O context * @context: the I/O context
* *
* Close an I/O channel * Close an I/O channel
*
* Returns 0 or -1 in case of error
*/ */
int int
xmlFileClose (void * context) { xmlFileClose (void * context) {
@ -1033,7 +1035,7 @@ xmlIOHTTPOpen (const char *filename) {
} }
/** /**
* xmlIOHTTPOpenW * xmlIOHTTPOpenW:
* @post_uri: The destination URI for the document * @post_uri: The destination URI for the document
* @compression: The compression desired for the document. * @compression: The compression desired for the document.
* *
@ -1176,6 +1178,8 @@ xmlIOHTTPWrite( void * context, const char * buffer, int len ) {
* @context: the I/O context * @context: the I/O context
* *
* Close an HTTP I/O channel * Close an HTTP I/O channel
*
* Returns 0
*/ */
int int
xmlIOHTTPClose (void * context) { xmlIOHTTPClose (void * context) {
@ -1396,6 +1400,8 @@ xmlIOFTPRead(void * context, char * buffer, int len) {
* @context: the I/O context * @context: the I/O context
* *
* Close an FTP I/O channel * Close an FTP I/O channel
*
* Returns 0
*/ */
int int
xmlIOFTPClose (void * context) { xmlIOFTPClose (void * context) {
@ -1524,7 +1530,7 @@ xmlRegisterDefaultOutputCallbacks
#ifdef LIBXML_HTTP_ENABLED #ifdef LIBXML_HTTP_ENABLED
/** /**
* xmlRegisterHTTPPostCallbacks * xmlRegisterHTTPPostCallbacks:
* *
* By default, libxml submits HTTP output requests using the "PUT" method. * By default, libxml submits HTTP output requests using the "PUT" method.
* Calling this method changes the HTTP output method to use the "POST" * Calling this method changes the HTTP output method to use the "POST"

View File

@ -427,7 +427,7 @@ xmlMemoryStrdup(const char *str) {
/** /**
* xmlMemUsed: * xmlMemUsed:
* *
* returns the amount of memory currently allocated * Provides the amount of memory currently allocated
* *
* Returns an int representing the amount of memory allocated. * Returns an int representing the amount of memory allocated.
*/ */
@ -754,12 +754,12 @@ xmlMemSetup(xmlFreeFunc freeFunc, xmlMallocFunc mallocFunc,
/** /**
* xmlMemGet: * xmlMemGet:
* @freeFunc: the free() function in use * @freeFunc: place to save the free() function in use
* @mallocFunc: the malloc() function in use * @mallocFunc: place to save the malloc() function in use
* @reallocFunc: the realloc() function in use * @reallocFunc: place to save the realloc() function in use
* @strdupFunc: the strdup() function in use * @strdupFunc: place to save the strdup() function in use
* *
* Return the memory access functions set currently in use * Provides the memory access functions set currently in use
* *
* Returns 0 on success * Returns 0 on success
*/ */

View File

@ -482,7 +482,7 @@ xmlFreeTextReader(xmlTextReaderPtr reader) {
* xmlTextReaderAttributeCount: * xmlTextReaderAttributeCount:
* @reader: the xmlTextReaderPtr used * @reader: the xmlTextReaderPtr used
* *
* Returns the number of attributes of the current node * Provides the number of attributes of the current node
* *
* Returns 0 i no attributes, -1 in case of error or the attribute count * Returns 0 i no attributes, -1 in case of error or the attribute count
*/ */

View File

@ -3961,6 +3961,8 @@ xmlFreeAutomata(xmlAutomataPtr am) {
* xmlAutomataGetInitState: * xmlAutomataGetInitState:
* @am: an automata * @am: an automata
* *
* Initial state lookup
*
* Returns the initial state of the automata * Returns the initial state of the automata
*/ */
xmlAutomataStatePtr xmlAutomataStatePtr
@ -4028,7 +4030,8 @@ xmlAutomataNewTransition(xmlAutomataPtr am, xmlAutomataStatePtr from,
* @to: the target point of the transition or NULL * @to: the target point of the transition or NULL
* @token: the input string associated to that transition * @token: the input string associated to that transition
* @min: the minimum successive occurences of token * @min: the minimum successive occurences of token
* @min: the maximum successive occurences of token * @max: the maximum successive occurences of token
* @data: data associated to the transition
* *
* If @to is NULL, this create first a new target state in the automata * If @to is NULL, this create first a new target state in the automata
* and then adds a transition from the @from state to the target state * and then adds a transition from the @from state to the target state
@ -4077,7 +4080,8 @@ xmlAutomataNewCountTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
* @to: the target point of the transition or NULL * @to: the target point of the transition or NULL
* @token: the input string associated to that transition * @token: the input string associated to that transition
* @min: the minimum successive occurences of token * @min: the minimum successive occurences of token
* @min: the maximum successive occurences of token * @max: the maximum successive occurences of token
* @data: data associated to the transition
* *
* If @to is NULL, this create first a new target state in the automata * If @to is NULL, this create first a new target state in the automata
* and then adds a transition from the @from state to the target state * and then adds a transition from the @from state to the target state
@ -4153,7 +4157,7 @@ xmlAutomataNewState(xmlAutomataPtr am) {
} }
/** /**
* xmlAutomataNewTransition: * xmlAutomataNewEpsilon:
* @am: an automata * @am: an automata
* @from: the starting point of the transition * @from: the starting point of the transition
* @to: the target point of the transition or NULL * @to: the target point of the transition or NULL
@ -4180,6 +4184,7 @@ xmlAutomataNewEpsilon(xmlAutomataPtr am, xmlAutomataStatePtr from,
* @am: an automata * @am: an automata
* @from: the starting point of the transition * @from: the starting point of the transition
* @to: the target point of the transition or NULL * @to: the target point of the transition or NULL
* @lax: allow to transition if not all all transitions have been activated
* *
* If @to is NULL, this create first a new target state in the automata * If @to is NULL, this create first a new target state in the automata
* and then adds a an ALL transition from the @from state to the * and then adds a an ALL transition from the @from state to the

View File

@ -5401,7 +5401,7 @@ xmlSchemaFreeValidCtxt(xmlSchemaValidCtxtPtr ctxt) {
* @ctxt: a schema validation context * @ctxt: a schema validation context
* @err: the error function * @err: the error function
* @warn: the warning function * @warn: the warning function
* @ctxt: the functions context * @ctx: the functions context
* *
* Set the error and warning callback informations * Set the error and warning callback informations
*/ */