/external/libxml2/ |
D | parser.c | 110 xmlEntityPtr xmlParseStringPEReference(xmlParserCtxtPtr ctxt, 144 xmlErrAttributeDup(xmlParserCtxtPtr ctxt, const xmlChar * prefix, in xmlErrAttributeDup() argument 147 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in xmlErrAttributeDup() 148 (ctxt->instate == XML_PARSER_EOF)) in xmlErrAttributeDup() 150 if (ctxt != NULL) in xmlErrAttributeDup() 151 ctxt->errNo = XML_ERR_ATTRIBUTE_REDEFINED; in xmlErrAttributeDup() 153 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in xmlErrAttributeDup() 154 ctxt->errNo, XML_ERR_FATAL, NULL, 0, in xmlErrAttributeDup() 158 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in xmlErrAttributeDup() 159 ctxt->errNo, XML_ERR_FATAL, NULL, 0, in xmlErrAttributeDup() [all …]
|
D | SAX2.c | 53 xmlSAX2ErrMemory(xmlParserCtxtPtr ctxt, const char *msg) { in xmlSAX2ErrMemory() argument 54 if (ctxt != NULL) { in xmlSAX2ErrMemory() 55 if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL)) in xmlSAX2ErrMemory() 56 ctxt->sax->error(ctxt->userData, "%s: out of memory\n", msg); in xmlSAX2ErrMemory() 57 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlSAX2ErrMemory() 58 ctxt->instate = XML_PARSER_EOF; in xmlSAX2ErrMemory() 59 ctxt->disableSAX = 1; in xmlSAX2ErrMemory() 74 xmlErrValid(xmlParserCtxtPtr ctxt, xmlParserErrors error, in xmlErrValid() argument 79 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in xmlErrValid() 80 (ctxt->instate == XML_PARSER_EOF)) in xmlErrValid() [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 | 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 | 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 | nanoftp.c | 301 xmlNanoFTPCtxtPtr ctxt = (xmlNanoFTPCtxtPtr) ctx; in xmlNanoFTPScanURL() local 307 if (ctxt->protocol != NULL) { in xmlNanoFTPScanURL() 308 xmlFree(ctxt->protocol); in xmlNanoFTPScanURL() 309 ctxt->protocol = NULL; in xmlNanoFTPScanURL() 311 if (ctxt->hostname != NULL) { in xmlNanoFTPScanURL() 312 xmlFree(ctxt->hostname); in xmlNanoFTPScanURL() 313 ctxt->hostname = NULL; in xmlNanoFTPScanURL() 315 if (ctxt->path != NULL) { in xmlNanoFTPScanURL() 316 xmlFree(ctxt->path); in xmlNanoFTPScanURL() 317 ctxt->path = NULL; in xmlNanoFTPScanURL() [all …]
|
D | nanohttp.c | 277 xmlNanoHTTPScanURL(xmlNanoHTTPCtxtPtr ctxt, const char *URL) { in xmlNanoHTTPScanURL() argument 282 if (ctxt->protocol != NULL) { in xmlNanoHTTPScanURL() 283 xmlFree(ctxt->protocol); in xmlNanoHTTPScanURL() 284 ctxt->protocol = NULL; in xmlNanoHTTPScanURL() 286 if (ctxt->hostname != NULL) { in xmlNanoHTTPScanURL() 287 xmlFree(ctxt->hostname); in xmlNanoHTTPScanURL() 288 ctxt->hostname = NULL; in xmlNanoHTTPScanURL() 290 if (ctxt->path != NULL) { in xmlNanoHTTPScanURL() 291 xmlFree(ctxt->path); in xmlNanoHTTPScanURL() 292 ctxt->path = NULL; in xmlNanoHTTPScanURL() [all …]
|
D | relaxng.c | 434 xmlRngPErrMemory(xmlRelaxNGParserCtxtPtr ctxt, const char *extra) in xmlRngPErrMemory() argument 440 if (ctxt != NULL) { in xmlRngPErrMemory() 441 if (ctxt->serror != NULL) in xmlRngPErrMemory() 442 schannel = ctxt->serror; in xmlRngPErrMemory() 444 channel = ctxt->error; in xmlRngPErrMemory() 445 data = ctxt->userData; in xmlRngPErrMemory() 446 ctxt->nbErrors++; in xmlRngPErrMemory() 469 xmlRngVErrMemory(xmlRelaxNGValidCtxtPtr ctxt, const char *extra) in xmlRngVErrMemory() argument 475 if (ctxt != NULL) { in xmlRngVErrMemory() 476 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); } 267 xmlXPathErrMemory(xmlXPathContextPtr ctxt, const char *extra) in xmlXPathErrMemory() argument 269 if (ctxt != NULL) { in xmlXPathErrMemory() 276 ctxt->lastError.message = (char *) xmlStrdup(buf); in xmlXPathErrMemory() 278 ctxt->lastError.message = (char *) in xmlXPathErrMemory() 281 ctxt->lastError.domain = XML_FROM_XPATH; in xmlXPathErrMemory() 282 ctxt->lastError.code = XML_ERR_NO_MEMORY; in xmlXPathErrMemory() 283 if (ctxt->error != NULL) in xmlXPathErrMemory() 284 ctxt->error(ctxt->userData, &ctxt->lastError); in xmlXPathErrMemory() 309 xmlXPathPErrMemory(xmlXPathParserContextPtr ctxt, const char *extra) in xmlXPathPErrMemory() argument [all …]
|
D | schematron.c | 221 xmlSchematronPErrMemory(xmlSchematronParserCtxtPtr ctxt, in xmlSchematronPErrMemory() argument 224 if (ctxt != NULL) in xmlSchematronPErrMemory() 225 ctxt->nberrors++; in xmlSchematronPErrMemory() 242 xmlSchematronPErr(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr node, int error, in xmlSchematronPErr() argument 249 if (ctxt != NULL) { in xmlSchematronPErr() 250 ctxt->nberrors++; in xmlSchematronPErr() 251 channel = ctxt->error; in xmlSchematronPErr() 252 data = ctxt->userData; in xmlSchematronPErr() 253 schannel = ctxt->serror; in xmlSchematronPErr() 255 __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 | 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 | valid.c | 53 xmlVErrMemory(xmlValidCtxtPtr ctxt, const char *extra) in xmlVErrMemory() argument 59 if (ctxt != NULL) { in xmlVErrMemory() 60 channel = ctxt->error; in xmlVErrMemory() 61 data = ctxt->userData; in xmlVErrMemory() 64 if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || in xmlVErrMemory() 65 (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { in xmlVErrMemory() 66 long delta = (char *) ctxt - (char *) ctxt->userData; in xmlVErrMemory() 68 pctxt = ctxt->userData; in xmlVErrMemory() 92 xmlErrValid(xmlValidCtxtPtr ctxt, xmlParserErrors error, in xmlErrValid() argument 99 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]) 348 static void xmlFAParseRegExp(xmlRegParserCtxtPtr ctxt, int top); 368 xmlRegexpErrMemory(xmlRegParserCtxtPtr ctxt, const char *extra) in xmlRegexpErrMemory() argument 371 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 …]
|
D | error.c | 243 xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str, in xmlReportError() argument 279 if (ctxt != NULL) { in xmlReportError() 280 input = ctxt->input; in xmlReportError() 282 (ctxt->inputNr > 1)) { in xmlReportError() 284 input = ctxt->inputTab[ctxt->inputNr - 2]; in xmlReportError() 391 if (ctxt != NULL) { in xmlReportError() 448 xmlParserCtxtPtr ctxt = NULL; in __xmlRaiseError() local 460 ctxt = (xmlParserCtxtPtr) ctx; in __xmlRaiseError() 461 if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) && in __xmlRaiseError() 462 (ctxt->sax->initialized == XML_SAX2_MAGIC)) in __xmlRaiseError() [all …]
|
D | pattern.c | 324 xmlFreePatParserContext(xmlPatParserContextPtr ctxt) { in xmlFreePatParserContext() argument 325 if (ctxt == NULL) in xmlFreePatParserContext() 327 memset(ctxt, -1, sizeof(xmlPatParserContext)); in xmlFreePatParserContext() 328 xmlFree(ctxt); in xmlFreePatParserContext() 343 xmlPatternAdd(xmlPatParserContextPtr ctxt ATTRIBUTE_UNUSED, in xmlPatternAdd() 352 ERROR(ctxt, NULL, NULL, in xmlPatternAdd() 423 ERROR(ctxt, NULL, NULL, in xmlReversePattern() 712 #define CUR (*ctxt->cur) 713 #define SKIP(val) ctxt->cur += (val) 714 #define NXT(val) ctxt->cur[(val)] [all …]
|
D | xmlschemas.c | 1051 static int xmlSchemaParseInclude(xmlSchemaParserCtxtPtr ctxt, 1054 static int xmlSchemaParseRedefine(xmlSchemaParserCtxtPtr ctxt, 1059 xmlSchemaAbstractCtxtPtr ctxt); 1063 xmlSchemaParseImport(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, 1067 xmlSchemaParserCtxtPtr ctxt); 1073 xmlSchemaParseModelGroup(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, 1085 xmlSchemaCheckCOSSTDerivedOK(xmlSchemaAbstractCtxtPtr ctxt, 1091 xmlSchemaParserCtxtPtr ctxt); 1867 xmlSchemaPErrMemory(xmlSchemaParserCtxtPtr ctxt, in xmlSchemaPErrMemory() argument 1870 if (ctxt != NULL) in xmlSchemaPErrMemory() [all …]
|
D | xmlreader.c | 101 xmlParserCtxtPtr ctxt; /* the parser context */ member 263 dict = reader->ctxt->dict; in xmlTextReaderFreeProp() 280 if ((reader != NULL) && (reader->ctxt != NULL) && in xmlTextReaderFreeProp() 281 (reader->ctxt->freeAttrsNr < 100)) { in xmlTextReaderFreeProp() 282 cur->next = reader->ctxt->freeAttrs; in xmlTextReaderFreeProp() 283 reader->ctxt->freeAttrs = cur; in xmlTextReaderFreeProp() 284 reader->ctxt->freeAttrsNr++; in xmlTextReaderFreeProp() 321 dict = reader->ctxt->dict; in xmlTextReaderFreeNodeList() 373 (reader != NULL) && (reader->ctxt != NULL) && in xmlTextReaderFreeNodeList() 374 (reader->ctxt->freeElemsNr < 100)) { in xmlTextReaderFreeNodeList() [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 | 295 xmlSwitchEncoding (xmlParserCtxtPtr ctxt, 298 xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, 301 xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt, 308 __xmlErrEncoding (xmlParserCtxtPtr ctxt, 319 xmlNewStringInputStream (xmlParserCtxtPtr ctxt, 322 xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, 325 xmlPushInput (xmlParserCtxtPtr ctxt, 328 xmlPopInput (xmlParserCtxtPtr ctxt); 332 xmlNewInputFromFile (xmlParserCtxtPtr ctxt, 335 xmlNewInputStream (xmlParserCtxtPtr ctxt); [all …]
|
D | xmlschemas.h | 110 xmlSchemaFreeParserCtxt (xmlSchemaParserCtxtPtr ctxt); 112 xmlSchemaSetParserErrors (xmlSchemaParserCtxtPtr ctxt, 117 xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxtPtr ctxt, 121 xmlSchemaGetParserErrors(xmlSchemaParserCtxtPtr ctxt, 126 xmlSchemaIsValid (xmlSchemaValidCtxtPtr ctxt); 129 xmlSchemaParse (xmlSchemaParserCtxtPtr ctxt); 141 xmlSchemaSetValidErrors (xmlSchemaValidCtxtPtr ctxt, 146 xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxtPtr ctxt, 150 xmlSchemaGetValidErrors (xmlSchemaValidCtxtPtr ctxt, 155 xmlSchemaSetValidOptions (xmlSchemaValidCtxtPtr ctxt, [all …]
|
/external/bluez/utils/hcid/ |
D | dbus-sdp.c | 356 struct transaction_context *ctxt = udata; in transaction_context_free() local 358 if (!ctxt) in transaction_context_free() 361 g_free(ctxt->src); in transaction_context_free() 362 g_free(ctxt->dst); in transaction_context_free() 364 if (ctxt->conn) in transaction_context_free() 365 dbus_connection_unref(ctxt->conn); in transaction_context_free() 367 if (ctxt->rq) in transaction_context_free() 368 dbus_message_unref(ctxt->rq); in transaction_context_free() 370 if (ctxt->session && !ctxt->io) in transaction_context_free() 371 sdp_close(ctxt->session); in transaction_context_free() [all …]
|
/external/webkit/WebCore/xml/ |
D | XSLTExtensions.cpp | 44 …tion, int, (xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xmlXPathFunctio… 45 SOFT_LINK(libxslt, xsltFunctionNodeSet, void, (xmlXPathParserContextPtr ctxt, int nargs), (ctxt, na… 51 static void exsltNodeSetFunction(xmlXPathParserContextPtr ctxt, int nargs) in exsltNodeSetFunction() argument 58 xmlXPathSetArityError(ctxt); in exsltNodeSetFunction() 62 if (xmlXPathStackIsNodeSet(ctxt)) { in exsltNodeSetFunction() 63 xsltFunctionNodeSet(ctxt, nargs); in exsltNodeSetFunction() 67 strval = xmlXPathPopString(ctxt); in exsltNodeSetFunction() 79 valuePush(ctxt, ret); in exsltNodeSetFunction() 82 void registerXSLTExtensions(xsltTransformContextPtr ctxt) in registerXSLTExtensions() argument 84 …xsltRegisterExtFunction(ctxt, (const xmlChar*)"node-set", (const xmlChar*)"http://exslt.org/common… in registerXSLTExtensions()
|