mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
fixed up some gcc warnings, no change to logic. New macro XML_CAST_FPTR to
* dict.c, xpath.c, include/libxml/hash.h: fixed up some gcc warnings, no change to logic. New macro XML_CAST_FPTR to circumvent gcc warnings on function pointer <-> object pointer (a hack).
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 1 22:35:37 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* dict.c, xpath.c, include/libxml/hash.h: fixed up some gcc warnings,
|
||||||
|
no change to logic. New macro XML_CAST_FPTR to circumvent gcc
|
||||||
|
warnings on function pointer <-> object pointer (a hack).
|
||||||
|
|
||||||
Mon Nov 29 14:07:18 CET 2004 Daniel Veillard <daniel@veillard.com>
|
Mon Nov 29 14:07:18 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xpath.c: fixed a memory leak on errors in some circumstances #159812
|
* xpath.c: fixed a memory leak on errors in some circumstances #159812
|
||||||
|
2
dict.c
2
dict.c
@@ -612,9 +612,7 @@ xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len) {
|
|||||||
const xmlChar *
|
const xmlChar *
|
||||||
xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len) {
|
xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len) {
|
||||||
unsigned long key, okey, nbi = 0;
|
unsigned long key, okey, nbi = 0;
|
||||||
xmlDictEntryPtr entry;
|
|
||||||
xmlDictEntryPtr insert;
|
xmlDictEntryPtr insert;
|
||||||
const xmlChar *ret;
|
|
||||||
|
|
||||||
if ((dict == NULL) || (name == NULL))
|
if ((dict == NULL) || (name == NULL))
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
@@ -32,6 +32,24 @@ typedef xmlHashTable *xmlHashTablePtr;
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Recent version of gcc produce a warning when a function pointer is assigned
|
||||||
|
* to an object pointer, or vice versa. The following macro is a dirty hack
|
||||||
|
* to allow suppression of the warning. If your architecture has function
|
||||||
|
* pointers which are a different size than a void pointer, there may be some
|
||||||
|
* serious trouble within the library.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* XML_CAST_FPTR:
|
||||||
|
* @fptr: pointer to a function
|
||||||
|
*
|
||||||
|
* Macro to do a casting from an object pointer to a
|
||||||
|
* function pointer without encountering a warning from
|
||||||
|
* gcc
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define XML_CAST_FPTR(fptr) (*(void **)(&fptr))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* function types:
|
* function types:
|
||||||
*/
|
*/
|
||||||
|
@@ -666,61 +666,6 @@ Class xmlDoc(xmlNode)
|
|||||||
|
|
||||||
# functions from module xpointer
|
# functions from module xpointer
|
||||||
xpointerNewContext()
|
xpointerNewContext()
|
||||||
Class xpathContext()
|
|
||||||
# accessors
|
|
||||||
contextDoc()
|
|
||||||
contextNode()
|
|
||||||
contextPosition()
|
|
||||||
contextSize()
|
|
||||||
function()
|
|
||||||
functionURI()
|
|
||||||
setContextDoc()
|
|
||||||
setContextNode()
|
|
||||||
|
|
||||||
# functions from module python
|
|
||||||
registerXPathFunction()
|
|
||||||
|
|
||||||
# functions from module xpath
|
|
||||||
xpathEval()
|
|
||||||
xpathEvalExpression()
|
|
||||||
xpathFreeContext()
|
|
||||||
|
|
||||||
# functions from module xpathInternals
|
|
||||||
xpathNewParserContext()
|
|
||||||
xpathNsLookup()
|
|
||||||
xpathRegisterAllFunctions()
|
|
||||||
xpathRegisterNs()
|
|
||||||
xpathRegisteredFuncsCleanup()
|
|
||||||
xpathRegisteredNsCleanup()
|
|
||||||
xpathRegisteredVariablesCleanup()
|
|
||||||
xpathVariableLookup()
|
|
||||||
xpathVariableLookupNS()
|
|
||||||
|
|
||||||
# functions from module xpointer
|
|
||||||
xpointerEval()
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlAttribute(xmlNode)
|
|
||||||
Class ValidCtxt()
|
|
||||||
|
|
||||||
# functions from module valid
|
|
||||||
validCtxtNormalizeAttributeValue()
|
|
||||||
validateDocument()
|
|
||||||
validateDocumentFinal()
|
|
||||||
validateDtd()
|
|
||||||
validateDtdFinal()
|
|
||||||
validateElement()
|
|
||||||
validateNotationUse()
|
|
||||||
validateOneAttribute()
|
|
||||||
validateOneElement()
|
|
||||||
validateOneNamespace()
|
|
||||||
validatePopElement()
|
|
||||||
validatePushCData()
|
|
||||||
validatePushElement()
|
|
||||||
validateRoot()
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlElement(xmlNode)
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlAttr(xmlNode)
|
Class xmlAttr(xmlNode)
|
||||||
@@ -739,116 +684,12 @@ Class xmlAttr(xmlNode)
|
|||||||
# functions from module valid
|
# functions from module valid
|
||||||
removeID()
|
removeID()
|
||||||
removeRef()
|
removeRef()
|
||||||
|
|
||||||
|
|
||||||
Class xmlTextReader(xmlTextReaderCore)
|
|
||||||
|
|
||||||
# functions from module xmlreader
|
|
||||||
AttributeCount()
|
|
||||||
BaseUri()
|
|
||||||
Close()
|
|
||||||
CurrentDoc()
|
|
||||||
CurrentNode()
|
|
||||||
Depth()
|
|
||||||
Encoding()
|
|
||||||
Expand()
|
|
||||||
GetAttribute()
|
|
||||||
GetAttributeNo()
|
|
||||||
GetAttributeNs()
|
|
||||||
GetParserProp()
|
|
||||||
GetRemainder()
|
|
||||||
HasAttributes()
|
|
||||||
HasValue()
|
|
||||||
IsDefault()
|
|
||||||
IsEmptyElement()
|
|
||||||
IsNamespaceDecl()
|
|
||||||
IsValid()
|
|
||||||
LocalName()
|
|
||||||
LookupNamespace()
|
|
||||||
MoveToAttribute()
|
|
||||||
MoveToAttributeNo()
|
|
||||||
MoveToAttributeNs()
|
|
||||||
MoveToElement()
|
|
||||||
MoveToFirstAttribute()
|
|
||||||
MoveToNextAttribute()
|
|
||||||
Name()
|
|
||||||
NamespaceUri()
|
|
||||||
NewDoc()
|
|
||||||
NewFd()
|
|
||||||
NewFile()
|
|
||||||
NewMemory()
|
|
||||||
NewWalker()
|
|
||||||
Next()
|
|
||||||
NextSibling()
|
|
||||||
NodeType()
|
|
||||||
Normalization()
|
|
||||||
Prefix()
|
|
||||||
Preserve()
|
|
||||||
QuoteChar()
|
|
||||||
Read()
|
|
||||||
ReadAttributeValue()
|
|
||||||
ReadInnerXml()
|
|
||||||
ReadOuterXml()
|
|
||||||
ReadState()
|
|
||||||
ReadString()
|
|
||||||
RelaxNGSetSchema()
|
|
||||||
RelaxNGValidate()
|
|
||||||
SetParserProp()
|
|
||||||
Standalone()
|
|
||||||
String()
|
|
||||||
Value()
|
|
||||||
XmlLang()
|
|
||||||
XmlVersion()
|
|
||||||
Class xmlReg()
|
Class xmlReg()
|
||||||
|
|
||||||
# functions from module xmlregexp
|
# functions from module xmlregexp
|
||||||
regexpExec()
|
regexpExec()
|
||||||
regexpIsDeterminist()
|
regexpIsDeterminist()
|
||||||
regexpPrint()
|
regexpPrint()
|
||||||
Class catalog()
|
|
||||||
|
|
||||||
# functions from module catalog
|
|
||||||
add()
|
|
||||||
catalogIsEmpty()
|
|
||||||
convertSGMLCatalog()
|
|
||||||
dump()
|
|
||||||
remove()
|
|
||||||
resolve()
|
|
||||||
resolvePublic()
|
|
||||||
resolveSystem()
|
|
||||||
resolveURI()
|
|
||||||
|
|
||||||
|
|
||||||
Class xmlEntity(xmlNode)
|
|
||||||
|
|
||||||
# functions from module parserInternals
|
|
||||||
handleEntity()
|
|
||||||
Class relaxNgSchema()
|
|
||||||
|
|
||||||
# functions from module relaxng
|
|
||||||
relaxNGDump()
|
|
||||||
relaxNGDumpTree()
|
|
||||||
relaxNGNewValidCtxt()
|
|
||||||
|
|
||||||
# functions from module xmlreader
|
|
||||||
RelaxNGSetSchema()
|
|
||||||
Class Schema()
|
|
||||||
|
|
||||||
# functions from module xmlschemas
|
|
||||||
schemaDump()
|
|
||||||
schemaNewValidCtxt()
|
|
||||||
Class Error()
|
|
||||||
# accessors
|
|
||||||
code()
|
|
||||||
domain()
|
|
||||||
file()
|
|
||||||
level()
|
|
||||||
line()
|
|
||||||
message()
|
|
||||||
|
|
||||||
# functions from module xmlerror
|
|
||||||
copyError()
|
|
||||||
resetError()
|
|
||||||
Class relaxNgValidCtxt()
|
Class relaxNgValidCtxt()
|
||||||
|
|
||||||
# functions from module relaxng
|
# functions from module relaxng
|
||||||
@@ -857,73 +698,6 @@ Class relaxNgValidCtxt()
|
|||||||
relaxNGValidatePopElement()
|
relaxNGValidatePopElement()
|
||||||
relaxNGValidatePushCData()
|
relaxNGValidatePushCData()
|
||||||
relaxNGValidatePushElement()
|
relaxNGValidatePushElement()
|
||||||
Class xpathParserContext()
|
|
||||||
# accessors
|
|
||||||
context()
|
|
||||||
|
|
||||||
# functions from module xpathInternals
|
|
||||||
xpathAddValues()
|
|
||||||
xpathBooleanFunction()
|
|
||||||
xpathCeilingFunction()
|
|
||||||
xpathCompareValues()
|
|
||||||
xpathConcatFunction()
|
|
||||||
xpathContainsFunction()
|
|
||||||
xpathCountFunction()
|
|
||||||
xpathDivValues()
|
|
||||||
xpathEqualValues()
|
|
||||||
xpathErr()
|
|
||||||
xpathEvalExpr()
|
|
||||||
xpathFalseFunction()
|
|
||||||
xpathFloorFunction()
|
|
||||||
xpathFreeParserContext()
|
|
||||||
xpathIdFunction()
|
|
||||||
xpathLangFunction()
|
|
||||||
xpathLastFunction()
|
|
||||||
xpathLocalNameFunction()
|
|
||||||
xpathModValues()
|
|
||||||
xpathMultValues()
|
|
||||||
xpathNamespaceURIFunction()
|
|
||||||
xpathNextAncestor()
|
|
||||||
xpathNextAncestorOrSelf()
|
|
||||||
xpathNextAttribute()
|
|
||||||
xpathNextChild()
|
|
||||||
xpathNextDescendant()
|
|
||||||
xpathNextDescendantOrSelf()
|
|
||||||
xpathNextFollowing()
|
|
||||||
xpathNextFollowingSibling()
|
|
||||||
xpathNextNamespace()
|
|
||||||
xpathNextParent()
|
|
||||||
xpathNextPreceding()
|
|
||||||
xpathNextPrecedingSibling()
|
|
||||||
xpathNextSelf()
|
|
||||||
xpathNormalizeFunction()
|
|
||||||
xpathNotEqualValues()
|
|
||||||
xpathNotFunction()
|
|
||||||
xpathNumberFunction()
|
|
||||||
xpathParseNCName()
|
|
||||||
xpathParseName()
|
|
||||||
xpathPopBoolean()
|
|
||||||
xpathPopNumber()
|
|
||||||
xpathPopString()
|
|
||||||
xpathPositionFunction()
|
|
||||||
xpathRoot()
|
|
||||||
xpathRoundFunction()
|
|
||||||
xpathStartsWithFunction()
|
|
||||||
xpathStringFunction()
|
|
||||||
xpathStringLengthFunction()
|
|
||||||
xpathSubValues()
|
|
||||||
xpathSubstringAfterFunction()
|
|
||||||
xpathSubstringBeforeFunction()
|
|
||||||
xpathSubstringFunction()
|
|
||||||
xpathSumFunction()
|
|
||||||
xpathTranslateFunction()
|
|
||||||
xpathTrueFunction()
|
|
||||||
xpathValueFlipSign()
|
|
||||||
xpatherror()
|
|
||||||
|
|
||||||
# functions from module xpointer
|
|
||||||
xpointerEvalRangePredicate()
|
|
||||||
xpointerRangeToFunction()
|
|
||||||
|
|
||||||
|
|
||||||
Class parserCtxt(parserCtxtCore)
|
Class parserCtxt(parserCtxtCore)
|
||||||
@@ -1031,6 +805,99 @@ Class xmlDtd(xmlNode)
|
|||||||
dtdElementDesc()
|
dtdElementDesc()
|
||||||
dtdQAttrDesc()
|
dtdQAttrDesc()
|
||||||
dtdQElementDesc()
|
dtdQElementDesc()
|
||||||
|
Class relaxNgParserCtxt()
|
||||||
|
|
||||||
|
# functions from module relaxng
|
||||||
|
relaxNGParse()
|
||||||
|
relaxParserSetFlag()
|
||||||
|
Class xpathParserContext()
|
||||||
|
# accessors
|
||||||
|
context()
|
||||||
|
|
||||||
|
# functions from module xpathInternals
|
||||||
|
xpathAddValues()
|
||||||
|
xpathBooleanFunction()
|
||||||
|
xpathCeilingFunction()
|
||||||
|
xpathCompareValues()
|
||||||
|
xpathConcatFunction()
|
||||||
|
xpathContainsFunction()
|
||||||
|
xpathCountFunction()
|
||||||
|
xpathDivValues()
|
||||||
|
xpathEqualValues()
|
||||||
|
xpathErr()
|
||||||
|
xpathEvalExpr()
|
||||||
|
xpathFalseFunction()
|
||||||
|
xpathFloorFunction()
|
||||||
|
xpathFreeParserContext()
|
||||||
|
xpathIdFunction()
|
||||||
|
xpathLangFunction()
|
||||||
|
xpathLastFunction()
|
||||||
|
xpathLocalNameFunction()
|
||||||
|
xpathModValues()
|
||||||
|
xpathMultValues()
|
||||||
|
xpathNamespaceURIFunction()
|
||||||
|
xpathNextAncestor()
|
||||||
|
xpathNextAncestorOrSelf()
|
||||||
|
xpathNextAttribute()
|
||||||
|
xpathNextChild()
|
||||||
|
xpathNextDescendant()
|
||||||
|
xpathNextDescendantOrSelf()
|
||||||
|
xpathNextFollowing()
|
||||||
|
xpathNextFollowingSibling()
|
||||||
|
xpathNextNamespace()
|
||||||
|
xpathNextParent()
|
||||||
|
xpathNextPreceding()
|
||||||
|
xpathNextPrecedingSibling()
|
||||||
|
xpathNextSelf()
|
||||||
|
xpathNormalizeFunction()
|
||||||
|
xpathNotEqualValues()
|
||||||
|
xpathNotFunction()
|
||||||
|
xpathNumberFunction()
|
||||||
|
xpathParseNCName()
|
||||||
|
xpathParseName()
|
||||||
|
xpathPopBoolean()
|
||||||
|
xpathPopNumber()
|
||||||
|
xpathPopString()
|
||||||
|
xpathPositionFunction()
|
||||||
|
xpathRoot()
|
||||||
|
xpathRoundFunction()
|
||||||
|
xpathStartsWithFunction()
|
||||||
|
xpathStringFunction()
|
||||||
|
xpathStringLengthFunction()
|
||||||
|
xpathSubValues()
|
||||||
|
xpathSubstringAfterFunction()
|
||||||
|
xpathSubstringBeforeFunction()
|
||||||
|
xpathSubstringFunction()
|
||||||
|
xpathSumFunction()
|
||||||
|
xpathTranslateFunction()
|
||||||
|
xpathTrueFunction()
|
||||||
|
xpathValueFlipSign()
|
||||||
|
xpatherror()
|
||||||
|
|
||||||
|
# functions from module xpointer
|
||||||
|
xpointerEvalRangePredicate()
|
||||||
|
xpointerRangeToFunction()
|
||||||
|
Class SchemaParserCtxt()
|
||||||
|
|
||||||
|
# functions from module xmlschemas
|
||||||
|
schemaParse()
|
||||||
|
Class ValidCtxt()
|
||||||
|
|
||||||
|
# functions from module valid
|
||||||
|
validCtxtNormalizeAttributeValue()
|
||||||
|
validateDocument()
|
||||||
|
validateDocumentFinal()
|
||||||
|
validateDtd()
|
||||||
|
validateDtdFinal()
|
||||||
|
validateElement()
|
||||||
|
validateNotationUse()
|
||||||
|
validateOneAttribute()
|
||||||
|
validateOneElement()
|
||||||
|
validateOneNamespace()
|
||||||
|
validatePopElement()
|
||||||
|
validatePushCData()
|
||||||
|
validatePushElement()
|
||||||
|
validateRoot()
|
||||||
|
|
||||||
|
|
||||||
Class xmlNs(xmlNode)
|
Class xmlNs(xmlNode)
|
||||||
@@ -1054,51 +921,6 @@ Class xmlNs(xmlNode)
|
|||||||
|
|
||||||
# functions from module xpathInternals
|
# functions from module xpathInternals
|
||||||
xpathNodeSetFreeNs()
|
xpathNodeSetFreeNs()
|
||||||
|
|
||||||
|
|
||||||
Class inputBuffer(ioReadWrapper)
|
|
||||||
|
|
||||||
# functions from module xmlIO
|
|
||||||
grow()
|
|
||||||
push()
|
|
||||||
read()
|
|
||||||
|
|
||||||
# functions from module xmlreader
|
|
||||||
newTextReader()
|
|
||||||
Class relaxNgParserCtxt()
|
|
||||||
|
|
||||||
# functions from module relaxng
|
|
||||||
relaxNGParse()
|
|
||||||
relaxParserSetFlag()
|
|
||||||
|
|
||||||
|
|
||||||
Class outputBuffer(ioWriteWrapper)
|
|
||||||
|
|
||||||
# functions from module HTMLtree
|
|
||||||
htmlDocContentDumpFormatOutput()
|
|
||||||
htmlDocContentDumpOutput()
|
|
||||||
htmlNodeDumpFormatOutput()
|
|
||||||
htmlNodeDumpOutput()
|
|
||||||
|
|
||||||
# functions from module tree
|
|
||||||
nodeDumpOutput()
|
|
||||||
saveFileTo()
|
|
||||||
saveFormatFileTo()
|
|
||||||
|
|
||||||
# functions from module xmlIO
|
|
||||||
write()
|
|
||||||
writeString()
|
|
||||||
Class SchemaParserCtxt()
|
|
||||||
|
|
||||||
# functions from module xmlschemas
|
|
||||||
schemaParse()
|
|
||||||
Class SchemaValidCtxt()
|
|
||||||
|
|
||||||
# functions from module xmlschemas
|
|
||||||
schemaSetValidOptions()
|
|
||||||
schemaValidCtxtGetOptions()
|
|
||||||
schemaValidateDoc()
|
|
||||||
schemaValidateOneElement()
|
|
||||||
Class xmlTextReaderLocator()
|
Class xmlTextReaderLocator()
|
||||||
|
|
||||||
# functions from module xmlreader
|
# functions from module xmlreader
|
||||||
@@ -1129,3 +951,181 @@ Class URI()
|
|||||||
parseURIReference()
|
parseURIReference()
|
||||||
printURI()
|
printURI()
|
||||||
saveUri()
|
saveUri()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlAttribute(xmlNode)
|
||||||
|
Class catalog()
|
||||||
|
|
||||||
|
# functions from module catalog
|
||||||
|
add()
|
||||||
|
catalogIsEmpty()
|
||||||
|
convertSGMLCatalog()
|
||||||
|
dump()
|
||||||
|
remove()
|
||||||
|
resolve()
|
||||||
|
resolvePublic()
|
||||||
|
resolveSystem()
|
||||||
|
resolveURI()
|
||||||
|
Class xpathContext()
|
||||||
|
# accessors
|
||||||
|
contextDoc()
|
||||||
|
contextNode()
|
||||||
|
contextPosition()
|
||||||
|
contextSize()
|
||||||
|
function()
|
||||||
|
functionURI()
|
||||||
|
setContextDoc()
|
||||||
|
setContextNode()
|
||||||
|
|
||||||
|
# functions from module python
|
||||||
|
registerXPathFunction()
|
||||||
|
|
||||||
|
# functions from module xpath
|
||||||
|
xpathEval()
|
||||||
|
xpathEvalExpression()
|
||||||
|
xpathFreeContext()
|
||||||
|
|
||||||
|
# functions from module xpathInternals
|
||||||
|
xpathNewParserContext()
|
||||||
|
xpathNsLookup()
|
||||||
|
xpathRegisterAllFunctions()
|
||||||
|
xpathRegisterNs()
|
||||||
|
xpathRegisteredFuncsCleanup()
|
||||||
|
xpathRegisteredNsCleanup()
|
||||||
|
xpathRegisteredVariablesCleanup()
|
||||||
|
xpathVariableLookup()
|
||||||
|
xpathVariableLookupNS()
|
||||||
|
|
||||||
|
# functions from module xpointer
|
||||||
|
xpointerEval()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlElement(xmlNode)
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlTextReader(xmlTextReaderCore)
|
||||||
|
|
||||||
|
# functions from module xmlreader
|
||||||
|
AttributeCount()
|
||||||
|
BaseUri()
|
||||||
|
Close()
|
||||||
|
CurrentDoc()
|
||||||
|
CurrentNode()
|
||||||
|
Depth()
|
||||||
|
Encoding()
|
||||||
|
Expand()
|
||||||
|
GetAttribute()
|
||||||
|
GetAttributeNo()
|
||||||
|
GetAttributeNs()
|
||||||
|
GetParserProp()
|
||||||
|
GetRemainder()
|
||||||
|
HasAttributes()
|
||||||
|
HasValue()
|
||||||
|
IsDefault()
|
||||||
|
IsEmptyElement()
|
||||||
|
IsNamespaceDecl()
|
||||||
|
IsValid()
|
||||||
|
LocalName()
|
||||||
|
LookupNamespace()
|
||||||
|
MoveToAttribute()
|
||||||
|
MoveToAttributeNo()
|
||||||
|
MoveToAttributeNs()
|
||||||
|
MoveToElement()
|
||||||
|
MoveToFirstAttribute()
|
||||||
|
MoveToNextAttribute()
|
||||||
|
Name()
|
||||||
|
NamespaceUri()
|
||||||
|
NewDoc()
|
||||||
|
NewFd()
|
||||||
|
NewFile()
|
||||||
|
NewMemory()
|
||||||
|
NewWalker()
|
||||||
|
Next()
|
||||||
|
NextSibling()
|
||||||
|
NodeType()
|
||||||
|
Normalization()
|
||||||
|
Prefix()
|
||||||
|
Preserve()
|
||||||
|
QuoteChar()
|
||||||
|
Read()
|
||||||
|
ReadAttributeValue()
|
||||||
|
ReadInnerXml()
|
||||||
|
ReadOuterXml()
|
||||||
|
ReadState()
|
||||||
|
ReadString()
|
||||||
|
RelaxNGSetSchema()
|
||||||
|
RelaxNGValidate()
|
||||||
|
SetParserProp()
|
||||||
|
Standalone()
|
||||||
|
String()
|
||||||
|
Value()
|
||||||
|
XmlLang()
|
||||||
|
XmlVersion()
|
||||||
|
|
||||||
|
|
||||||
|
Class xmlEntity(xmlNode)
|
||||||
|
|
||||||
|
# functions from module parserInternals
|
||||||
|
handleEntity()
|
||||||
|
Class Schema()
|
||||||
|
|
||||||
|
# functions from module xmlschemas
|
||||||
|
schemaDump()
|
||||||
|
schemaNewValidCtxt()
|
||||||
|
Class Error()
|
||||||
|
# accessors
|
||||||
|
code()
|
||||||
|
domain()
|
||||||
|
file()
|
||||||
|
level()
|
||||||
|
line()
|
||||||
|
message()
|
||||||
|
|
||||||
|
# functions from module xmlerror
|
||||||
|
copyError()
|
||||||
|
resetError()
|
||||||
|
Class relaxNgSchema()
|
||||||
|
|
||||||
|
# functions from module relaxng
|
||||||
|
relaxNGDump()
|
||||||
|
relaxNGDumpTree()
|
||||||
|
relaxNGNewValidCtxt()
|
||||||
|
|
||||||
|
# functions from module xmlreader
|
||||||
|
RelaxNGSetSchema()
|
||||||
|
|
||||||
|
|
||||||
|
Class inputBuffer(ioReadWrapper)
|
||||||
|
|
||||||
|
# functions from module xmlIO
|
||||||
|
grow()
|
||||||
|
push()
|
||||||
|
read()
|
||||||
|
|
||||||
|
# functions from module xmlreader
|
||||||
|
newTextReader()
|
||||||
|
Class SchemaValidCtxt()
|
||||||
|
|
||||||
|
# functions from module xmlschemas
|
||||||
|
schemaSetValidOptions()
|
||||||
|
schemaValidCtxtGetOptions()
|
||||||
|
schemaValidateDoc()
|
||||||
|
schemaValidateOneElement()
|
||||||
|
|
||||||
|
|
||||||
|
Class outputBuffer(ioWriteWrapper)
|
||||||
|
|
||||||
|
# functions from module HTMLtree
|
||||||
|
htmlDocContentDumpFormatOutput()
|
||||||
|
htmlDocContentDumpOutput()
|
||||||
|
htmlNodeDumpFormatOutput()
|
||||||
|
htmlNodeDumpOutput()
|
||||||
|
|
||||||
|
# functions from module tree
|
||||||
|
nodeDumpOutput()
|
||||||
|
saveFileTo()
|
||||||
|
saveFormatFileTo()
|
||||||
|
|
||||||
|
# functions from module xmlIO
|
||||||
|
write()
|
||||||
|
writeString()
|
||||||
|
12
xpath.c
12
xpath.c
@@ -2813,7 +2813,7 @@ xmlXPathRegisterFuncNS(xmlXPathContextPtr ctxt, const xmlChar *name,
|
|||||||
return(-1);
|
return(-1);
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
return(xmlHashRemoveEntry2(ctxt->funcHash, name, ns_uri, NULL));
|
return(xmlHashRemoveEntry2(ctxt->funcHash, name, ns_uri, NULL));
|
||||||
return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, (void *) f));
|
return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2875,13 +2875,14 @@ xmlXPathFunctionLookup(xmlXPathContextPtr ctxt, const xmlChar *name) {
|
|||||||
xmlXPathFunction
|
xmlXPathFunction
|
||||||
xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
|
xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
|
||||||
const xmlChar *ns_uri) {
|
const xmlChar *ns_uri) {
|
||||||
|
xmlXPathFunction ret;
|
||||||
|
|
||||||
if (ctxt == NULL)
|
if (ctxt == NULL)
|
||||||
return(NULL);
|
return(NULL);
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
if (ctxt->funcLookupFunc != NULL) {
|
if (ctxt->funcLookupFunc != NULL) {
|
||||||
xmlXPathFunction ret;
|
|
||||||
xmlXPathFuncLookupFunc f;
|
xmlXPathFuncLookupFunc f;
|
||||||
|
|
||||||
f = ctxt->funcLookupFunc;
|
f = ctxt->funcLookupFunc;
|
||||||
@@ -2893,7 +2894,8 @@ xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
|
|||||||
if (ctxt->funcHash == NULL)
|
if (ctxt->funcHash == NULL)
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
return((xmlXPathFunction) xmlHashLookup2(ctxt->funcHash, name, ns_uri));
|
XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
|
||||||
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10404,7 +10406,7 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
|
|||||||
return (total);
|
return (total);
|
||||||
}
|
}
|
||||||
if (op->cache != NULL)
|
if (op->cache != NULL)
|
||||||
func = (xmlXPathFunction) op->cache;
|
XML_CAST_FPTR(func) = op->cache;
|
||||||
else {
|
else {
|
||||||
const xmlChar *URI = NULL;
|
const xmlChar *URI = NULL;
|
||||||
|
|
||||||
@@ -10429,7 +10431,7 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
|
|||||||
op->value4);
|
op->value4);
|
||||||
XP_ERROR0(XPATH_UNKNOWN_FUNC_ERROR);
|
XP_ERROR0(XPATH_UNKNOWN_FUNC_ERROR);
|
||||||
}
|
}
|
||||||
op->cache = (void *) func;
|
op->cache = XML_CAST_FPTR(func);
|
||||||
op->cacheURI = (void *) URI;
|
op->cacheURI = (void *) URI;
|
||||||
}
|
}
|
||||||
oldFunc = ctxt->context->function;
|
oldFunc = ctxt->context->function;
|
||||||
|
Reference in New Issue
Block a user