Lines Matching refs:ctxt
245 xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str,
281 if (ctxt != NULL) {
282 input = ctxt->input;
284 (ctxt->inputNr > 1)) {
286 input = ctxt->inputTab[ctxt->inputNr - 2];
405 if (ctxt != NULL) {
462 xmlParserCtxtPtr ctxt = NULL;
476 ctxt = (xmlParserCtxtPtr) ctx;
477 if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) &&
478 (ctxt->sax->initialized == XML_SAX2_MAGIC) &&
479 (ctxt->sax->serror != NULL)) {
480 schannel = ctxt->sax->serror;
481 data = ctxt->userData;
507 if (ctxt != NULL) {
509 input = ctxt->input;
511 (ctxt->inputNr > 1)) {
512 input = ctxt->inputTab[ctxt->inputNr - 2];
520 to = &ctxt->lastError;
598 to->ctxt = ctx;
611 if ((ctxt != NULL) && (channel == NULL) &&
612 (xmlStructuredError == NULL) && (ctxt->sax != NULL)) {
614 channel = ctxt->sax->warning;
616 channel = ctxt->sax->error;
617 data = ctxt->userData;
620 if (ctxt != NULL) {
621 data = ctxt;
633 xmlReportError(to, ctxt, str, NULL, NULL);
636 xmlReportError(to, ctxt, str, channel, data);
683 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
688 if (ctxt != NULL) {
689 input = ctxt->input;
691 (ctxt->inputNr > 1)) {
693 input = ctxt->inputTab[ctxt->inputNr - 2];
704 if (ctxt != NULL) {
726 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
731 if (ctxt != NULL) {
732 input = ctxt->input;
734 (ctxt->inputNr > 1)) {
736 input = ctxt->inputTab[ctxt->inputNr - 2];
747 if (ctxt != NULL) {
775 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
782 if (ctxt != NULL) {
783 input = ctxt->input;
784 if ((input->filename == NULL) && (ctxt->inputNr > 1))
785 input = ctxt->inputTab[ctxt->inputNr - 2];
802 if ((ctxt != NULL) && (input != NULL)) {
819 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
824 if ((ctxt != NULL) && (len != 0) && (msg[len - 1] != ':')) {
825 input = ctxt->input;
826 if ((input->filename == NULL) && (ctxt->inputNr > 1))
827 input = ctxt->inputTab[ctxt->inputNr - 2];
838 if (ctxt != NULL) {
918 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
920 if (ctxt == NULL)
922 if (ctxt->lastError.code == XML_ERR_OK)
924 return (&ctxt->lastError);
937 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
939 if (ctxt == NULL)
941 ctxt->errNo = XML_ERR_OK;
942 if (ctxt->lastError.code == XML_ERR_OK)
944 xmlResetError(&ctxt->lastError);
987 to->ctxt = from->ctxt;