/external/libxml2/ |
D | parser.c | 87 xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info); 120 xmlParserEntityCheck(xmlParserCtxtPtr ctxt, unsigned long size, in xmlParserEntityCheck() argument 125 if ((ctxt == NULL) || (ctxt->options & XML_PARSE_HUGE)) in xmlParserEntityCheck() 127 if (ctxt->lastError.code == XML_ERR_ENTITY_LOOP) in xmlParserEntityCheck() 139 if (ctxt->input != NULL) { in xmlParserEntityCheck() 140 consumed = ctxt->input->consumed + in xmlParserEntityCheck() 141 (ctxt->input->cur - ctxt->input->base); in xmlParserEntityCheck() 143 consumed += ctxt->sizeentities; in xmlParserEntityCheck() 146 (ctxt->nbentities * 3 < XML_PARSER_NON_LINEAR * consumed)) in xmlParserEntityCheck() 157 if (ctxt->input != NULL) { in xmlParserEntityCheck() [all …]
|
D | parserInternals.c | 106 xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra) in xmlErrMemory() argument 108 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in xmlErrMemory() 109 (ctxt->instate == XML_PARSER_EOF)) in xmlErrMemory() 111 if (ctxt != NULL) { in xmlErrMemory() 112 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlErrMemory() 113 ctxt->instate = XML_PARSER_EOF; in xmlErrMemory() 114 ctxt->disableSAX = 1; in xmlErrMemory() 117 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in xmlErrMemory() 122 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in xmlErrMemory() 138 __xmlErrEncoding(xmlParserCtxtPtr ctxt, xmlParserErrors xmlerr, in __xmlErrEncoding() argument [all …]
|
D | debugXML.c | 54 static void xmlCtxtDumpNodeList(xmlDebugCtxtPtr ctxt, xmlNodePtr node); 57 xmlCtxtDumpInitCtxt(xmlDebugCtxtPtr ctxt) in xmlCtxtDumpInitCtxt() argument 61 ctxt->depth = 0; in xmlCtxtDumpInitCtxt() 62 ctxt->check = 0; in xmlCtxtDumpInitCtxt() 63 ctxt->errors = 0; in xmlCtxtDumpInitCtxt() 64 ctxt->output = stdout; in xmlCtxtDumpInitCtxt() 65 ctxt->doc = NULL; in xmlCtxtDumpInitCtxt() 66 ctxt->node = NULL; in xmlCtxtDumpInitCtxt() 67 ctxt->dict = NULL; in xmlCtxtDumpInitCtxt() 68 ctxt->nodict = 0; in xmlCtxtDumpInitCtxt() [all …]
|
D | HTMLparser.c | 56 xmlChar * htmlDecodeEntities(htmlParserCtxtPtr ctxt, int len, 58 static void htmlParseComment(htmlParserCtxtPtr ctxt); 74 htmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra) in htmlErrMemory() argument 76 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in htmlErrMemory() 77 (ctxt->instate == XML_PARSER_EOF)) in htmlErrMemory() 79 if (ctxt != NULL) { in htmlErrMemory() 80 ctxt->errNo = XML_ERR_NO_MEMORY; in htmlErrMemory() 81 ctxt->instate = XML_PARSER_EOF; in htmlErrMemory() 82 ctxt->disableSAX = 1; in htmlErrMemory() 85 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in htmlErrMemory() [all …]
|
D | SAX2.c | 59 xmlSAX2ErrMemory(xmlParserCtxtPtr ctxt, const char *msg) { in xmlSAX2ErrMemory() argument 60 if (ctxt != NULL) { in xmlSAX2ErrMemory() 61 if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) in xmlSAX2ErrMemory() 62 ctxt->sax->error(ctxt->userData, "%s: out of memory\n", msg); in xmlSAX2ErrMemory() 63 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlSAX2ErrMemory() 64 ctxt->instate = XML_PARSER_EOF; in xmlSAX2ErrMemory() 65 ctxt->disableSAX = 1; in xmlSAX2ErrMemory() 80 xmlErrValid(xmlParserCtxtPtr ctxt, xmlParserErrors error, in xmlErrValid() argument 85 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in xmlErrValid() 86 (ctxt->instate == XML_PARSER_EOF)) in xmlErrValid() [all …]
|
D | nanoftp.c | 302 xmlNanoFTPCtxtPtr ctxt = (xmlNanoFTPCtxtPtr) ctx; in xmlNanoFTPScanURL() local 308 if (ctxt->protocol != NULL) { in xmlNanoFTPScanURL() 309 xmlFree(ctxt->protocol); in xmlNanoFTPScanURL() 310 ctxt->protocol = NULL; in xmlNanoFTPScanURL() 312 if (ctxt->hostname != NULL) { in xmlNanoFTPScanURL() 313 xmlFree(ctxt->hostname); in xmlNanoFTPScanURL() 314 ctxt->hostname = NULL; in xmlNanoFTPScanURL() 316 if (ctxt->path != NULL) { in xmlNanoFTPScanURL() 317 xmlFree(ctxt->path); in xmlNanoFTPScanURL() 318 ctxt->path = NULL; in xmlNanoFTPScanURL() [all …]
|
D | nanohttp.c | 280 xmlNanoHTTPScanURL(xmlNanoHTTPCtxtPtr ctxt, const char *URL) { in xmlNanoHTTPScanURL() argument 285 if (ctxt->protocol != NULL) { in xmlNanoHTTPScanURL() 286 xmlFree(ctxt->protocol); in xmlNanoHTTPScanURL() 287 ctxt->protocol = NULL; in xmlNanoHTTPScanURL() 289 if (ctxt->hostname != NULL) { in xmlNanoHTTPScanURL() 290 xmlFree(ctxt->hostname); in xmlNanoHTTPScanURL() 291 ctxt->hostname = NULL; in xmlNanoHTTPScanURL() 293 if (ctxt->path != NULL) { in xmlNanoHTTPScanURL() 294 xmlFree(ctxt->path); in xmlNanoHTTPScanURL() 295 ctxt->path = NULL; in xmlNanoHTTPScanURL() [all …]
|
D | relaxng.c | 436 xmlRngPErrMemory(xmlRelaxNGParserCtxtPtr ctxt, const char *extra) in xmlRngPErrMemory() argument 442 if (ctxt != NULL) { in xmlRngPErrMemory() 443 if (ctxt->serror != NULL) in xmlRngPErrMemory() 444 schannel = ctxt->serror; in xmlRngPErrMemory() 446 channel = ctxt->error; in xmlRngPErrMemory() 447 data = ctxt->userData; in xmlRngPErrMemory() 448 ctxt->nbErrors++; in xmlRngPErrMemory() 471 xmlRngVErrMemory(xmlRelaxNGValidCtxtPtr ctxt, const char *extra) in xmlRngVErrMemory() argument 477 if (ctxt != NULL) { in xmlRngVErrMemory() 478 if (ctxt->serror != NULL) in xmlRngVErrMemory() [all …]
|
D | xinclude.c | 90 xmlXIncludeDoProcess(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr tree); 106 xmlXIncludeErrMemory(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, in xmlXIncludeErrMemory() argument 109 if (ctxt != NULL) in xmlXIncludeErrMemory() 110 ctxt->nbErrors++; in xmlXIncludeErrMemory() 111 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErrMemory() 127 xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, in xmlXIncludeErr() argument 130 if (ctxt != NULL) in xmlXIncludeErr() 131 ctxt->nbErrors++; in xmlXIncludeErr() 132 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErr() 149 xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, [all …]
|
D | xpath.c | 226 { xmlXPathErr(ctxt, X); return(NULL); } 268 xmlXPathErrMemory(xmlXPathContextPtr ctxt, const char *extra) in xmlXPathErrMemory() argument 270 if (ctxt != NULL) { in xmlXPathErrMemory() 277 ctxt->lastError.message = (char *) xmlStrdup(buf); in xmlXPathErrMemory() 279 ctxt->lastError.message = (char *) in xmlXPathErrMemory() 282 ctxt->lastError.domain = XML_FROM_XPATH; in xmlXPathErrMemory() 283 ctxt->lastError.code = XML_ERR_NO_MEMORY; in xmlXPathErrMemory() 284 if (ctxt->error != NULL) in xmlXPathErrMemory() 285 ctxt->error(ctxt->userData, &ctxt->lastError); in xmlXPathErrMemory() 310 xmlXPathPErrMemory(xmlXPathParserContextPtr ctxt, const char *extra) in xmlXPathPErrMemory() argument [all …]
|
D | xmlsave.c | 327 xmlSaveCtxtInit(xmlSaveCtxtPtr ctxt) in xmlSaveCtxtInit() argument 332 if (ctxt == NULL) return; in xmlSaveCtxtInit() 333 if ((ctxt->encoding == NULL) && (ctxt->escape == NULL)) in xmlSaveCtxtInit() 334 ctxt->escape = xmlEscapeEntities; in xmlSaveCtxtInit() 337 memset(&ctxt->indent[0], 0, MAX_INDENT + 1); in xmlSaveCtxtInit() 339 ctxt->indent_size = len; in xmlSaveCtxtInit() 340 ctxt->indent_nr = MAX_INDENT / ctxt->indent_size; in xmlSaveCtxtInit() 341 for (i = 0;i < ctxt->indent_nr;i++) in xmlSaveCtxtInit() 342 memcpy(&ctxt->indent[i * ctxt->indent_size], xmlTreeIndentString, in xmlSaveCtxtInit() 343 ctxt->indent_size); in xmlSaveCtxtInit() [all …]
|
D | schematron.c | 226 xmlSchematronPErrMemory(xmlSchematronParserCtxtPtr ctxt, in xmlSchematronPErrMemory() argument 229 if (ctxt != NULL) in xmlSchematronPErrMemory() 230 ctxt->nberrors++; in xmlSchematronPErrMemory() 247 xmlSchematronPErr(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr node, int error, in xmlSchematronPErr() argument 254 if (ctxt != NULL) { in xmlSchematronPErr() 255 ctxt->nberrors++; in xmlSchematronPErr() 256 channel = ctxt->error; in xmlSchematronPErr() 257 data = ctxt->userData; in xmlSchematronPErr() 258 schannel = ctxt->serror; in xmlSchematronPErr() 260 __xmlRaiseError(schannel, channel, data, ctxt, node, XML_FROM_SCHEMASP, in xmlSchematronPErr() [all …]
|
D | legacy.c | 31 xmlChar *htmlDecodeEntities(htmlParserCtxtPtr ctxt, int len, xmlChar end, 50 htmlDecodeEntities(htmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED, in htmlDecodeEntities() 172 xmlGetFeature(xmlParserCtxtPtr ctxt, const char *name, void *result) in xmlGetFeature() argument 174 if ((ctxt == NULL) || (name == NULL) || (result == NULL)) in xmlGetFeature() 178 *((int *) result) = ctxt->validate; in xmlGetFeature() 180 *((int *) result) = ctxt->keepBlanks; in xmlGetFeature() 182 *((int *) result) = ctxt->disableSAX; in xmlGetFeature() 184 *((int *) result) = ctxt->loadsubset; in xmlGetFeature() 186 *((int *) result) = ctxt->replaceEntities; in xmlGetFeature() 188 *((int *) result) = ctxt->record_info; in xmlGetFeature() [all …]
|
D | valid.c | 58 xmlVErrMemory(xmlValidCtxtPtr ctxt, const char *extra) in xmlVErrMemory() argument 64 if (ctxt != NULL) { in xmlVErrMemory() 65 channel = ctxt->error; in xmlVErrMemory() 66 data = ctxt->userData; in xmlVErrMemory() 69 if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || in xmlVErrMemory() 70 (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { in xmlVErrMemory() 71 long delta = (char *) ctxt - (char *) ctxt->userData; in xmlVErrMemory() 73 pctxt = ctxt->userData; in xmlVErrMemory() 97 xmlErrValid(xmlValidCtxtPtr ctxt, xmlParserErrors error, in xmlErrValid() argument 104 if (ctxt != NULL) { in xmlErrValid() [all …]
|
D | xmlregexp.c | 48 ctxt->error = XML_REGEXP_COMPILE_ERROR; \ 49 xmlRegexpErrCompile(ctxt, str); 50 #define NEXT ctxt->cur++ 51 #define CUR (*(ctxt->cur)) 52 #define NXT(index) (ctxt->cur[index]) 55 #define NEXTL(l) ctxt->cur += l; 61 #define PREV (ctxt->cur[-1]) 352 static void xmlFAParseRegExp(xmlRegParserCtxtPtr ctxt, int top); 374 xmlRegexpErrMemory(xmlRegParserCtxtPtr ctxt, const char *extra) in xmlRegexpErrMemory() argument 377 if (ctxt != NULL) { in xmlRegexpErrMemory() [all …]
|
D | xpointer.c | 89 xmlXPtrErr(xmlXPathParserContextPtr ctxt, int error, in xmlXPtrErr() argument 92 if (ctxt != NULL) in xmlXPtrErr() 93 ctxt->error = error; in xmlXPtrErr() 94 if ((ctxt == NULL) || (ctxt->context == NULL)) { in xmlXPtrErr() 102 ctxt->context->lastError.domain = XML_FROM_XPOINTER; in xmlXPtrErr() 103 ctxt->context->lastError.code = error; in xmlXPtrErr() 104 ctxt->context->lastError.level = XML_ERR_ERROR; in xmlXPtrErr() 105 ctxt->context->lastError.str1 = (char *) xmlStrdup(ctxt->base); in xmlXPtrErr() 106 ctxt->context->lastError.int1 = ctxt->cur - ctxt->base; in xmlXPtrErr() 107 ctxt->context->lastError.node = ctxt->context->debugNode; in xmlXPtrErr() [all …]
|
/external/libxml2/include/libxml/ |
D | xpathInternals.h | 41 #define xmlXPathSetError(ctxt, err) \ argument 42 { xmlXPatherror((ctxt), __FILE__, __LINE__, (err)); \ 43 if ((ctxt) != NULL) (ctxt)->error = (err); } 51 #define xmlXPathSetArityError(ctxt) \ argument 52 xmlXPathSetError((ctxt), XPATH_INVALID_ARITY) 60 #define xmlXPathSetTypeError(ctxt) \ argument 61 xmlXPathSetError((ctxt), XPATH_INVALID_TYPE) 71 #define xmlXPathGetError(ctxt) ((ctxt)->error) argument 81 #define xmlXPathCheckError(ctxt) ((ctxt)->error != XPATH_EXPRESSION_OK) argument 91 #define xmlXPathGetDocument(ctxt) ((ctxt)->context->doc) argument [all …]
|
D | parserInternals.h | 304 xmlSwitchEncoding (xmlParserCtxtPtr ctxt, 307 xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, 310 xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt, 317 __xmlErrEncoding (xmlParserCtxtPtr ctxt, 328 xmlNewStringInputStream (xmlParserCtxtPtr ctxt, 331 xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, 334 xmlPushInput (xmlParserCtxtPtr ctxt, 337 xmlPopInput (xmlParserCtxtPtr ctxt); 341 xmlNewInputFromFile (xmlParserCtxtPtr ctxt, 344 xmlNewInputStream (xmlParserCtxtPtr ctxt); [all …]
|
/external/libxslt/libxslt/ |
D | transform.c | 89 xsltCopyTreeInternal(xsltTransformContextPtr ctxt, 95 xsltApplySequenceConstructor(xsltTransformContextPtr ctxt, 100 xsltApplyXSLTTemplate(xsltTransformContextPtr ctxt, 116 templPush(xsltTransformContextPtr ctxt, xsltTemplatePtr value) in templPush() argument 118 if (ctxt->templMax == 0) { in templPush() 119 ctxt->templMax = 4; in templPush() 120 ctxt->templTab = in templPush() 121 (xsltTemplatePtr *) xmlMalloc(ctxt->templMax * in templPush() 122 sizeof(ctxt->templTab[0])); in templPush() 123 if (ctxt->templTab == NULL) { in templPush() [all …]
|
D | functions.c | 68 xsltXPathFunctionLookup (xmlXPathContextPtr ctxt, in xsltXPathFunctionLookup() argument 72 if ((ctxt == NULL) || (name == NULL) || (ns_uri == NULL)) in xsltXPathFunctionLookup() 84 XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri); in xsltXPathFunctionLookup() 105 xsltDocumentFunctionLoadDocument(xmlXPathParserContextPtr ctxt, xmlChar* URI) in xsltDocumentFunctionLoadDocument() argument 115 tctxt = xsltXPathGetTransformContext(ctxt); in xsltDocumentFunctionLoadDocument() 119 valuePush(ctxt, xmlXPathNewNodeSet(NULL)); in xsltDocumentFunctionLoadDocument() 127 valuePush(ctxt, xmlXPathNewNodeSet(NULL)); in xsltDocumentFunctionLoadDocument() 156 valuePush(ctxt, xmlXPathNewNodeSet(NULL)); in xsltDocumentFunctionLoadDocument() 167 valuePush(ctxt, xmlXPathNewNodeSet((xmlNodePtr) doc)); in xsltDocumentFunctionLoadDocument() 206 valuePush(ctxt, resObj); in xsltDocumentFunctionLoadDocument() [all …]
|
D | variables.c | 65 xsltCreateRVT(xsltTransformContextPtr ctxt) in xsltCreateRVT() argument 73 if (ctxt == NULL) in xsltCreateRVT() 79 if (ctxt->cache->RVT) { in xsltCreateRVT() 80 container = ctxt->cache->RVT; in xsltCreateRVT() 81 ctxt->cache->RVT = (xmlDocPtr) container->next; in xsltCreateRVT() 85 if (ctxt->cache->nbRVT > 0) in xsltCreateRVT() 86 ctxt->cache->nbRVT--; in xsltCreateRVT() 88 ctxt->cache->dbgReusedRVTs++; in xsltCreateRVT() 96 container->dict = ctxt->dict; in xsltCreateRVT() 120 xsltRegisterTmpRVT(xsltTransformContextPtr ctxt, xmlDocPtr RVT) in xsltRegisterTmpRVT() argument [all …]
|
D | templates.c | 56 xsltEvalXPathPredicate(xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, in xsltEvalXPathPredicate() argument 65 oldContextSize = ctxt->xpathCtxt->contextSize; in xsltEvalXPathPredicate() 66 oldProximityPosition = ctxt->xpathCtxt->proximityPosition; in xsltEvalXPathPredicate() 67 oldNsNr = ctxt->xpathCtxt->nsNr; in xsltEvalXPathPredicate() 68 oldNamespaces = ctxt->xpathCtxt->namespaces; in xsltEvalXPathPredicate() 69 oldInst = ctxt->inst; in xsltEvalXPathPredicate() 71 ctxt->xpathCtxt->node = ctxt->node; in xsltEvalXPathPredicate() 72 ctxt->xpathCtxt->namespaces = nsList; in xsltEvalXPathPredicate() 73 ctxt->xpathCtxt->nsNr = nsNr; in xsltEvalXPathPredicate() 75 res = xmlXPathCompiledEval(comp, ctxt->xpathCtxt); in xsltEvalXPathPredicate() [all …]
|
D | variables.h | 30 #define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \ argument 31 xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \ 32 xsltXPathVariableLookup, (void *)(ctxt)); \ 33 xsltRegisterAllFunctions((ctxt)->xpathCtxt); \ 34 xsltRegisterAllElement(ctxt); \ 35 (ctxt)->xpathCtxt->extra = ctxt 42 xsltEvalGlobalVariables (xsltTransformContextPtr ctxt); 44 xsltEvalUserParams (xsltTransformContextPtr ctxt, 47 xsltQuoteUserParams (xsltTransformContextPtr ctxt, 50 xsltEvalOneUserParam (xsltTransformContextPtr ctxt, [all …]
|
D | pattern.c | 120 xsltTransformContextPtr ctxt; /* the transformation or NULL */ member 251 xsltNewParserContext(xsltStylesheetPtr style, xsltTransformContextPtr ctxt) { in xsltNewParserContext() argument 262 cur->ctxt = ctxt; in xsltNewParserContext() 273 xsltFreeParserContext(xsltParserContextPtr ctxt) { in xsltFreeParserContext() argument 274 if (ctxt == NULL) in xsltFreeParserContext() 276 memset(ctxt, -1, sizeof(xsltParserContext)); in xsltFreeParserContext() 277 xmlFree(ctxt); in xsltFreeParserContext() 293 xsltCompMatchAdd(xsltParserContextPtr ctxt, xsltCompMatchPtr comp, in xsltCompMatchAdd() argument 304 if (ctxt->style != NULL) in xsltCompMatchAdd() 305 ctxt->style->errors++; in xsltCompMatchAdd() [all …]
|
D | extra.c | 58 xsltDebug(xsltTransformContextPtr ctxt, xmlNodePtr node ATTRIBUTE_UNUSED, in xsltDebug() argument 65 for (i = 0, j = ctxt->templNr - 1; ((i < 15) && (j >= 0)); i++, j--) { in xsltDebug() 67 if (ctxt->templTab[j]->name != NULL) in xsltDebug() 69 ctxt->templTab[j]->name); in xsltDebug() 70 if (ctxt->templTab[j]->match != NULL) in xsltDebug() 72 ctxt->templTab[j]->match); in xsltDebug() 73 if (ctxt->templTab[j]->mode != NULL) in xsltDebug() 75 ctxt->templTab[j]->mode); in xsltDebug() 79 for (i = 0, j = ctxt->varsNr - 1; ((i < 15) && (j >= 0)); i++, j--) { in xsltDebug() 82 if (ctxt->varsTab[j] == NULL) in xsltDebug() [all …]
|