Home
last modified time | relevance | path

Searched refs:ctxt (Results 1 – 25 of 227) sorted by relevance

12345678910

/external/libxml2/
Drngparser.c142 #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 …]
Dparser.c91 xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info);
97 static void xmlHaltParser(xmlParserCtxtPtr ctxt);
126 xmlParserEntityCheck(xmlParserCtxtPtr ctxt, size_t size, in xmlParserEntityCheck() argument
131 if ((ctxt == NULL) || (ctxt->options & XML_PARSE_HUGE)) in xmlParserEntityCheck()
133 if (ctxt->lastError.code == XML_ERR_ENTITY_LOOP) in xmlParserEntityCheck()
142 (ctxt->errNo != XML_ERR_ENTITY_LOOP)) { in xmlParserEntityCheck()
143 unsigned long oldnbent = ctxt->nbentities; in xmlParserEntityCheck()
148 ++ctxt->depth; in xmlParserEntityCheck()
149 rep = xmlStringDecodeEntities(ctxt, ent->content, in xmlParserEntityCheck()
151 --ctxt->depth; in xmlParserEntityCheck()
[all …]
DparserInternals.c58 #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 …]
DdebugXML.c54 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 …]
DHTMLparser.c59 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 …]
DSAX2.c60 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 …]
Dnanoftp.c294 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 …]
Dnanohttp.c284 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 …]
Drelaxng.c438 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 …]
Dxinclude.c92 xmlXIncludeDoProcess(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr tree);
108 xmlXIncludeErrMemory(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, in xmlXIncludeErrMemory() argument
111 if (ctxt != NULL) in xmlXIncludeErrMemory()
112 ctxt->nbErrors++; in xmlXIncludeErrMemory()
113 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErrMemory()
129 xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error, in xmlXIncludeErr() argument
132 if (ctxt != NULL) in xmlXIncludeErr()
133 ctxt->nbErrors++; in xmlXIncludeErr()
134 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE, in xmlXIncludeErr()
151 xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
[all …]
Dxmlsave.c331 xmlSaveCtxtInit(xmlSaveCtxtPtr ctxt) in xmlSaveCtxtInit() argument
336 if (ctxt == NULL) return; in xmlSaveCtxtInit()
337 if ((ctxt->encoding == NULL) && (ctxt->escape == NULL)) in xmlSaveCtxtInit()
338 ctxt->escape = xmlEscapeEntities; in xmlSaveCtxtInit()
341 memset(&ctxt->indent[0], 0, MAX_INDENT + 1); in xmlSaveCtxtInit()
343 ctxt->indent_size = len; in xmlSaveCtxtInit()
344 ctxt->indent_nr = MAX_INDENT / ctxt->indent_size; in xmlSaveCtxtInit()
345 for (i = 0;i < ctxt->indent_nr;i++) in xmlSaveCtxtInit()
346 memcpy(&ctxt->indent[i * ctxt->indent_size], xmlTreeIndentString, in xmlSaveCtxtInit()
347 ctxt->indent_size); in xmlSaveCtxtInit()
[all …]
Dschematron.c228 xmlSchematronPErrMemory(xmlSchematronParserCtxtPtr ctxt, in xmlSchematronPErrMemory() argument
231 if (ctxt != NULL) in xmlSchematronPErrMemory()
232 ctxt->nberrors++; in xmlSchematronPErrMemory()
249 xmlSchematronPErr(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr node, int error, in xmlSchematronPErr() argument
256 if (ctxt != NULL) { in xmlSchematronPErr()
257 ctxt->nberrors++; in xmlSchematronPErr()
258 channel = ctxt->error; in xmlSchematronPErr()
259 data = ctxt->userData; in xmlSchematronPErr()
260 schannel = ctxt->serror; in xmlSchematronPErr()
262 __xmlRaiseError(schannel, channel, data, ctxt, node, XML_FROM_SCHEMASP, in xmlSchematronPErr()
[all …]
Dxpath.c582 { xmlXPathErr(ctxt, X); return(NULL); }
625 xmlXPathErrMemory(xmlXPathContextPtr ctxt, const char *extra) in xmlXPathErrMemory() argument
627 if (ctxt != NULL) { in xmlXPathErrMemory()
634 ctxt->lastError.message = (char *) xmlStrdup(buf); in xmlXPathErrMemory()
636 ctxt->lastError.message = (char *) in xmlXPathErrMemory()
639 ctxt->lastError.domain = XML_FROM_XPATH; in xmlXPathErrMemory()
640 ctxt->lastError.code = XML_ERR_NO_MEMORY; in xmlXPathErrMemory()
641 if (ctxt->error != NULL) in xmlXPathErrMemory()
642 ctxt->error(ctxt->userData, &ctxt->lastError); in xmlXPathErrMemory()
667 xmlXPathPErrMemory(xmlXPathParserContextPtr ctxt, const char *extra) in xmlXPathPErrMemory() argument
[all …]
Dlegacy.c31 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 …]
Dcheck-xml-test-suite.py55 ctxt = libxml2.createFileParserCtxt(filename)
56 if ctxt == None:
58 ctxt.replaceEntities(1)
59 ctxt.parseDocument()
61 doc = ctxt.doc()
64 if ctxt.wellFormed() != 1:
81 ctxt = libxml2.createFileParserCtxt(filename)
82 if ctxt == None:
84 ret = ctxt.parseDocument()
87 doc = ctxt.doc()
[all …]
Dvalid.c58 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 …]
Dxmlregexp.c51 ctxt->error = XML_REGEXP_COMPILE_ERROR; \
52 xmlRegexpErrCompile(ctxt, str);
53 #define NEXT ctxt->cur++
54 #define CUR (*(ctxt->cur))
55 #define NXT(index) (ctxt->cur[index])
58 #define NEXTL(l) ctxt->cur += l;
64 #define PREV (ctxt->cur[-1])
356 static void xmlFAParseRegExp(xmlRegParserCtxtPtr ctxt, int top);
378 xmlRegexpErrMemory(xmlRegParserCtxtPtr ctxt, const char *extra) in xmlRegexpErrMemory() argument
381 if (ctxt != NULL) { in xmlRegexpErrMemory()
[all …]
Dxpointer.c94 xmlXPtrErr(xmlXPathParserContextPtr ctxt, int error, in xmlXPtrErr() argument
97 if (ctxt != NULL) in xmlXPtrErr()
98 ctxt->error = error; in xmlXPtrErr()
99 if ((ctxt == NULL) || (ctxt->context == NULL)) { in xmlXPtrErr()
109 xmlResetError(&ctxt->context->lastError); in xmlXPtrErr()
111 ctxt->context->lastError.domain = XML_FROM_XPOINTER; in xmlXPtrErr()
112 ctxt->context->lastError.code = error; in xmlXPtrErr()
113 ctxt->context->lastError.level = XML_ERR_ERROR; in xmlXPtrErr()
114 ctxt->context->lastError.str1 = (char *) xmlStrdup(ctxt->base); in xmlXPtrErr()
115 ctxt->context->lastError.int1 = ctxt->cur - ctxt->base; in xmlXPtrErr()
[all …]
DtestRegexp.c91 runFileTest(xmlExpCtxtPtr ctxt, const char *filename) { in runFileTest() argument
117 xmlExpFree(ctxt, expr); in runFileTest()
118 if (xmlExpCtxtNbNodes(ctxt) != 0) in runFileTest()
120 xmlExpCtxtNbNodes(ctxt)); in runFileTest()
124 expr = xmlExpParse(ctxt, str); in runFileTest()
138 nodes1 = xmlExpCtxtNbNodes(ctxt); in runFileTest()
139 sub = xmlExpParse(ctxt, expression + 2); in runFileTest()
146 nodes2 = xmlExpCtxtNbNodes(ctxt); in runFileTest()
147 ret = xmlExpSubsume(ctxt, expr, sub); in runFileTest()
160 if (xmlExpCtxtNbNodes(ctxt) > nodes2) { in runFileTest()
[all …]
/external/libxml2/include/libxml/
DxpathInternals.h41 #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 …]
DparserInternals.h337 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 …]
/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_util.py51 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
52 return GetContainingXLAContext(ctxt) is not None
56 ctxt = graph._get_control_flow_context() # pylint: disable=protected-access
57 return GetContainingXLAContext(ctxt) is not None
70 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
71 return GetContainingWhileContext(ctxt) is not None
75 ctxt = op._get_control_flow_context() # pylint: disable=protected-access
76 return GetContainingCondContext(ctxt) is not None
112 ctxt = c._get_control_flow_context() # pylint: disable=protected-access
114 ctxt = ctxt.outer_context
[all …]
/external/curl/lib/
Dhmac.c56 HMAC_context *ctxt; in Curl_HMAC_init() local
61 i = sizeof(*ctxt) + 2 * hashparams->hmac_ctxtsize + in Curl_HMAC_init()
63 ctxt = malloc(i); in Curl_HMAC_init()
65 if(!ctxt) in Curl_HMAC_init()
66 return ctxt; in Curl_HMAC_init()
68 ctxt->hmac_hash = hashparams; in Curl_HMAC_init()
69 ctxt->hmac_hashctxt1 = (void *) (ctxt + 1); in Curl_HMAC_init()
70 ctxt->hmac_hashctxt2 = (void *) ((char *) ctxt->hmac_hashctxt1 + in Curl_HMAC_init()
75 (*hashparams->hmac_hinit)(ctxt->hmac_hashctxt1); in Curl_HMAC_init()
76 (*hashparams->hmac_hupdate)(ctxt->hmac_hashctxt1, key, keylen); in Curl_HMAC_init()
[all …]
/external/libxml2/python/tests/
Dvalidate.py8 ctxt = libxml2.createFileParserCtxt("valid.xml") variable
9 ctxt.validate(1)
10 ctxt.parseDocument()
11 doc = ctxt.doc()
12 valid = ctxt.isValid()
28 ctxt = libxml2.createFileParserCtxt("valid.xml") variable
29 ctxt.validate(1)
30 ctxt.parseDocument()
31 doc = ctxt.doc()
32 valid = ctxt.isValid()
[all …]
Dindexes.py9 ctxt = None variable
21 global ctxt
22 if ctxt.byteConsumed() != self.startd:
24 ctxt.byteConsumed(), self.startd))
28 global ctxt
30 if ctxt.byteConsumed() != expect:
32 ctxt.byteConsumed(), expect))
36 global ctxt
39 if ctxt.byteConsumed() != expect:
41 ctxt.byteConsumed(), expect))
[all …]

12345678910