Home
last modified time | relevance | path

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

12

/external/libxml2/
Dglobals.c76 #undef xmlMalloc
83 xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc; variable
103 xmlMallocFunc xmlMalloc = (xmlMallocFunc) malloc; variable
521 gs->xmlMalloc = (xmlMallocFunc) xmlMemMalloc; in xmlInitializeGlobalState()
527 gs->xmlMalloc = (xmlMallocFunc) malloc; in xmlInitializeGlobalState()
719 #undef xmlMalloc
723 return (&xmlMalloc); in __xmlMalloc()
725 return (&xmlGetGlobalState()->xmlMalloc); in __xmlMalloc()
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()
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()
821 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictLookup()
1031 entry = xmlMalloc(sizeof(xmlDictEntry)); in xmlDictQLookup()
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 …]
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()
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()
556 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashAddEntry3()
686 entry = xmlMalloc(sizeof(xmlHashEntry)); in xmlHashUpdateEntry3()
Dtree.c729 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlNewNs()
863 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlNewDtd()
937 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlCreateIntSubset()
1141 cur = (xmlDocPtr) xmlMalloc(sizeof(xmlDoc)); in xmlNewDoc()
1800 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 …]
DparserInternals.c1297 input = (xmlParserInputPtr) xmlMalloc(sizeof(xmlParserInput)); in xmlNewInputStream()
1536 ctxt->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler)); in xmlInitParserCtxt()
1549 xmlMalloc(5 * sizeof(xmlParserInputPtr)); in xmlInitParserCtxt()
1578 ctxt->nodeTab = (xmlNodePtr *) xmlMalloc(10 * sizeof(xmlNodePtr)); in xmlInitParserCtxt()
1596 ctxt->nameTab = (const xmlChar **) xmlMalloc(10 * sizeof(xmlChar *)); in xmlInitParserCtxt()
1617 ctxt->spaceTab = (int *) xmlMalloc(10 * sizeof(int)); in xmlInitParserCtxt()
1776 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt)); in xmlNewParserCtxt()
1951 tmp_buffer = (xmlParserNodeInfo *) xmlMalloc(byte_size); in xmlParserAddNodeInfo()
Dxmlwriter.c177 ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter)); in xmlNewTextWriter()
769 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartComment()
1001 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartElement()
1076 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartElementNS()
1865 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartAttributeNS()
2423 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartPI()
2658 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartCDATA()
2843 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTD()
3185 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDElement()
3422 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDAttlist()
[all …]
Dentities.c152 ret = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); in xmlCreateEntity()
569 buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar)); in xmlEncodeEntitiesReentrant()
719 buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar)); in xmlEncodeSpecialChars()
830 cur = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); in xmlCopyEntity()
Dxmlregexp.c423 ret = (xmlRegexpPtr) xmlMalloc(sizeof(xmlRegexp)); in xmlRegEpxFromParse()
463 stateRemap = xmlMalloc(ret->nbStates * sizeof(int)); in xmlRegEpxFromParse()
480 stringMap = xmlMalloc(ret->nbAtoms * sizeof(char *)); in xmlRegEpxFromParse()
487 stringRemap = xmlMalloc(ret->nbAtoms * sizeof(int)); in xmlRegEpxFromParse()
532 transitions = (int *) xmlMalloc((nbstates + 1) * in xmlRegEpxFromParse()
567 transdata = (void **) xmlMalloc(nbstates * nbatoms * in xmlRegEpxFromParse()
677 ret = (xmlRegParserCtxtPtr) xmlMalloc(sizeof(xmlRegParserCtxt)); in xmlRegNewParserCtxt()
708 ret = (xmlRegRangePtr) xmlMalloc(sizeof(xmlRegRange)); in xmlRegNewRange()
779 ret = (xmlRegAtomPtr) xmlMalloc(sizeof(xmlRegAtom)); in xmlRegNewAtom()
831 ret = (xmlRegAtomPtr) xmlMalloc(sizeof(xmlRegAtom)); in xmlRegCopyAtom()
[all …]
Dpattern.c203 cur = (xmlPatternPtr) xmlMalloc(sizeof(xmlPattern)); in xmlNewPattern()
211 cur->steps = (xmlStepOpPtr) xmlMalloc(cur->maxStep * sizeof(xmlStepOp)); in xmlNewPattern()
296 cur = (xmlPatParserContextPtr) xmlMalloc(sizeof(xmlPatParserContext)); in xmlNewPatParserContext()
464 states->states = xmlMalloc(4 * sizeof(xmlStepState)); in xmlPatPushState()
1493 cur = (xmlStreamCompPtr) xmlMalloc(sizeof(xmlStreamComp)); in xmlNewStreamComp()
1500 cur->steps = (xmlStreamStepPtr) xmlMalloc(size * sizeof(xmlStreamStep)); in xmlNewStreamComp()
1758 cur = (xmlStreamCtxtPtr) xmlMalloc(sizeof(xmlStreamCtxt)); in xmlNewStreamCtxt()
1765 cur->states = (int *) xmlMalloc(4 * 2 * sizeof(int)); in xmlNewStreamCtxt()
Dxpath.c422 list->items = (void **) xmlMalloc( in xmlPointerListAddSize()
458 ret = xmlMalloc(sizeof(xmlPointerList)); in xmlPointerListCreate()
623 cur = (xmlXPathCompExprPtr) xmlMalloc(sizeof(xmlXPathCompExpr)); in xmlXPathNewCompExpr()
631 cur->steps = (xmlXPathStepOp *) xmlMalloc(cur->maxStep * in xmlXPathNewCompExpr()
1795 ret = (xmlXPathContextCachePtr) xmlMalloc(sizeof(xmlXPathContextCache)); in xmlXPathNewCache()
3334 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlXPathNodeSetDupNs()
3383 ret = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in xmlXPathNodeSetCreate()
3390 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetCreate()
3423 ret = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in xmlXPathNodeSetCreateSize()
3431 ret->nodeTab = (xmlNodePtr *) xmlMalloc(size * sizeof(xmlNodePtr)); in xmlXPathNodeSetCreateSize()
[all …]
Dvalid.c277 ctxt->vstateTab = (xmlValidState *) xmlMalloc(ctxt->vstateMax * in vstateVPush()
384 ctxt->vstateTab = (xmlValidState *) xmlMalloc( in vstateVPush()
442 (xmlNodePtr *) xmlMalloc(ctxt->nodeMax * in nodeVPush()
885 if ((ret = xmlMalloc(sizeof (xmlValidCtxt))) == NULL) { in xmlNewValidCtxt()
954 ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); in xmlNewDocElementContent()
1019 ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); in xmlCopyDocElementContent()
1048 tmp = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); in xmlCopyDocElementContent()
1508 ret = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); in xmlAddElementDecl()
1620 cur = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); in xmlCopyElement()
1759 ret = (xmlEnumerationPtr) xmlMalloc(sizeof(xmlEnumeration)); in xmlCreateEnumeration()
[all …]
DxmlIO.c226 wString = xmlMalloc(wLen * sizeof(wchar_t)); in __xmlIOWin32UTF8ToWChar()
1393 buff = xmlMalloc( sizeof( xmlZMemBuff ) ); in xmlCreateZMemBuff()
1401 buff->zbuff = xmlMalloc( buff->size ); in xmlCreateZMemBuff()
1695 ctxt = xmlMalloc(sizeof(xmlIOHTTPWriteCtxt)); in xmlIOHTTPOpenW()
2230 ret = (xmlParserInputBufferPtr) xmlMalloc(sizeof(xmlParserInputBuffer)); in xmlAllocParserInputBuffer()
2269 ret = (xmlOutputBufferPtr) xmlMalloc(sizeof(xmlOutputBuffer)); in xmlAllocOutputBuffer()
2315 ret = (xmlOutputBufferPtr) xmlMalloc(sizeof(xmlOutputBuffer)); in xmlAllocOutputBufferInternal()
2829 ret = (xmlParserInputBufferPtr) xmlMalloc(sizeof(xmlParserInputBuffer)); in xmlParserInputBufferCreateStatic()
Dxinclude.c230 ret = (xmlXIncludeRefPtr) xmlMalloc(sizeof(xmlXIncludeRef)); in xmlXIncludeNewRef()
248 ctxt->incTab = (xmlXIncludeRefPtr *) xmlMalloc(ctxt->incMax * in xmlXIncludeNewRef()
287 ret = (xmlXIncludeCtxtPtr) xmlMalloc(sizeof(xmlXIncludeCtxt)); in xmlXIncludeNewContext()
324 ctxt->urlTab = (xmlChar * *) xmlMalloc( in xmlXIncludeURLPush()
693 newctxt->incTab = (xmlXIncludeRefPtr *) xmlMalloc(newctxt->incMax * in xmlXIncludeRecurseDoc()
762 ctxt->txtTab = (xmlNodePtr *) xmlMalloc(ctxt->txtMax * in xmlXIncludeAddTxt()
768 ctxt->txturlTab = (xmlURL *) xmlMalloc(ctxt->txtMax * in xmlXIncludeAddTxt()
Drelaxng.c761 ret = (xmlRelaxNGPtr) xmlMalloc(sizeof(xmlRelaxNG)); in xmlRelaxNGNewRelaxNG()
840 ret = (xmlRelaxNGGrammarPtr) xmlMalloc(sizeof(xmlRelaxNGGrammar)); in xmlRelaxNGNewGrammar()
896 xmlMalloc(ctxt->defMax * sizeof(xmlRelaxNGDefinePtr)); in xmlRelaxNGNewDefine()
915 ret = (xmlRelaxNGDefinePtr) xmlMalloc(sizeof(xmlRelaxNGDefine)); in xmlRelaxNGNewDefine()
1018 ret = (xmlRelaxNGStatesPtr) xmlMalloc(sizeof(xmlRelaxNGStates) + in xmlRelaxNGNewStates()
1028 ret->tabState = (xmlRelaxNGValidStatePtr *) xmlMalloc((size) * in xmlRelaxNGNewStates()
1141 xmlMalloc(ctxt->freeStatesMax * sizeof(xmlRelaxNGStatesPtr)); in xmlRelaxNGFreeStates()
1208 xmlMalloc(sizeof(xmlRelaxNGValidState)); in xmlRelaxNGNewValidState()
1231 ret->attrs = (xmlAttrPtr *) xmlMalloc(ret->maxAttrs * in xmlRelaxNGNewValidState()
1290 xmlMalloc(sizeof(xmlRelaxNGValidState)); in xmlRelaxNGCopyValidState()
[all …]
Dxmlschemas.c3236 ret = (xmlSchemaPtr) xmlMalloc(sizeof(xmlSchema)); in xmlSchemaNewSchema()
3260 ret = (xmlSchemaFacetPtr) xmlMalloc(sizeof(xmlSchemaFacet)); in xmlSchemaNewFacet()
3283 ret = (xmlSchemaAnnotPtr) xmlMalloc(sizeof(xmlSchemaAnnot)); in xmlSchemaNewAnnot()
3298 ret = xmlMalloc(sizeof(xmlSchemaItemList)); in xmlSchemaItemListCreate()
3323 list->items = (void **) xmlMalloc( in xmlSchemaItemListAdd()
3352 list->items = (void **) xmlMalloc( in xmlSchemaItemListAddSize()
3377 list->items = (void **) xmlMalloc( in xmlSchemaItemListInsert()
3419 list->items = (void **) xmlMalloc(
3544 ret = (xmlSchemaBucketPtr) xmlMalloc(size); in xmlSchemaBucketCreate()
5115 ret = (xmlSchemaNotationPtr) xmlMalloc(sizeof(xmlSchemaNotation)); in xmlSchemaAddNotation()
[all …]
Dc14n.c278 ret = (xmlC14NVisibleNsStackPtr) xmlMalloc(sizeof(xmlC14NVisibleNsStack)); in xmlC14NVisibleNsStackCreate()
316 cur->nsTab = (xmlNsPtr*) xmlMalloc(XML_NAMESPACES_DEFAULT * sizeof(xmlNsPtr)); in xmlC14NVisibleNsStackAdd()
317 cur->nodeTab = (xmlNodePtr*) xmlMalloc(XML_NAMESPACES_DEFAULT * sizeof(xmlNodePtr)); in xmlC14NVisibleNsStackAdd()
1507 ctx = (xmlC14NCtxPtr) xmlMalloc(sizeof(xmlC14NCtx)); in xmlC14NNewCtx()
Dencoding.c105 uconv_t *conv = (uconv_t *) xmlMalloc(sizeof(uconv_t)); in openIcuConverter()
1061 xmlMalloc(xmlCharEncodingAliasesMax * sizeof(xmlCharEncodingAlias)); in xmlAddEncodingAlias()
1344 xmlMalloc(sizeof(xmlCharEncodingHandler)); in xmlNewCharEncodingHandler()
1390 xmlMalloc(MAX_ENCODING_HANDLERS * sizeof(xmlCharEncodingHandlerPtr)); in xmlInitCharEncodingHandlers()
1680 xmlMalloc(sizeof(xmlCharEncodingHandler)); in xmlFindCharEncodingHandler()
1707 xmlMalloc(sizeof(xmlCharEncodingHandler)); in xmlFindCharEncodingHandler()
Dxmlmodule.c73 module = (xmlModulePtr) xmlMalloc(sizeof(xmlModule)); in xmlModuleOpen()
Dxmlschemastypes.c225 value = (xmlSchemaValPtr) xmlMalloc(sizeof(xmlSchemaVal)); in xmlSchemaNewValue()
261 ret = (xmlSchemaTypePtr) xmlMalloc(sizeof(xmlSchemaType)); in xmlSchemaInitBasicType()
369 xmlMalloc(sizeof(xmlSchemaParticle)); in xmlSchemaAddParticle()
417 xmlMalloc(sizeof(xmlSchemaModelGroup)); in xmlSchemaInitTypes()
433 wild = (xmlSchemaWildcardPtr) xmlMalloc(sizeof(xmlSchemaWildcard)); in xmlSchemaInitTypes()
446 wild = (xmlSchemaWildcardPtr) xmlMalloc(sizeof(xmlSchemaWildcard)); in xmlSchemaInitTypes()
943 val = (xmlSchemaValPtr) xmlMalloc(sizeof(xmlSchemaVal)); in xmlSchemaNewStringValue()
5720 buf = xmlMalloc(bufsize); in xmlSchemaGetCanonValue()
5795 *retValue = xmlMalloc(bufsize); in xmlSchemaGetCanonValue()
5873 *retValue = xmlMalloc(6); in xmlSchemaGetCanonValue()
[all …]
/external/libxml2/include/libxml/
Dglobals.h85 #undef xmlMalloc
127 xmlMallocFunc xmlMalloc; member
201 #define xmlMalloc \ macro
204 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
240 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
Dxmlmemory.h179 #define xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__) macro

12