Home | History | Annotate | Download | only in libxml2

Lines Matching refs:to

65  * @msg:  the message to display/transmit
87 * to the builtin error function.
103 * Function to reset the handler and the error context for out of
107 * be passed as first argument to @handler
108 * One can simply force messages to be emitted to another FILE * than
109 * stderr by setting @ctx to this file handle and @handler to NULL.
126 * Function to reset the handler and the error context for out of
130 * be passed as first argument to @handler
188 /* search backwards for beginning-of-line (to max buff size) */
195 /* search forward for end-of-line (to max buff size) */
198 /* copy selected text to our buffer */
445 * @msg: the message to display/transmit
464 xmlErrorPtr to = &xmlLastError;
488 * if user has defined handler, change data ptr to user's choice
518 to = &ctxt->lastError;
543 xmlResetError(to);
544 to->domain = domain;
545 to->code = code;
546 to->message = str;
547 to->level = level;
549 to->file = (char *) xmlStrdup((const xmlChar *) file);
554 * if so, attempt to print out the href of the XInclude instead
574 to->file = (char *) xmlGetProp(prev, BAD_CAST "href");
577 to->file = (char *) xmlGetProp(prev, BAD_CAST "href");
581 to->file = (char *) xmlStrdup(baseptr->doc->URL);
582 if ((to->file == NULL) && (node != NULL) && (node->doc != NULL)) {
583 to->file = (char *) xmlStrdup(node->doc->URL);
586 to->line = line;
588 to->str1 = (char *) xmlStrdup((const xmlChar *) str1);
590 to->str2 = (char *) xmlStrdup((const xmlChar *) str2);
592 to->str3 = (char *) xmlStrdup((const xmlChar *) str3);
593 to->int1 = int1;
594 to->int2 = col;
595 to->node = node;
596 to->ctxt = ctx;
598 if (to != &xmlLastError)
599 xmlCopyError(to,&xmlLastError);
602 schannel(data, to);
631 xmlReportError(to, ctxt, str, NULL, NULL);
634 xmlReportError(to, ctxt, str, channel, data);
672 * @msg: the message to display/transmit
715 * @msg: the message to display/transmit
764 * @msg: the message to display/transmit
808 * @msg: the message to display/transmit
854 * Returns NULL if no error occured or a pointer to the error
866 * @err: pointer to the error.
911 * Returns NULL if no error occured or a pointer to the error
948 * @to: a target error
950 * Save the original error to the new place.
955 xmlCopyError(xmlErrorPtr from, xmlErrorPtr to) {
958 if ((from == NULL) || (to == NULL))
967 if (to->message != NULL)
968 xmlFree(to->message);
969 if (to->file != NULL)
970 xmlFree(to->file);
971 if (to->str1 != NULL)
972 xmlFree(to->str1);
973 if (to->str2 != NULL)
974 xmlFree(to->str2);
975 if (to->str3 != NULL)
976 xmlFree(to->str3);
977 to->domain = from->domain;
978 to->code = from->code;
979 to->level = from->level;
980 to->line = from->line;
981 to->node = from->node;
982 to->int1 = from->int1;
983 to->int2 = from->int2;
984 to->node = from->node;
985 to->ctxt = from->ctxt;
986 to->message = message;
987 to->file = file;
988 to->str1 = str1;
989 to->str2 = str2;
990 to->str3 = str3;