Home
last modified time | relevance | path

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

123

/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 = malloc; variable
542 gs->xmlMalloc = (xmlMallocFunc) xmlMemMalloc; in xmlInitializeGlobalState()
548 gs->xmlMalloc = (xmlMallocFunc) malloc; in xmlInitializeGlobalState()
741 #undef xmlMalloc
745 return (&xmlMalloc); in __xmlMalloc()
747 return (&xmlGetGlobalState()->xmlMalloc); in __xmlMalloc()
Dxzlib.c111 xmlMalloc(strlen(state->path) + strlen(msg) + 3)) == NULL) { in xz_error()
144 state = xmlMalloc(sizeof(xz_state)); in xz_open()
153 state->path = xmlMalloc(strlen(path) + 1); in xz_open()
224 if (fd == -1 || (path = xmlMalloc(7 + 3 * sizeof(int))) == NULL) in __libxml2_xzdopen()
395 state->in = xmlMalloc(state->want); in xz_head()
396 state->out = xmlMalloc(state->want << 1); in xz_head()
Dxmlmemory.c66 #ifdef xmlMalloc
67 #undef xmlMalloc
1056 xmlMalloc = mallocFunc; in xmlMemSetup()
1082 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlMemGet()
1125 xmlMalloc = mallocFunc; in xmlGcMemSetup()
1155 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlGcMemGet()
Ddict.c271 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString()
339 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddQString()
586 dict = xmlMalloc(sizeof(xmlDict)); in xmlDictCreate()
593 dict->dict = xmlMalloc(MIN_DICT_SIZE * sizeof(xmlDictEntry)); in xmlDictCreate()
696 dict->dict = xmlMalloc(size * sizeof(xmlDictEntry)); in xmlDictGrow()
727 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictGrow()
968 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictLookup()
1184 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictQLookup()
Dschematron.c331 ret = (xmlSchematronTestPtr) xmlMalloc(sizeof(xmlSchematronTest)); in xmlSchematronAddTest()
414 ret = (xmlSchematronRulePtr) xmlMalloc(sizeof(xmlSchematronRule)); in xmlSchematronAddRule()
492 ret = (xmlSchematronPatternPtr) xmlMalloc(sizeof(xmlSchematronPattern)); in xmlSchematronAddPattern()
544 ret = (xmlSchematronPtr) xmlMalloc(sizeof(xmlSchematron)); in xmlSchematronNewSchematron()
599 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewParserCtxt()
641 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewMemParserCtxt()
680 xmlMalloc(sizeof(xmlSchematronParserCtxt)); in xmlSchematronNewDocParserCtxt()
740 xmlMalloc(ctxt->maxIncludes * 2 * sizeof(xmlNodePtr));
810 xmlMalloc(ctxt->maxNamespaces * 2 * sizeof(const xmlChar *)); in xmlSchematronAddNamespace()
1510 ret = (xmlSchematronValidCtxtPtr) xmlMalloc(sizeof(xmlSchematronValidCtxt)); in xmlSchematronNewValidCtxt()
DparserInternals.c1365 input = (xmlParserInputPtr) xmlMalloc(sizeof(xmlParserInput)); in xmlNewInputStream()
1609 ctxt->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler)); in xmlInitParserCtxt()
1622 xmlMalloc(5 * sizeof(xmlParserInputPtr)); in xmlInitParserCtxt()
1651 ctxt->nodeTab = (xmlNodePtr *) xmlMalloc(10 * sizeof(xmlNodePtr)); in xmlInitParserCtxt()
1669 ctxt->nameTab = (const xmlChar **) xmlMalloc(10 * sizeof(xmlChar *)); in xmlInitParserCtxt()
1690 ctxt->spaceTab = (int *) xmlMalloc(10 * sizeof(int)); in xmlInitParserCtxt()
1864 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt)); in xmlNewParserCtxt()
2040 tmp_buffer = (xmlParserNodeInfo *) xmlMalloc(byte_size); in xmlParserAddNodeInfo()
Dhash.c187 table = xmlMalloc(sizeof(xmlHashTable)); in xmlHashCreate()
192 table->table = xmlMalloc(size * sizeof(xmlHashEntry)); in xmlHashCreate()
257 table->table = xmlMalloc(size * sizeof(xmlHashEntry)); in xmlHashGrow()
606 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashAddEntry3()
736 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashUpdateEntry3()
Dtree.c757 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlNewNs()
893 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlNewDtd()
967 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlCreateIntSubset()
1171 cur = (xmlDocPtr) xmlMalloc(sizeof(xmlDoc)); in xmlNewDoc()
1874 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewPropInternal()
2045 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewDocProp()
2195 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocPI()
2257 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNode()
2299 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNodeEatName()
2433 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocFragment()
[all …]
Dxmlwriter.c185 ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter)); in xmlNewTextWriter()
773 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartComment()
1005 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartElement()
1080 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartElementNS()
1870 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 …]
Dbuf.c125 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufCreate()
159 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufCreateSize()
237 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufCreateStatic()
1173 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufFromBuffer()
Dxpointer.c261 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewPoint()
356 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewRangeInternal()
581 ret = (xmlLocationSetPtr) xmlMalloc(sizeof(xmlLocationSet)); in xmlXPtrLocationSetCreate()
588 ret->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT * in xmlXPtrLocationSetCreate()
631 cur->locTab = (xmlXPathObjectPtr *) xmlMalloc(XML_RANGESET_DEFAULT * in xmlXPtrLocationSetAdd()
766 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewLocationSetNodes()
793 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrNewLocationSetNodeSet()
829 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); in xmlXPtrWrapLocationSet()
1242 xmlMalloc(10 * sizeof(xmlXPathObjectPtr)); in xmlXPtrEvalXPointer()
Dxmlregexp.c449 ret = xmlMalloc(totalSize); in xmlRegCalloc2()
467 ret = (xmlRegexpPtr) xmlMalloc(sizeof(xmlRegexp)); in xmlRegEpxFromParse()
508 stateRemap = xmlMalloc(ret->nbStates * sizeof(int)); in xmlRegEpxFromParse()
525 stringMap = xmlMalloc(ret->nbAtoms * sizeof(char *)); in xmlRegEpxFromParse()
532 stringRemap = xmlMalloc(ret->nbAtoms * sizeof(int)); in xmlRegEpxFromParse()
720 ret = (xmlRegParserCtxtPtr) xmlMalloc(sizeof(xmlRegParserCtxt)); in xmlRegNewParserCtxt()
751 ret = (xmlRegRangePtr) xmlMalloc(sizeof(xmlRegRange)); in xmlRegNewRange()
822 ret = (xmlRegAtomPtr) xmlMalloc(sizeof(xmlRegAtom)); in xmlRegNewAtom()
874 ret = (xmlRegAtomPtr) xmlMalloc(sizeof(xmlRegAtom)); in xmlRegCopyAtom()
887 ret->ranges = (xmlRegRangePtr *) xmlMalloc(sizeof(xmlRegRangePtr) * in xmlRegCopyAtom()
[all …]
Dentities.c159 ret = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); in xmlCreateEntity()
614 buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar)); in xmlEncodeEntitiesInternal()
854 buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar)); in xmlEncodeSpecialChars()
970 cur = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); in xmlCopyEntity()
Dpattern.c206 cur = (xmlPatternPtr) xmlMalloc(sizeof(xmlPattern)); in xmlNewPattern()
214 cur->steps = (xmlStepOpPtr) xmlMalloc(cur->maxStep * sizeof(xmlStepOp)); in xmlNewPattern()
302 cur = (xmlPatParserContextPtr) xmlMalloc(sizeof(xmlPatParserContext)); in xmlNewPatParserContext()
471 states->states = xmlMalloc(4 * sizeof(xmlStepState)); in xmlPatPushState()
1501 cur = (xmlStreamCompPtr) xmlMalloc(sizeof(xmlStreamComp)); in xmlNewStreamComp()
1508 cur->steps = (xmlStreamStepPtr) xmlMalloc(size * sizeof(xmlStreamStep)); in xmlNewStreamComp()
1766 cur = (xmlStreamCtxtPtr) xmlMalloc(sizeof(xmlStreamCtxt)); in xmlNewStreamCtxt()
1773 cur->states = (int *) xmlMalloc(4 * 2 * sizeof(int)); in xmlNewStreamCtxt()
Dvalid.c277 ctxt->vstateTab = (xmlValidState *) xmlMalloc(ctxt->vstateMax * in vstateVPush()
384 ctxt->vstateTab = (xmlValidState *) xmlMalloc( in vstateVPush()
442 (xmlNodePtr *) xmlMalloc(ctxt->nodeMax * in nodeVPush()
883 if ((ret = xmlMalloc(sizeof (xmlValidCtxt))) == NULL) { in xmlNewValidCtxt()
952 ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); in xmlNewDocElementContent()
1017 ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); in xmlCopyDocElementContent()
1046 tmp = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); in xmlCopyDocElementContent()
1555 ret = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); in xmlAddElementDecl()
1673 cur = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); in xmlCopyElement()
1812 ret = (xmlEnumerationPtr) xmlMalloc(sizeof(xmlEnumeration)); in xmlCreateEnumeration()
[all …]
Drelaxng.c765 ret = (xmlRelaxNGPtr) xmlMalloc(sizeof(xmlRelaxNG)); in xmlRelaxNGNewRelaxNG()
844 ret = (xmlRelaxNGGrammarPtr) xmlMalloc(sizeof(xmlRelaxNGGrammar)); in xmlRelaxNGNewGrammar()
900 xmlMalloc(ctxt->defMax * sizeof(xmlRelaxNGDefinePtr)); in xmlRelaxNGNewDefine()
919 ret = (xmlRelaxNGDefinePtr) xmlMalloc(sizeof(xmlRelaxNGDefine)); in xmlRelaxNGNewDefine()
1022 ret = (xmlRelaxNGStatesPtr) xmlMalloc(sizeof(xmlRelaxNGStates) + in xmlRelaxNGNewStates()
1032 ret->tabState = (xmlRelaxNGValidStatePtr *) xmlMalloc((size) * in xmlRelaxNGNewStates()
1145 xmlMalloc(ctxt->freeStatesMax * sizeof(xmlRelaxNGStatesPtr)); in xmlRelaxNGFreeStates()
1212 xmlMalloc(sizeof(xmlRelaxNGValidState)); in xmlRelaxNGNewValidState()
1235 ret->attrs = (xmlAttrPtr *) xmlMalloc(ret->maxAttrs * in xmlRelaxNGNewValidState()
1294 xmlMalloc(sizeof(xmlRelaxNGValidState)); in xmlRelaxNGCopyValidState()
[all …]
Dxpath.c815 list->items = (void **) xmlMalloc(initialSize * sizeof(void *)); in xmlPointerListAddSize()
855 ret = xmlMalloc(sizeof(xmlPointerList)); in xmlPointerListCreate()
1018 cur = (xmlXPathCompExprPtr) xmlMalloc(sizeof(xmlXPathCompExpr)); in xmlXPathNewCompExpr()
1026 cur->steps = (xmlXPathStepOp *) xmlMalloc(cur->maxStep * in xmlXPathNewCompExpr()
2198 ret = (xmlXPathContextCachePtr) xmlMalloc(sizeof(xmlXPathContextCache)); in xmlXPathNewCache()
3523 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlXPathNodeSetDupNs()
3572 ret = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in xmlXPathNodeSetCreate()
3579 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetCreate()
3674 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddNs()
3730 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAdd()
[all …]
/external/libxml2/fuzz/
Dfuzz.c67 fuzzData.outBuf = xmlMalloc(size + 1); in xmlFuzzDataInit()
213 entityInfo = xmlMalloc(sizeof(xmlFuzzEntityInfo)); in xmlFuzzReadEntities()
306 strings[i] = xmlMalloc(strSize + 1); in xmlFuzzExtractStrings()
340 data = xmlMalloc(size + 1); in xmlSlurpFile()
/external/libxml2/include/libxml/
Dglobals.h89 #undef xmlMalloc
131 xmlMallocFunc xmlMalloc; member
208 #define xmlMalloc \ macro
211 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
247 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
Dxmlmemory.h179 #define xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__) macro
/external/libxml2/os400/
Drpgsupport.c43 THREADED_VAR(xmlMalloc, xmlMallocFunc) in THREADED_VAR() argument
49 return xmlMalloc(size); in THREADED_VAR()
Dtranscode.c78 err = !(ts = xmlMalloc(4 * l + 4)); in xmlTranscodeResult()
155 ts = (xmlChar *) xmlMalloc(6 * l + 1); in inTranscode()
/external/libxml2/optim/
Dhash_dict.patch48 table = xmlMalloc(sizeof(xmlHashTable));
53 table->table = xmlMalloc(size * sizeof(xmlHashEntry));
/external/libxml2/python/
Dlibxml.c1604 str = (char *) xmlMalloc(1000); in libxml_buildMessage()
1798 pyCtxt = xmlMalloc(sizeof(xmlParserCtxtPyCtxt)); in libxml_xmlParserCtxtSetErrorHandler()
1995 pyCtxt = xmlMalloc(sizeof(xmlValidCtxtPyCtxt)); in libxml_xmlSetValidErrors()
2128 pyCtxt = (xmlTextReaderPyCtxtPtr)xmlMalloc(sizeof(xmlTextReaderPyCtxt)); in libxml_xmlTextReaderSetErrorHandler()
2318 libxml_xpathCallbacks = (libxml_xpathCallbackArray*)xmlMalloc( in libxml_xpathCallbacksInitialize()
3262 pyCtxt = xmlMalloc(sizeof(xmlRelaxNGValidCtxtPyCtxt)); in libxml_xmlRelaxNGSetValidErrors()
3426 pyCtxt = xmlMalloc(sizeof(xmlSchemaValidCtxtPyCtxt)); in libxml_xmlSchemaSetValidErrors()
3511 nodeSet = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in PyxmlNodeSet_Convert()
3522 = (xmlNodePtr *) xmlMalloc (nodeSet->nodeMax in PyxmlNodeSet_Convert()
3576 strings = (xmlChar **) xmlMalloc(sizeof(xmlChar *) * count); in PystringSet_Convert()

123