/external/libxml2/ |
D | list.c | 191 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()
|
D | globals.c | 77 #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()
|
D | xmlmemory.c | 66 #ifdef xmlMalloc 67 #undef xmlMalloc 1017 xmlMalloc = mallocFunc; in xmlMemSetup() 1043 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlMemGet() 1086 xmlMalloc = mallocFunc; in xmlGcMemSetup() 1116 if (mallocFunc != NULL) *mallocFunc = xmlMalloc; in xmlGcMemGet()
|
D | xzlib.c | 109 xmlMalloc(strlen(state->path) + strlen(msg) + 3)) == NULL) { in xz_error() 142 state = xmlMalloc(sizeof(xz_state)); in xz_open() 151 state->path = xmlMalloc(strlen(path) + 1); in xz_open() 222 if (fd == -1 || (path = xmlMalloc(7 + 3 * sizeof(int))) == NULL) in __libxml2_xzdopen() 393 state->in = xmlMalloc(state->want); in xz_head() 394 state->out = xmlMalloc(state->want << 1); in xz_head()
|
D | dict.c | 270 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()
|
D | xpointer.c | 252 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 …]
|
D | schematron.c | 331 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()
|
D | parserInternals.c | 1342 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() 1840 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt)); in xmlNewParserCtxt() 2016 tmp_buffer = (xmlParserNodeInfo *) xmlMalloc(byte_size); in xmlParserAddNodeInfo()
|
D | tree.c | 751 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlNewNs() 887 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlNewDtd() 961 cur = (xmlDtdPtr) xmlMalloc(sizeof(xmlDtd)); in xmlCreateIntSubset() 1165 cur = (xmlDocPtr) xmlMalloc(sizeof(xmlDoc)); in xmlNewDoc() 1844 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewPropInternal() 2016 cur = (xmlAttrPtr) xmlMalloc(sizeof(xmlAttr)); in xmlNewDocProp() 2166 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocPI() 2228 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNode() 2270 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewNodeEatName() 2404 cur = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); in xmlNewDocFragment() [all …]
|
D | hash.c | 180 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()
|
D | xmlwriter.c | 185 ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter)); in xmlNewTextWriter() 779 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartComment() 1011 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartElement() 1086 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartElementNS() 1876 xmlMalloc(sizeof(xmlTextWriterNsStackEntry)); in xmlTextWriterStartAttributeNS() 2436 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartPI() 2671 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartCDATA() 2856 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTD() 3198 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDElement() 3435 xmlMalloc(sizeof(xmlTextWriterStackEntry)); in xmlTextWriterStartDTDAttlist() [all …]
|
D | xmlregexp.c | 433 ret = (xmlRegexpPtr) xmlMalloc(sizeof(xmlRegexp)); in xmlRegEpxFromParse() 474 stateRemap = xmlMalloc(ret->nbStates * sizeof(int)); in xmlRegEpxFromParse() 491 stringMap = xmlMalloc(ret->nbAtoms * sizeof(char *)); in xmlRegEpxFromParse() 498 stringRemap = xmlMalloc(ret->nbAtoms * sizeof(int)); in xmlRegEpxFromParse() 543 transitions = (int *) xmlMalloc((nbstates + 1) * in xmlRegEpxFromParse() 578 transdata = (void **) xmlMalloc(nbstates * nbatoms * in xmlRegEpxFromParse() 688 ret = (xmlRegParserCtxtPtr) xmlMalloc(sizeof(xmlRegParserCtxt)); in xmlRegNewParserCtxt() 719 ret = (xmlRegRangePtr) xmlMalloc(sizeof(xmlRegRange)); in xmlRegNewRange() 790 ret = (xmlRegAtomPtr) xmlMalloc(sizeof(xmlRegAtom)); in xmlRegNewAtom() 842 ret = (xmlRegAtomPtr) xmlMalloc(sizeof(xmlRegAtom)); in xmlRegCopyAtom() [all …]
|
D | buf.c | 124 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufCreate() 158 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufCreateSize() 236 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufCreateStatic() 1132 ret = (xmlBufPtr) xmlMalloc(sizeof(xmlBuf)); in xmlBufFromBuffer()
|
D | entities.c | 154 ret = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); in xmlCreateEntity() 571 buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar)); in xmlEncodeEntitiesInternal() 797 buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar)); in xmlEncodeSpecialChars() 913 cur = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity)); in xmlCopyEntity()
|
D | pattern.c | 206 cur = (xmlPatternPtr) xmlMalloc(sizeof(xmlPattern)); in xmlNewPattern() 214 cur->steps = (xmlStepOpPtr) xmlMalloc(cur->maxStep * sizeof(xmlStepOp)); in xmlNewPattern() 299 cur = (xmlPatParserContextPtr) xmlMalloc(sizeof(xmlPatParserContext)); in xmlNewPatParserContext() 468 states->states = xmlMalloc(4 * sizeof(xmlStepState)); in xmlPatPushState() 1497 cur = (xmlStreamCompPtr) xmlMalloc(sizeof(xmlStreamComp)); in xmlNewStreamComp() 1504 cur->steps = (xmlStreamStepPtr) xmlMalloc(size * sizeof(xmlStreamStep)); in xmlNewStreamComp() 1762 cur = (xmlStreamCtxtPtr) xmlMalloc(sizeof(xmlStreamCtxt)); in xmlNewStreamCtxt() 1769 cur->states = (int *) xmlMalloc(4 * 2 * sizeof(int)); in xmlNewStreamCtxt()
|
D | valid.c | 277 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() 1506 ret = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); in xmlAddElementDecl() 1618 cur = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); in xmlCopyElement() 1757 ret = (xmlEnumerationPtr) xmlMalloc(sizeof(xmlEnumeration)); in xmlCreateEnumeration() [all …]
|
D | xpath.c | 790 list->items = (void **) xmlMalloc(initialSize * sizeof(void *)); in xmlPointerListAddSize() 830 ret = xmlMalloc(sizeof(xmlPointerList)); in xmlPointerListCreate() 992 cur = (xmlXPathCompExprPtr) xmlMalloc(sizeof(xmlXPathCompExpr)); in xmlXPathNewCompExpr() 1000 cur->steps = (xmlXPathStepOp *) xmlMalloc(cur->maxStep * in xmlXPathNewCompExpr() 2167 ret = (xmlXPathContextCachePtr) xmlMalloc(sizeof(xmlXPathContextCache)); in xmlXPathNewCache() 3482 cur = (xmlNsPtr) xmlMalloc(sizeof(xmlNs)); in xmlXPathNodeSetDupNs() 3531 ret = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in xmlXPathNodeSetCreate() 3538 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetCreate() 3571 ret = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in xmlXPathNodeSetCreateSize() 3579 ret->nodeTab = (xmlNodePtr *) xmlMalloc(size * sizeof(xmlNodePtr)); in xmlXPathNodeSetCreateSize() [all …]
|
D | relaxng.c | 764 ret = (xmlRelaxNGPtr) xmlMalloc(sizeof(xmlRelaxNG)); in xmlRelaxNGNewRelaxNG() 843 ret = (xmlRelaxNGGrammarPtr) xmlMalloc(sizeof(xmlRelaxNGGrammar)); in xmlRelaxNGNewGrammar() 899 xmlMalloc(ctxt->defMax * sizeof(xmlRelaxNGDefinePtr)); in xmlRelaxNGNewDefine() 918 ret = (xmlRelaxNGDefinePtr) xmlMalloc(sizeof(xmlRelaxNGDefine)); in xmlRelaxNGNewDefine() 1021 ret = (xmlRelaxNGStatesPtr) xmlMalloc(sizeof(xmlRelaxNGStates) + in xmlRelaxNGNewStates() 1031 ret->tabState = (xmlRelaxNGValidStatePtr *) xmlMalloc((size) * in xmlRelaxNGNewStates() 1144 xmlMalloc(ctxt->freeStatesMax * sizeof(xmlRelaxNGStatesPtr)); in xmlRelaxNGFreeStates() 1211 xmlMalloc(sizeof(xmlRelaxNGValidState)); in xmlRelaxNGNewValidState() 1234 ret->attrs = (xmlAttrPtr *) xmlMalloc(ret->maxAttrs * in xmlRelaxNGNewValidState() 1293 xmlMalloc(sizeof(xmlRelaxNGValidState)); in xmlRelaxNGCopyValidState() [all …]
|
D | xmlIO.c | 232 wString = xmlMalloc(wLen * sizeof(wchar_t)); in __xmlIOWin32UTF8ToWChar() 1585 buff = xmlMalloc( sizeof( xmlZMemBuff ) ); in xmlCreateZMemBuff() 1593 buff->zbuff = xmlMalloc( buff->size ); in xmlCreateZMemBuff() 1887 ctxt = xmlMalloc(sizeof(xmlIOHTTPWriteCtxt)); in xmlIOHTTPOpenW() 2426 ret = (xmlParserInputBufferPtr) xmlMalloc(sizeof(xmlParserInputBuffer)); in xmlAllocParserInputBuffer() 2465 ret = (xmlOutputBufferPtr) xmlMalloc(sizeof(xmlOutputBuffer)); in xmlAllocOutputBuffer() 2515 ret = (xmlOutputBufferPtr) xmlMalloc(sizeof(xmlOutputBuffer)); in xmlAllocOutputBufferInternal() 3069 ret = (xmlParserInputBufferPtr) xmlMalloc(sizeof(xmlParserInputBuffer)); in xmlParserInputBufferCreateStatic()
|
/external/libxml2/include/libxml/ |
D | globals.h | 90 #undef xmlMalloc 132 xmlMallocFunc xmlMalloc; member 209 #define xmlMalloc \ macro 212 XMLPUBVAR xmlMallocFunc xmlMalloc; variable 248 XMLPUBVAR xmlMallocFunc xmlMalloc; variable
|
D | xmlmemory.h | 179 #define xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__) macro
|
/external/libxml2/os400/ |
D | rpgsupport.c | 43 THREADED_VAR(xmlMalloc, xmlMallocFunc) in THREADED_VAR() argument 49 return xmlMalloc(size); in THREADED_VAR()
|
D | transcode.c | 78 err = !(ts = xmlMalloc(4 * l + 4)); in xmlTranscodeResult() 155 ts = (xmlChar *) xmlMalloc(6 * l + 1); in inTranscode()
|
/external/libxml2/optim/ |
D | hash_dict.patch | 48 table = xmlMalloc(sizeof(xmlHashTable)); 53 table->table = xmlMalloc(size * sizeof(xmlHashEntry));
|
/external/libxml2/python/ |
D | libxml.c | 1603 str = (char *) xmlMalloc(1000); in libxml_buildMessage() 1797 pyCtxt = xmlMalloc(sizeof(xmlParserCtxtPyCtxt)); in libxml_xmlParserCtxtSetErrorHandler() 1994 pyCtxt = xmlMalloc(sizeof(xmlValidCtxtPyCtxt)); in libxml_xmlSetValidErrors() 2127 pyCtxt = (xmlTextReaderPyCtxtPtr)xmlMalloc(sizeof(xmlTextReaderPyCtxt)); in libxml_xmlTextReaderSetErrorHandler() 2317 libxml_xpathCallbacks = (libxml_xpathCallbackArray*)xmlMalloc( in libxml_xpathCallbacksInitialize() 3261 pyCtxt = xmlMalloc(sizeof(xmlRelaxNGValidCtxtPyCtxt)); in libxml_xmlRelaxNGSetValidErrors() 3425 pyCtxt = xmlMalloc(sizeof(xmlSchemaValidCtxtPyCtxt)); in libxml_xmlSchemaSetValidErrors() 3510 nodeSet = (xmlNodeSetPtr) xmlMalloc(sizeof(xmlNodeSet)); in PyxmlNodeSet_Convert() 3521 = (xmlNodePtr *) xmlMalloc (nodeSet->nodeMax in PyxmlNodeSet_Convert() 3575 strings = (xmlChar **) xmlMalloc(sizeof(xmlChar *) * count); in PystringSet_Convert()
|