Lines Matching defs: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
190 /* search backwards for beginning-of-line (to max buff size) */
197 /* search forward for end-of-line (to max buff size) */
200 /* copy selected text to our buffer */
447 * @msg: the message to display/transmit
466 xmlErrorPtr to = &xmlLastError;
490 * if user has defined handler, change data ptr to user's choice
520 to = &ctxt->lastError;
545 xmlResetError(to);
546 to->domain = domain;
547 to->code = code;
548 to->message = str;
549 to->level = level;
551 to->file = (char *) xmlStrdup((const xmlChar *) file);
556 * if so, attempt to print out the href of the XInclude instead
576 to->file = (char *) xmlGetProp(prev, BAD_CAST "href");
579 to->file = (char *) xmlGetProp(prev, BAD_CAST "href");
583 to->file = (char *) xmlStrdup(baseptr->doc->URL);
584 if ((to->file == NULL) && (node != NULL) && (node->doc != NULL)) {
585 to->file = (char *) xmlStrdup(node->doc->URL);
588 to->line = line;
590 to->str1 = (char *) xmlStrdup((const xmlChar *) str1);
592 to->str2 = (char *) xmlStrdup((const xmlChar *) str2);
594 to->str3 = (char *) xmlStrdup((const xmlChar *) str3);
595 to->int1 = int1;
596 to->int2 = col;
597 to->node = node;
598 to->ctxt = ctx;
600 if (to != &xmlLastError)
601 xmlCopyError(to,&xmlLastError);
604 schannel(data, to);
633 xmlReportError(to, ctxt, str, NULL, NULL);
636 xmlReportError(to, ctxt, str, channel, data);
674 * @msg: the message to display/transmit
717 * @msg: the message to display/transmit
766 * @msg: the message to display/transmit
810 * @msg: the message to display/transmit
856 * Returns NULL if no error occured or a pointer to the error
868 * @err: pointer to the error.
913 * Returns NULL if no error occured or a pointer to the error
950 * @to: a target error
952 * Save the original error to the new place.
957 xmlCopyError(xmlErrorPtr from, xmlErrorPtr to) {
960 if ((from == NULL) || (to == NULL))
969 if (to->message != NULL)
970 xmlFree(to->message);
971 if (to->file != NULL)
972 xmlFree(to->file);
973 if (to->str1 != NULL)
974 xmlFree(to->str1);
975 if (to->str2 != NULL)
976 xmlFree(to->str2);
977 if (to->str3 != NULL)
978 xmlFree(to->str3);
979 to->domain = from->domain;
980 to->code = from->code;
981 to->level = from->level;
982 to->line = from->line;
983 to->node = from->node;
984 to->int1 = from->int1;
985 to->int2 = from->int2;
986 to->node = from->node;
987 to->ctxt = from->ctxt;
988 to->message = message;
989 to->file = file;
990 to->str1 = str1;
991 to->str2 = str2;
992 to->str3 = str3;