/third_party/libxml2/ |
D | rngparser.c | 142 #define CUR_CHAR(l) xmlXPathCurrentChar(ctxt, &l) 159 { xmlCRNGErr(ctxt, X, NULL); return(0); } 161 { xmlCRNGErr(ctxt, X, NULL); } 164 { xmlCRNGErr(ctxt, CRNG_MEMORY_ERROR, NULL); return(0); } 166 { xmlCRNGErr(ctxt, CRNG_MEMORY_ERROR, NULL); } 168 #define ERROR(str) xmlCRNGErr(ctxt, 0, str); 171 xmlCRNGErr(xmlCRelaxNGParserCtxtPtr ctxt, int err_no, const char *err_msg) { in xmlCRNGErr() argument 176 if (ctxt != NULL) { in xmlCRNGErr() 177 if (ctxt->filename != NULL) in xmlCRNGErr() 178 fprintf(stderr, "%s:%d ", ctxt->filename, ctxt->lineno); in xmlCRNGErr() [all …]
|
D | parser.c | 98 xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info); 104 static void xmlHaltParser(xmlParserCtxtPtr ctxt); 107 xmlParseElementStart(xmlParserCtxtPtr ctxt); 110 xmlParseElementEnd(xmlParserCtxtPtr ctxt); 141 xmlParserEntityCheck(xmlParserCtxtPtr ctxt, size_t size, in xmlParserEntityCheck() argument 147 if ((ctxt == NULL) || (ctxt->options & XML_PARSE_HUGE)) in xmlParserEntityCheck() 149 if (ctxt->lastError.code == XML_ERR_ENTITY_LOOP) in xmlParserEntityCheck() 158 (ctxt->errNo != XML_ERR_ENTITY_LOOP)) { in xmlParserEntityCheck() 159 unsigned long oldnbent = ctxt->nbentities, diff; in xmlParserEntityCheck() 164 ++ctxt->depth; in xmlParserEntityCheck() [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 | 58 #define CUR(ctxt) ctxt->input->cur argument 59 #define END(ctxt) ctxt->input->end argument 60 #define VALID_CTXT(ctxt) (CUR(ctxt) <= END(ctxt)) argument 113 xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra) in xmlErrMemory() argument 115 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in xmlErrMemory() 116 (ctxt->instate == XML_PARSER_EOF)) in xmlErrMemory() 118 if (ctxt != NULL) { in xmlErrMemory() 119 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlErrMemory() 120 ctxt->instate = XML_PARSER_EOF; in xmlErrMemory() 121 ctxt->disableSAX = 1; in xmlErrMemory() [all …]
|
D | HTMLparser.c | 59 xmlChar * htmlDecodeEntities(htmlParserCtxtPtr ctxt, int len, 61 static void htmlParseComment(htmlParserCtxtPtr ctxt); 77 htmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra) in htmlErrMemory() argument 79 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in htmlErrMemory() 80 (ctxt->instate == XML_PARSER_EOF)) in htmlErrMemory() 82 if (ctxt != NULL) { in htmlErrMemory() 83 ctxt->errNo = XML_ERR_NO_MEMORY; in htmlErrMemory() 84 ctxt->instate = XML_PARSER_EOF; in htmlErrMemory() 85 ctxt->disableSAX = 1; in htmlErrMemory() 88 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in htmlErrMemory() [all …]
|
D | SAX2.c | 60 xmlSAX2ErrMemory(xmlParserCtxtPtr ctxt, const char *msg) { in xmlSAX2ErrMemory() argument 64 if (ctxt != NULL) { in xmlSAX2ErrMemory() 65 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlSAX2ErrMemory() 66 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlSAX2ErrMemory() 67 schannel = ctxt->sax->serror; in xmlSAX2ErrMemory() 69 ctxt->vctxt.error, ctxt->vctxt.userData, in xmlSAX2ErrMemory() 70 ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY, in xmlSAX2ErrMemory() 74 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlSAX2ErrMemory() 75 ctxt->instate = XML_PARSER_EOF; in xmlSAX2ErrMemory() 76 ctxt->disableSAX = 1; in xmlSAX2ErrMemory() [all …]
|
D | nanoftp.c | 294 xmlNanoFTPCtxtPtr ctxt = (xmlNanoFTPCtxtPtr) ctx; in xmlNanoFTPScanURL() local 300 if (ctxt->protocol != NULL) { in xmlNanoFTPScanURL() 301 xmlFree(ctxt->protocol); in xmlNanoFTPScanURL() 302 ctxt->protocol = NULL; in xmlNanoFTPScanURL() 304 if (ctxt->hostname != NULL) { in xmlNanoFTPScanURL() 305 xmlFree(ctxt->hostname); in xmlNanoFTPScanURL() 306 ctxt->hostname = NULL; in xmlNanoFTPScanURL() 308 if (ctxt->path != NULL) { in xmlNanoFTPScanURL() 309 xmlFree(ctxt->path); in xmlNanoFTPScanURL() 310 ctxt->path = NULL; in xmlNanoFTPScanURL() [all …]
|
D | nanohttp.c | 284 xmlNanoHTTPScanURL(xmlNanoHTTPCtxtPtr ctxt, const char *URL) { in xmlNanoHTTPScanURL() argument 291 if (ctxt->protocol != NULL) { in xmlNanoHTTPScanURL() 292 xmlFree(ctxt->protocol); in xmlNanoHTTPScanURL() 293 ctxt->protocol = NULL; in xmlNanoHTTPScanURL() 295 if (ctxt->hostname != NULL) { in xmlNanoHTTPScanURL() 296 xmlFree(ctxt->hostname); in xmlNanoHTTPScanURL() 297 ctxt->hostname = NULL; in xmlNanoHTTPScanURL() 299 if (ctxt->path != NULL) { in xmlNanoHTTPScanURL() 300 xmlFree(ctxt->path); in xmlNanoHTTPScanURL() 301 ctxt->path = NULL; in xmlNanoHTTPScanURL() [all …]
|
D | relaxng.c | 438 xmlRngPErrMemory(xmlRelaxNGParserCtxtPtr ctxt, const char *extra) in xmlRngPErrMemory() argument 444 if (ctxt != NULL) { in xmlRngPErrMemory() 445 if (ctxt->serror != NULL) in xmlRngPErrMemory() 446 schannel = ctxt->serror; in xmlRngPErrMemory() 448 channel = ctxt->error; in xmlRngPErrMemory() 449 data = ctxt->userData; in xmlRngPErrMemory() 450 ctxt->nbErrors++; in xmlRngPErrMemory() 473 xmlRngVErrMemory(xmlRelaxNGValidCtxtPtr ctxt, const char *extra) in xmlRngVErrMemory() argument 479 if (ctxt != NULL) { in xmlRngVErrMemory() 480 if (ctxt->serror != NULL) in xmlRngVErrMemory() [all …]
|
D | xinclude.c | 94 xmlXIncludeDoProcess(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr tree, 111 xmlXIncludeErrMemory(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, in xmlXIncludeErrMemory() argument 114 if (ctxt != NULL) in xmlXIncludeErrMemory() 115 ctxt->nbErrors++; in xmlXIncludeErrMemory() 116 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErrMemory() 132 xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, in xmlXIncludeErr() argument 135 if (ctxt != NULL) in xmlXIncludeErr() 136 ctxt->nbErrors++; in xmlXIncludeErr() 137 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErr() 154 xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, [all …]
|
/third_party/gettext/gnulib-local/lib/libxml/ |
D | parser.c | 120 xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info); 126 static void xmlHaltParser(xmlParserCtxtPtr ctxt); 155 xmlParserEntityCheck(xmlParserCtxtPtr ctxt, size_t size, in xmlParserEntityCheck() argument 160 if ((ctxt == NULL) || (ctxt->options & XML_PARSE_HUGE)) in xmlParserEntityCheck() 162 if (ctxt->lastError.code == XML_ERR_ENTITY_LOOP) in xmlParserEntityCheck() 171 (ctxt->errNo != XML_ERR_ENTITY_LOOP)) { in xmlParserEntityCheck() 172 unsigned long oldnbent = ctxt->nbentities; in xmlParserEntityCheck() 177 ++ctxt->depth; in xmlParserEntityCheck() 178 rep = xmlStringDecodeEntities(ctxt, ent->content, in xmlParserEntityCheck() 180 --ctxt->depth; in xmlParserEntityCheck() [all …]
|
D | parserInternals.c | 87 #define CUR(ctxt) ctxt->input->cur argument 88 #define END(ctxt) ctxt->input->end argument 89 #define VALID_CTXT(ctxt) (CUR(ctxt) <= END(ctxt)) argument 142 xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra) in xmlErrMemory() argument 144 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in xmlErrMemory() 145 (ctxt->instate == XML_PARSER_EOF)) in xmlErrMemory() 147 if (ctxt != NULL) { in xmlErrMemory() 148 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlErrMemory() 149 ctxt->instate = XML_PARSER_EOF; in xmlErrMemory() 150 ctxt->disableSAX = 1; in xmlErrMemory() [all …]
|
D | debugXML.c | 83 static void xmlCtxtDumpNodeList(xmlDebugCtxtPtr ctxt, xmlNodePtr node); 86 xmlCtxtDumpInitCtxt(xmlDebugCtxtPtr ctxt) in xmlCtxtDumpInitCtxt() argument 90 ctxt->depth = 0; in xmlCtxtDumpInitCtxt() 91 ctxt->check = 0; in xmlCtxtDumpInitCtxt() 92 ctxt->errors = 0; in xmlCtxtDumpInitCtxt() 93 ctxt->output = stdout; in xmlCtxtDumpInitCtxt() 94 ctxt->doc = NULL; in xmlCtxtDumpInitCtxt() 95 ctxt->node = NULL; in xmlCtxtDumpInitCtxt() 96 ctxt->dict = NULL; in xmlCtxtDumpInitCtxt() 97 ctxt->nodict = 0; in xmlCtxtDumpInitCtxt() [all …]
|
D | HTMLparser.c | 88 xmlChar * htmlDecodeEntities(htmlParserCtxtPtr ctxt, int len, 90 static void htmlParseComment(htmlParserCtxtPtr ctxt); 106 htmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra) in htmlErrMemory() argument 108 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in htmlErrMemory() 109 (ctxt->instate == XML_PARSER_EOF)) in htmlErrMemory() 111 if (ctxt != NULL) { in htmlErrMemory() 112 ctxt->errNo = XML_ERR_NO_MEMORY; in htmlErrMemory() 113 ctxt->instate = XML_PARSER_EOF; in htmlErrMemory() 114 ctxt->disableSAX = 1; in htmlErrMemory() 117 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in htmlErrMemory() [all …]
|
D | SAX2.c | 88 xmlSAX2ErrMemory(xmlParserCtxtPtr ctxt, const char *msg) { in xmlSAX2ErrMemory() argument 92 if (ctxt != NULL) { in xmlSAX2ErrMemory() 93 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlSAX2ErrMemory() 94 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlSAX2ErrMemory() 95 schannel = ctxt->sax->serror; in xmlSAX2ErrMemory() 97 ctxt->vctxt.error, ctxt->vctxt.userData, in xmlSAX2ErrMemory() 98 ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY, in xmlSAX2ErrMemory() 102 ctxt->errNo = XML_ERR_NO_MEMORY; in xmlSAX2ErrMemory() 103 ctxt->instate = XML_PARSER_EOF; in xmlSAX2ErrMemory() 104 ctxt->disableSAX = 1; in xmlSAX2ErrMemory() [all …]
|
D | nanoftp.c | 325 xmlNanoFTPCtxtPtr ctxt = (xmlNanoFTPCtxtPtr) ctx; in xmlNanoFTPScanURL() local 331 if (ctxt->protocol != NULL) { in xmlNanoFTPScanURL() 332 xmlFree(ctxt->protocol); in xmlNanoFTPScanURL() 333 ctxt->protocol = NULL; in xmlNanoFTPScanURL() 335 if (ctxt->hostname != NULL) { in xmlNanoFTPScanURL() 336 xmlFree(ctxt->hostname); in xmlNanoFTPScanURL() 337 ctxt->hostname = NULL; in xmlNanoFTPScanURL() 339 if (ctxt->path != NULL) { in xmlNanoFTPScanURL() 340 xmlFree(ctxt->path); in xmlNanoFTPScanURL() 341 ctxt->path = NULL; in xmlNanoFTPScanURL() [all …]
|
D | nanohttp.c | 313 xmlNanoHTTPScanURL(xmlNanoHTTPCtxtPtr ctxt, const char *URL) { in xmlNanoHTTPScanURL() argument 320 if (ctxt->protocol != NULL) { in xmlNanoHTTPScanURL() 321 xmlFree(ctxt->protocol); in xmlNanoHTTPScanURL() 322 ctxt->protocol = NULL; in xmlNanoHTTPScanURL() 324 if (ctxt->hostname != NULL) { in xmlNanoHTTPScanURL() 325 xmlFree(ctxt->hostname); in xmlNanoHTTPScanURL() 326 ctxt->hostname = NULL; in xmlNanoHTTPScanURL() 328 if (ctxt->path != NULL) { in xmlNanoHTTPScanURL() 329 xmlFree(ctxt->path); in xmlNanoHTTPScanURL() 330 ctxt->path = NULL; in xmlNanoHTTPScanURL() [all …]
|
D | xpathInternals.in.h | 70 #define xmlXPathSetError(ctxt, err) \ argument 71 { xmlXPatherror((ctxt), __FILE__, __LINE__, (err)); \ 72 if ((ctxt) != NULL) (ctxt)->error = (err); } 80 #define xmlXPathSetArityError(ctxt) \ argument 81 xmlXPathSetError((ctxt), XPATH_INVALID_ARITY) 89 #define xmlXPathSetTypeError(ctxt) \ argument 90 xmlXPathSetError((ctxt), XPATH_INVALID_TYPE) 100 #define xmlXPathGetError(ctxt) ((ctxt)->error) argument 110 #define xmlXPathCheckError(ctxt) ((ctxt)->error != XPATH_EXPRESSION_OK) argument 120 #define xmlXPathGetDocument(ctxt) ((ctxt)->context->doc) argument [all …]
|
D | relaxng.c | 467 xmlRngPErrMemory(xmlRelaxNGParserCtxtPtr ctxt, const char *extra) in xmlRngPErrMemory() argument 473 if (ctxt != NULL) { in xmlRngPErrMemory() 474 if (ctxt->serror != NULL) in xmlRngPErrMemory() 475 schannel = ctxt->serror; in xmlRngPErrMemory() 477 channel = ctxt->error; in xmlRngPErrMemory() 478 data = ctxt->userData; in xmlRngPErrMemory() 479 ctxt->nbErrors++; in xmlRngPErrMemory() 502 xmlRngVErrMemory(xmlRelaxNGValidCtxtPtr ctxt, const char *extra) in xmlRngVErrMemory() argument 508 if (ctxt != NULL) { in xmlRngVErrMemory() 509 if (ctxt->serror != NULL) in xmlRngVErrMemory() [all …]
|
D | xinclude.c | 121 xmlXIncludeDoProcess(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr tree); 137 xmlXIncludeErrMemory(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, in xmlXIncludeErrMemory() argument 140 if (ctxt != NULL) in xmlXIncludeErrMemory() 141 ctxt->nbErrors++; in xmlXIncludeErrMemory() 142 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErrMemory() 158 xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, in xmlXIncludeErr() argument 161 if (ctxt != NULL) in xmlXIncludeErr() 162 ctxt->nbErrors++; in xmlXIncludeErr() 163 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErr() 180 xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, [all …]
|
D | parserInternals.in.h | 366 xmlSwitchEncoding (xmlParserCtxtPtr ctxt, 369 xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, 372 xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt, 379 __xmlErrEncoding (xmlParserCtxtPtr ctxt, 390 xmlNewStringInputStream (xmlParserCtxtPtr ctxt, 393 xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, 396 xmlPushInput (xmlParserCtxtPtr ctxt, 399 xmlPopInput (xmlParserCtxtPtr ctxt); 403 xmlNewInputFromFile (xmlParserCtxtPtr ctxt, 406 xmlNewInputStream (xmlParserCtxtPtr ctxt); [all …]
|
D | xmlsave.c | 360 xmlSaveCtxtInit(xmlSaveCtxtPtr ctxt) in xmlSaveCtxtInit() argument 365 if (ctxt == NULL) return; in xmlSaveCtxtInit() 366 if ((ctxt->encoding == NULL) && (ctxt->escape == NULL)) in xmlSaveCtxtInit() 367 ctxt->escape = xmlEscapeEntities; in xmlSaveCtxtInit() 370 memset(&ctxt->indent[0], 0, MAX_INDENT + 1); in xmlSaveCtxtInit() 372 ctxt->indent_size = len; in xmlSaveCtxtInit() 373 ctxt->indent_nr = MAX_INDENT / ctxt->indent_size; in xmlSaveCtxtInit() 374 for (i = 0;i < ctxt->indent_nr;i++) in xmlSaveCtxtInit() 375 memcpy(&ctxt->indent[i * ctxt->indent_size], xmlTreeIndentString, in xmlSaveCtxtInit() 376 ctxt->indent_size); in xmlSaveCtxtInit() [all …]
|
/third_party/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 | 337 xmlSwitchEncoding (xmlParserCtxtPtr ctxt, 340 xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, 343 xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt, 350 __xmlErrEncoding (xmlParserCtxtPtr ctxt, 361 xmlNewStringInputStream (xmlParserCtxtPtr ctxt, 364 xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, 367 xmlPushInput (xmlParserCtxtPtr ctxt, 370 xmlPopInput (xmlParserCtxtPtr ctxt); 374 xmlNewInputFromFile (xmlParserCtxtPtr ctxt, 377 xmlNewInputStream (xmlParserCtxtPtr ctxt); [all …]
|
/third_party/libwebsockets/lib/misc/ |
D | sha-1.c | 80 #define H(n) (ctxt->h.b32[(n)]) 81 #define COUNT (ctxt->count) 82 #define BCOUNT (ctxt->c.b64[0] / 8) 83 #define W(n) (ctxt->m.b32[(n)]) 86 ctxt->m.b8[(COUNT % 64)] = (x); \ 89 ctxt->c.b64[0] += 8; \ 91 sha1_step(ctxt); \ 95 ctxt->m.b8[(COUNT % 64)] = (x); \ 99 sha1_step(ctxt); \ 104 sha1_step(struct sha1_ctxt *ctxt) in sha1_step() argument [all …]
|