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 */
433 * @msg: the message to display/transmit
452 xmlErrorPtr to = &xmlLastError;
476 * if user has defined handler, change data ptr to user's choice
506 to = &ctxt->lastError;
529 xmlResetError(to);
530 to->domain = domain;
531 to->code = code;
532 to->message = str;
533 to->level = level;
535 to->file = (char *) xmlStrdup((const xmlChar *) file);
540 * if so, attempt to print out the href of the XInclude instead
560 to->file = (char *) xmlGetProp(prev, BAD_CAST "href");
563 to->file = (char *) xmlGetProp(prev, BAD_CAST "href");
567 to->file = (char *) xmlStrdup(baseptr->doc->URL);
568 if ((to
569 to->file = (char *) xmlStrdup(node->doc->URL);
572 to->line = line;
574 to->str1 = (char *) xmlStrdup((const xmlChar *) str1);
576 to->str2 = (char *) xmlStrdup((const xmlChar *) str2);
578 to->str3 = (char *) xmlStrdup((const xmlChar *) str3);
579 to->int1 = int1;
580 to->int2 = col;
581 to->node = node;
582 to->ctxt = ctx;
584 if (to != &xmlLastError)
585 xmlCopyError(to,&xmlLastError);
588 schannel(data, to);
614 xmlReportError(to, ctxt, str, NULL, NULL);
617 xmlReportError(to, ctxt, str, channel, data);
655 * @msg: the message to display/transmit
698 * @msg: the message to display/transmit
747 * @msg: the message to display/transmit
791 * @msg: the message to display/transmit
837 * Returns NULL if no error occured or a pointer to the error
849 * @err: pointer to the error.
894 * Returns NULL if no error occured or a pointer to the error
931 * @to: a target error
933 * Save the original error to the new place.
938 xmlCopyError(xmlErrorPtr from, xmlErrorPtr to) {
941 if ((from == NULL) || (to == NULL))
950 if (to->message != NULL)
951 xmlFree(to->message);
952 if (to->file != NULL)
953 xmlFree(to->file);
954 if (to->str1 != NULL)
955 xmlFree(to->str1);
956 if (to->str2 != NULL)
957 xmlFree(to->str2);
958 if (to->str3 != NULL)
959 xmlFree(to->str3);
960 to->domain = from->domain;
961 to->code = from->code;
962 to->level = from->level;
963 to->line = from->line;
964 to->node = from->node;
965 to->int1 = from->int1;
966 to->int2 = from->int2;
967 to->node = from->node;
968 to->ctxt = from->ctxt;
969 to->message = message;
970 to->file = file;
971 to->str1 = str1;
972 to->str2 = str2;
973 to->str3 = str3;