Home
last modified time | relevance | path

Searched refs:xmlMalloc (Results 1 – 25 of 98) sorted by relevance

1234

/external/libxml2/
Dlist.c191 if (NULL == (l = (xmlListPtr )xmlMalloc( sizeof(xmlList)))) { in xmlListCreate()
200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate()
281 lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink)); in xmlListInsert()
313 lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink)); in xmlListAppend()
550 lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink)); in xmlListPushFront()
582 if (NULL ==(lkNew = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListPushBack()
Dglobals.c77 #undef xmlMalloc
84 xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc; variable
104 xmlMallocFunc xmlMalloc = (xmlMallocFunc) malloc; variable
530 gs->xmlMalloc = (xmlMallocFunc) xmlMemMalloc; in xmlInitializeGlobalState()
536 gs->xmlMalloc = (xmlMallocFunc) malloc; in xmlInitializeGlobalState()
729 #undef xmlMalloc
733 return (&xmlMalloc); in __xmlMalloc()
735 return (&xmlGetGlobalState()->xmlMalloc); in __xmlMalloc()
Dxmlmemory.c66 #ifdef xmlMalloc
67 #undef xmlMalloc
1016 xmlMalloc = mallocFunc; in xmlMemSetup()
1042 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlMemGet()
1085 xmlMalloc = mallocFunc; in xmlGcMemSetup()
1115 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlGcMemGet()
Ddict.c270 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString()
338 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddQString()
547 dict = xmlMalloc(sizeof(xmlDict)); in xmlDictCreate()
554 dict->dict = xmlMalloc(MIN_DICT_SIZE * sizeof(xmlDictEntry)); in xmlDictCreate()
657 dict->dict = xmlMalloc(size * sizeof(xmlDictEntry)); in xmlDictGrow()
688 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictGrow()
929 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictLookup()
1145 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictQLookup()
Dschematron.c329 ret = (xmlSchematronTestPtr) xmlMalloc(sizeof(xmlSchematronTest)); in xmlSchematronAddTest()
412 ret = (xmlSchematronRulePtr) xmlMalloc(sizeof(xmlSchematronRule)); in xmlSchematronAddRule()
490 ret = (xmlSchematronPatternPtr) xmlMalloc(sizeof(xmlSchematronPattern)); in xmlSchematronAddPattern()
542 ret = (xmlSchematronPtr) xmlMalloc(sizeof(xmlSchematron)); in xmlSchematronNewSchematron()
597 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewParserCtxt()
639 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewMemParserCtxt()
678 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewDocParserCtxt()
738 xmlMalloc(ctxt->maxIncludes * 2 * sizeof(xmlNodePtr));
808 xmlMalloc(ctxt->maxNamespaces * 2 * sizeof(const xmlChar *)); in xmlSchematronAddNamespace()
1508 ret = (xmlSchematronValidCtxtPtr) xmlMalloc(sizeof(xmlSchematronValidCtxt)); in xmlSchematronNewValidCtxt()
Dxpointer.c252 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewPoint()
347 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRange()
384 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangePoints()
419 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangePointNode()
456 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeNodePoint()
489 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeNodes()
519 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewCollapsedRange()
566 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeNodeObject()
611 ret = (xmlLocationSetPtr) xmlMalloc(sizeof(xmlLocationSet)); in xmlXPtrLocationSetCreate()
618 ret->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT * in xmlXPtrLocationSetCreate()
[all …]
DparserInternals.c1342 input = (xmlParserInputPtr) xmlMalloc(sizeof(xmlParserInput)); in xmlNewInputStream()
1584 ctxt->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler)); in xmlInitParserCtxt()
1597 xmlMalloc(5 * sizeof(xmlParserInputPtr)); in xmlInitParserCtxt()
1626 ctxt->nodeTab = (xmlNodePtr *) xmlMalloc(10 * sizeof(xmlNodePtr)); in xmlInitParserCtxt()
1644 ctxt->nameTab = (const xmlChar **) xmlMalloc(10 * sizeof(xmlChar *)); in xmlInitParserCtxt()
1665 ctxt->spaceTab = (int *) xmlMalloc(10 * sizeof(int)); in xmlInitParserCtxt()
1828 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt)); in xmlNewParserCtxt()
2003 tmp_buffer = (xmlParserNodeInfo *) xmlMalloc(byte_size); in xmlParserAddNodeInfo()
Dhash.c180 table = xmlMalloc(sizeof(xmlHashTable)); in xmlHashCreate()
185 table->table = xmlMalloc(size * sizeof(xmlHashEntry)); in xmlHashCreate()
250 table->table = xmlMalloc(size * sizeof(xmlHashEntry)); in xmlHashGrow()
587 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashAddEntry3()
717 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashUpdateEntry3()
Dtree.c748 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlNewNs()
882 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlNewDtd()
956 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlCreateIntSubset()
1160 cur = (xmlDocPtr) xmlMalloc(sizeof(xmlDoc)); in xmlNewDoc()
1839 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewPropInternal()
2011 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewDocProp()
2161 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocPI()
2223 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNode()
2265 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNodeEatName()
2399 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocFragment()
[all …]
Dxmlwriter.c181 ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter)); in xmlNewTextWriter()
775 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartComment()
1007 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartElement()
1082 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartElementNS()
1872 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartAttributeNS()
2430 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartPI()
2665 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartCDATA()
2850 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTD()
3192 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDElement()
3429 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDAttlist()
[all …]
/external/chromium_org/third_party/libxml/src/
Dlist.c191 if (NULL == (l = (xmlListPtr )xmlMalloc( sizeof(xmlList)))) { in xmlListCreate()
200 if (NULL ==(l->sentinel = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListCreate()
281 lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink)); in xmlListInsert()
313 lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink)); in xmlListAppend()
550 lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink)); in xmlListPushFront()
582 if (NULL ==(lkNew = (xmlLinkPtr )xmlMalloc(sizeof(xmlLink)))) { in xmlListPushBack()
Dglobals.c77 #undef xmlMalloc
84 xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc; variable
123 xmlMallocFunc xmlMalloc = (xmlMallocFunc) size_checked_malloc; variable
549 gs->xmlMalloc = (xmlMallocFunc) xmlMemMalloc; in xmlInitializeGlobalState()
555 gs->xmlMalloc = (xmlMallocFunc) malloc; in xmlInitializeGlobalState()
748 #undef xmlMalloc
752 return (&xmlMalloc); in __xmlMalloc()
754 return (&xmlGetGlobalState()->xmlMalloc); in __xmlMalloc()
Dxmlmemory.c66 #ifdef xmlMalloc
67 #undef xmlMalloc
1013 xmlMalloc = mallocFunc; in xmlMemSetup()
1039 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlMemGet()
1082 xmlMalloc = mallocFunc; in xmlGcMemSetup()
1112 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlGcMemGet()
Ddict.c181 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString()
243 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddQString()
452 dict = xmlMalloc(sizeof(xmlDict)); in xmlDictCreate()
458 dict->dict = xmlMalloc(MIN_DICT_SIZE * sizeof(xmlDictEntry)); in xmlDictCreate()
555 dict->dict = xmlMalloc(size * sizeof(xmlDictEntry)); in xmlDictGrow()
586 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictGrow()
820 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictLookup()
1030 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictQLookup()
Dschematron.c329 ret = (xmlSchematronTestPtr) xmlMalloc(sizeof(xmlSchematronTest)); in xmlSchematronAddTest()
412 ret = (xmlSchematronRulePtr) xmlMalloc(sizeof(xmlSchematronRule)); in xmlSchematronAddRule()
490 ret = (xmlSchematronPatternPtr) xmlMalloc(sizeof(xmlSchematronPattern)); in xmlSchematronAddPattern()
542 ret = (xmlSchematronPtr) xmlMalloc(sizeof(xmlSchematron)); in xmlSchematronNewSchematron()
597 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewParserCtxt()
639 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewMemParserCtxt()
678 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewDocParserCtxt()
738 xmlMalloc(ctxt->maxIncludes * 2 * sizeof(xmlNodePtr));
808 xmlMalloc(ctxt->maxNamespaces * 2 * sizeof(const xmlChar *)); in xmlSchematronAddNamespace()
1508 ret = (xmlSchematronValidCtxtPtr) xmlMalloc(sizeof(xmlSchematronValidCtxt)); in xmlSchematronNewValidCtxt()
Dxpointer.c252 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewPoint()
347 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRange()
384 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangePoints()
419 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangePointNode()
456 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeNodePoint()
489 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeNodes()
519 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewCollapsedRange()
566 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeNodeObject()
611 ret = (xmlLocationSetPtr) xmlMalloc(sizeof(xmlLocationSet)); in xmlXPtrLocationSetCreate()
618 ret->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT * in xmlXPtrLocationSetCreate()
[all …]
Dhash.c151 table = xmlMalloc(sizeof(xmlHashTable)); in xmlHashCreate()
156 table->table = xmlMalloc(size * sizeof(xmlHashEntry)); in xmlHashCreate()
218 table->table = xmlMalloc(size * sizeof(xmlHashEntry)); in xmlHashGrow()
555 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashAddEntry3()
685 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashUpdateEntry3()
DparserInternals.c1383 input = (xmlParserInputPtr) xmlMalloc(sizeof(xmlParserInput)); in xmlNewInputStream()
1622 ctxt->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler)); in xmlInitParserCtxt()
1635 xmlMalloc(5 * sizeof(xmlParserInputPtr)); in xmlInitParserCtxt()
1664 ctxt->nodeTab = (xmlNodePtr *) xmlMalloc(10 * sizeof(xmlNodePtr)); in xmlInitParserCtxt()
1682 ctxt->nameTab = (const xmlChar **) xmlMalloc(10 * sizeof(xmlChar *)); in xmlInitParserCtxt()
1703 ctxt->spaceTab = (int *) xmlMalloc(10 * sizeof(int)); in xmlInitParserCtxt()
1863 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt)); in xmlNewParserCtxt()
2038 tmp_buffer = (xmlParserNodeInfo *) xmlMalloc(byte_size); in xmlParserAddNodeInfo()
Dtree.c730 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlNewNs()
864 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlNewDtd()
938 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlCreateIntSubset()
1142 cur = (xmlDocPtr) xmlMalloc(sizeof(xmlDoc)); in xmlNewDoc()
1799 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewPropInternal()
1971 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewDocProp()
2121 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocPI()
2183 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNode()
2225 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNodeEatName()
2359 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocFragment()
[all …]
Dxmlwriter.c177 ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter)); in xmlNewTextWriter()
771 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartComment()
1003 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartElement()
1078 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartElementNS()
1868 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartAttributeNS()
2426 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartPI()
2661 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartCDATA()
2846 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTD()
3188 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDElement()
3425 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDAttlist()
[all …]
/external/chromium_org/third_party/libxml/src/include/libxml/
Dglobals.h86 #undef xmlMalloc
128 xmlMallocFunc xmlMalloc; member
204 #define xmlMalloc \ macro
207 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
243 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
/external/libxml2/include/libxml/
Dglobals.h86 #undef xmlMalloc
128 xmlMallocFunc xmlMalloc; member
204 #define xmlMalloc \ macro
207 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
243 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
/external/chromium_org/third_party/libxslt/libxslt/
Dxsltlocale.c365 xstr = (xsltLocaleChar *) xmlMalloc(xstrlen); in xsltStrxfrm()
381 xstr = (xsltLocaleChar*) xmlMalloc(xstrlen * sizeof(xsltLocaleChar)); in xsltStrxfrm()
502 xsltLocaleList = xmlMalloc(len); in xsltEnumSupportedLocales()
Ddocuments.c147 cur = (xsltDocumentPtr) xmlMalloc(sizeof(xsltDocument)); in xsltNewDocument()
186 cur = (xsltDocumentPtr) xmlMalloc(sizeof(xsltDocument)); in xsltNewStyleDocument()
/external/chromium_org/third_party/libxslt/libexslt/
Dfunctions.c150 ret = (exsltFuncData *) xmlMalloc (sizeof(exsltFuncData)); in exsltFuncInit()
238 ret = (exsltFuncFunctionData *) xmlMalloc (sizeof(exsltFuncFunctionData)); in exsltFuncNewFunctionData()
363 savedObj = xmlMalloc(sizeof(struct objChain)); in exsltFuncFunctionFunction()
607 xmlMalloc (sizeof(exsltFuncResultPreComp)); in exsltFuncResultComp()

1234