• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/libxml2-26/libxml2/

Lines Matching +defs:next +defs:error

111     xmlRelaxNGGrammarPtr next;  /* the next grammar if any */
164 xmlRelaxNGDefinePtr next; /* list within grouping sequences */
167 xmlRelaxNGDefinePtr nextHash; /* next define in defs/refs hash tables */
207 xmlRelaxNGValidityErrorFunc error; /* the callback in case of errors */
331 * A RelaxNGs validation error
336 xmlRelaxNGValidErr err; /* the error number */
352 xmlRelaxNGValidityErrorFunc error; /* the callback in case of errors */
362 int errNo; /* the first error found */
368 xmlRelaxNGValidErrorPtr err; /* Last error */
369 int errNr; /* Depth of the error stack */
370 int errMax; /* Max depth of the error stack */
391 int perr; /* signal error in content model
401 xmlRelaxNGIncludePtr next; /* keep a chain of includes */
414 xmlRelaxNGDocumentPtr next; /* keep a chain of documents */
425 * Some factorized error routines *
434 * Handle a redefinition of attribute error
447 channel = ctxt->error;
469 * Handle a redefinition of attribute error
482 channel = ctxt->error;
502 * @node: the node raising the error
503 * @error: the error code
508 * Handle a Relax NG Parsing error
511 xmlRngPErr(xmlRelaxNGParserCtxtPtr ctxt, xmlNodePtr node, int error,
522 channel = ctxt->error;
528 error, XML_ERR_ERROR, NULL, 0,
536 * @node: the node raising the error
537 * @error: the error code
542 * Handle a Relax NG Validation error
545 xmlRngVErr(xmlRelaxNGValidCtxtPtr ctxt, xmlNodePtr node, int error,
556 channel = ctxt->error;
562 error, XML_ERR_ERROR, NULL, 0,
581 * Returns 1 if yes, 0 if no and -1 in case of error.
594 * Returns 1 if yes, 0 if no and -1 in case of error.
611 * Returns 1 if yes, 0 if no and -1 in case of error.
637 * Returns 1 if yes, 0 if no and -1 in case of error.
703 xmlRelaxNGDocumentPtr next;
706 next = docu->next;
708 docu = next;
742 xmlRelaxNGIncludePtr next;
745 next = incl->next;
747 incl = next;
757 * Returns the newly allocated structure or NULL in case or error
836 * Returns the newly allocated structure or NULL in case or error
868 if (grammar->next != NULL) {
869 xmlRelaxNGFreeGrammar(grammar->next);
888 * Returns the newly allocated structure or NULL in case or error
1004 * Returns the newly allocated structure or NULL in case or error
1051 * Return 1 in case of success and 0 if this is a duplicate and -1 on error
1089 * Return 1 in case of success and 0 if this is a duplicate and -1 on error
1180 * Returns the newly allocated structure or NULL in case or error
1202 attr = attr->next;
1260 attr = attr->next;
1275 * Returns the newly allocated structure or NULL in case or error
1414 * Returns 0 if success and -1 in case of error
1447 * Returns 0 in case of error, the index in the stack otherwise
1514 * Returns 0 in case of error, 1 in case of success.
1536 tmp2 = tmp->next;
1592 * Returns the xmlRelaxNGIncludePtr or NULL in case of error
1645 ret->next = ctxt->includes;
1741 cur = cur->next;
1751 * @err: the error code
1756 * Pushes a new error on top of the error stack
1758 * Returns 0 in case of error, the index in the stack otherwise
1769 "Pushing error %d at %d on stack\n", err, ctxt->errNr);
1779 xmlRngVErrMemory(ctxt, "pushing error\n");
1792 xmlRngVErrMemory(ctxt, "pushing error\n");
1826 * Pops the top error from the error stack
1861 * Returns 0 in case of error, the index in the stack otherwise
1929 * Returns the xmlRelaxNGDocumentPtr or NULL in case of error
1975 ret->next = ctxt->documents;
2078 * @err: the error code
2082 * computes a formatted error string for the given error code and args
2084 * Returns the error string, it must be deallocated by the caller
2117 return (xmlCharStrdup("Internal error: no state\n"));
2119 return (xmlCharStrdup("Internal error: no define\n"));
2121 snprintf(msg, 1000, "Internal error: %s\n", arg1);
2212 return (xmlCharStrdup("Unknown error !\n"));
2215 snprintf(msg, 1000, "Unknown error code %d\n", err);
2224 * @err: the error number
2230 * Show a validation error.
2244 xmlGenericError(xmlGenericErrorContext, "Show error %d\n", err);
2260 * @level: the error level in the stack
2295 * Show all validation error over a given index.
2305 "Dumping error stack %d errors\n", ctxt->errNr);
2339 * @err: the error number
2344 * Register a validation error, either generating it if it's sure
2358 xmlGenericError(xmlGenericErrorContext, "Adding error %d\n", err);
2361 * generate the error directly
2368 * Flush first any stacked error which might be the
2385 * Stack the error for later processing if needed
2409 * Returns 1 if yes, 0 if no and -1 in case of error.
2436 * Returns 1 if yes, 0 if no and -1 in case of error.
2456 if (ret == 2) /* special ID error code */
2476 * Returns 1 if yes, 0 if no and -1 in case of error.
2548 * Returns 1 if yes, 0 if no and -1 in case of error.
2566 * Returns 1 if equal, 0 if no and -1 in case of error.
2624 * Returns 1 if yes, 0 if no and -1 in case of error.
2649 * Returns 1 if yes, 0 if no and -1 in case of error.
2679 * Returns 1 if yes, 0 if no and -1 in case of error.
2752 * Returns 0 in case of success and -1 in case of error.
2805 * Returns 0 in case of success and -1 in case of error.
2872 * Returns 1 if yes, 0 if no and -1 in case of error
2909 list = list->next;
2960 list = list->next;
2978 list = list->next;
3023 * Returns 0 if success and -1 in case of error
3060 list = list->next;
3092 list = list->next;
3132 list = list->next;
3146 list = list->next;
3159 list = list->next;
3165 list = list->next;
3188 list = list->next;
3204 list = list->next;
3233 /* This should not happen and generate an internal error */
3234 fprintf(stderr, "RNG internal error trying to compile %s\n",
3249 * Returns 0 if success and -1 in case of error
3315 list = list->next;
3366 * Returns 1 if yes, 0 if no and -1 in case of error
3410 list = list->next;
3424 list = list->next;
3520 * Returns the definition pointer or NULL in case of error
3562 "Internal error with type library '%s': no 'have'\n",
3578 (node->children->next != NULL)) {
3612 * Returns the definition pointer or NULL in case of error
3661 "Internal error with type library '%s': no 'have'\n",
3693 content = content->next;
3696 content = content->next;
3710 lastparam->next = param;
3716 content = content->next;
3744 last->next = tmp2;
3748 child = child->next;
3750 content = content->next;
3906 * Returns 1 if yes, 0 if no and -1 in case of error.
3915 * Don't run that check in case of error. Infinite recursion
3948 tmp = tmp->next;
3955 if (cur->next != NULL) {
3956 cur = cur->next;
3965 if (cur->next != NULL) {
3966 cur = cur->next;
3993 * Don't run that check in case of error. Infinite recursion
4048 tmp = tmp->next;
4055 if (cur->next != NULL) {
4056 cur = cur->next;
4065 if (cur->next != NULL) {
4066 cur = cur->next;
4100 * Don't run that check in case of error. Infinite recursion
4111 cur = cur->next;
4177 cur = cur->next;
4234 * Don't run that check in case of error. Infinite recursion
4243 cur = cur->next;
4248 cur = cur->next;
4263 cur = cur->next;
4269 cur = cur->next;
4326 * Don't run that check in case of error. Infinite recursion
4339 cur = cur->next;
4348 goto error;
4354 goto error;
4361 cur = cur->next;
4373 goto error;
4455 error:
4476 * Returns the definition pointer or NULL in case of error
4521 last->next = cur;
4525 child = child->next;
4538 * Returns 0 in case of success or -1 in case of error
4588 * Returns 0 in case of success or -1 in case of error
4639 "Internal error on define aggregation of %s\n",
4726 * Returns the xmlRelaxNGDefinePtr or NULL in case of error
4812 * Returns the definition pointer or NULL in case of error or if no
5006 grammar->next = old->next;
5007 old->next = grammar;
5060 "Internal error parentRef definitions '%s'\n",
5079 if ((def->content != NULL) && (def->content->next != NULL)) {
5092 tmp->next = def->content;
5112 * Returns the definition pointer or NULL in case of error.
5137 child = child->next;
5173 "RNG Internal error, noop found in attribute\n",
5178 child = child->next;
5196 * Returns the definition pointer or NULL in case of error.
5210 if (node->next != NULL) {
5239 last->next = cur;
5243 child = child->next;
5257 * Returns the definition pointer or NULL in case of error.
5363 last->next = tmp;
5367 child = child->next;
5382 while (tmp->next != NULL) {
5383 tmp = tmp->next;
5385 tmp->next = ret;
5398 * Returns the definition pointer or NULL in case of error.
5421 child = child->next;
5467 last->next = cur;
5472 cur->next = ret->attrs;
5477 "RNG Internal error, start found in element\n",
5482 "RNG Internal error, param found in element\n",
5487 "RNG Internal error, except found in element\n",
5492 "RNG Internal error, noop found in element\n",
5497 child = child->next;
5511 * Returns the definition pointer or NULL in case of error.
5532 last->next = cur;
5542 last->next = cur;
5547 nodes = nodes->next;
5559 * Returns 0 in case of success, -1 in case of error
5595 while (last->next != NULL)
5596 last = last->next;
5597 last->next = def;
5601 nodes = nodes->next;
5617 * Returns 0 in case of success, -1 in case of error
5654 nodes = nodes->next;
5685 "Internal error: no grammar in CheckReference %s\n",
5691 "Internal error: reference has content in CheckReference %s\n",
5791 if (tmp->content->next != NULL) {
5806 last->next = tmp2;
5854 if ((starts == NULL) || (starts->next == NULL))
5862 "Internal error: start element not found\n", NULL,
5901 cur = cur->next;
5948 * Returns 0 if check passed, and -1 in case of error
5974 cur = cur->next;
5996 prev->next = cur->next;
6000 parent->content = cur->next;
6002 parent->attrs = cur->next;
6004 parent->nameClass = cur->next;
6087 cur->content = tmp->next;
6088 tmp->next = cur->attrs;
6098 while ((pre != NULL) && (pre->next != NULL)) {
6099 tmp = pre->next;
6105 pre->next = tmp->next;
6106 tmp->next = cur->attrs;
6120 else if (cur->content->next == NULL) {
6125 cur->content->next = cur->next;
6128 cur->content->next = cur->next;
6129 prev->next = cur->content;
6175 cur = cur->next;
6324 "Element %s attributes have a content type error\n",
6332 "Element %s has a content type error\n",
6527 cur = cur->next;
6563 * NULL in case of error
6587 while (tmp->next != NULL)
6588 tmp = tmp->next;
6589 tmp->next = ret;
6638 * NULL in case of error
6674 while (tmp->next != NULL)
6675 tmp = tmp->next;
6676 tmp->next = ret;
6692 (schema->topgrammar->start->next != NULL))
6721 * Returns the parser context or NULL in case of error
6739 ret->error = xmlGenericError;
6752 * Returns the parser context or NULL in case of error
6771 ret->error = xmlGenericError;
6784 * Returns the parser context or NULL in case of error
6910 xmlAttrPtr cur, next;
6914 next = cur->next;
6983 cur = next;
7341 tmp = child->next;
7357 while (parDef->next != NULL)
7358 parDef = parDef->next;
7359 parDef->next = cur->nsDef;
7390 * Skip to next node
7401 if (cur->next != NULL) {
7402 cur = cur->next;
7414 if (cur->next != NULL) {
7415 cur = cur->next;
7435 * Returns the cleaned up document or NULL in case of error
7463 * NULL in case of error
7549 * if there was a parsing error return NULL
7597 * @err: the error callback
7610 ctxt->error = err;
7619 * @err: the error callback result
7635 *err = ctxt->error;
7646 * @serror: the error callback
7659 ctxt->error = NULL;
7686 defines = defines->next;
7968 * Returns 0 in case of success, -1 in case of error.
8016 * Switch to next element
8018 cur = cur->next;
8065 * Returns 0 in case of success and -1 in case of error.
8244 * validation error, log the message for the "best" one
8275 * element requires a full node, and -1 in case of error.
8446 * returns 1 if no validation problem was found or -1 in case of error.
8498 * Returns the new sibling or NULL in case of error.
8516 node = node->next;
8529 * Returns the new string or NULL in case of error.
8576 * Returns 0 if the validation succeeded or an error code.
8623 cur = cur->next;
8645 * Skip to the next value when validating within a list
8647 * Returns 0 if the operation succeeded or an error code.
8678 * Returns 0 if the validation succeeded or an error code.
8690 defines = defines->next;
8702 * Returns 0 if the validation succeeded or an error code.
8793 list = list->next;
8865 list = list->next;
8949 list = list->next;
8965 list = list->next;
8991 * Returns 0 if the validation succeeded or an error code.
9003 defines = defines->next;
9016 * Returns 1 if the attribute matches, 0 if no, or -1 in case of error
9051 list = list->next;
9065 * Returns 0 if the validation succeeded or an error code.
9175 * Returns 0 if the validation succeeded or an error code.
9192 cur = cur->next;
9210 cur = cur->next;
9258 * Returns 0 if the validation succeeded or an error code.
9391 lasts[i]->next = cur;
9397 if (cur->next != NULL)
9398 lastchg = cur->next;
9401 cur = xmlRelaxNGSkipIgnored(ctxt, cur->next);
9414 last = lasts[i]->next;
9415 lasts[i]->next = NULL;
9507 lasts[i]->next = last;
9523 * builds the next links chain from the prev one
9529 cur->prev->next = cur;
9549 * Returns 0 if the validation succeeded or an error code.
9574 defines = defines->next;
9588 * Returns 1 if the element matches, 0 if no, or -1 in case of error
9645 list = list->next;
9672 list = list->next;
9700 * This is called only if a falidation error was detected
9702 * Returns the index of the "best" state or -1 in case of error
9763 * @dolog: indicate that error logging should be done
9769 * Returns 0 if the validation succeeded or an error code.
9807 * Returns 0 if the validation succeeded or an error code.
9854 node = node->next;
9879 ctxt->state->seq = xmlRelaxNGSkipIgnored(ctxt, node->next);
9981 * validation error, log the message for the "best" one
10037 * validation error, log the message for the "best" one
10065 oldstate->seq = xmlRelaxNGSkipIgnored(ctxt, node->next);
10089 xmlGenericError(xmlGenericErrorContext, ": next elem %s\n",
10092 xmlGenericError(xmlGenericErrorContext, ": next %s %d\n",
10367 list = list->next;
10421 child = child->next;
10464 child = child->next;
10515 child = child->next;
10541 ctxt->state->seq = node->next;
10575 * Returns 0 if the validation succeeded or an error code.
10704 * Returns 0 if the validation succeeded or an error code.
10765 ctxt->error(ctxt->userData,
10766 "%d Extra error messages left on stack !\n",
10777 vctxt.error = ctxt->error;
10802 * of error.
10825 if (cur->next != NULL) {
10826 cur = cur->next;
10837 if (cur->next != NULL) {
10838 cur = cur->next;
10857 * Returns the validation context or NULL in case of error
10871 ret->error = xmlGenericError;
10931 * @err: the error function
10935 * Set the error and warning callback informations
10944 ctxt->error = err;
10953 * @serror: the structured error function
10956 * Set the structured error callback
10965 ctxt->error = NULL;
10973 * @err: the error function result
10977 * Get the error and warning callback informations
10979 * Returns -1 in case of error and 0 otherwise
10989 *err = ctxt->error;
11004 * Returns 0 if the document is valid, a positive error code
11005 * number otherwise and -1 in case of internal or API error.
11024 * TODO: build error codes