| OLD | NEW |
| 1 /* | 1 /* |
| 2 * valid.c : part of the code use to do the DTD handling and the validity | 2 * valid.c : part of the code use to do the DTD handling and the validity |
| 3 * checking | 3 * checking |
| 4 * | 4 * |
| 5 * See Copyright for the status of this software. | 5 * See Copyright for the status of this software. |
| 6 * | 6 * |
| 7 * daniel@veillard.com | 7 * daniel@veillard.com |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #define IN_LIBXML | 10 #define IN_LIBXML |
| (...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2627 ret->attr = attr; | 2627 ret->attr = attr; |
| 2628 ret->name = NULL; | 2628 ret->name = NULL; |
| 2629 } | 2629 } |
| 2630 ret->lineno = xmlGetLineNo(attr->parent); | 2630 ret->lineno = xmlGetLineNo(attr->parent); |
| 2631 | 2631 |
| 2632 if (xmlHashAddEntry(table, value, ret) < 0) { | 2632 if (xmlHashAddEntry(table, value, ret) < 0) { |
| 2633 #ifdef LIBXML_VALID_ENABLED | 2633 #ifdef LIBXML_VALID_ENABLED |
| 2634 /* | 2634 /* |
| 2635 * The id is already defined in this DTD. | 2635 * The id is already defined in this DTD. |
| 2636 */ | 2636 */ |
| 2637 » xmlErrValidNode(ctxt, attr->parent, XML_DTD_ID_REDEFINED, | 2637 » if (ctxt != NULL) { |
| 2638 » » » "ID %s already defined\n", value, NULL, NULL); | 2638 » xmlErrValidNode(ctxt, attr->parent, XML_DTD_ID_REDEFINED, |
| 2639 » » » "ID %s already defined\n", value, NULL, NULL); |
| 2640 » } |
| 2639 #endif /* LIBXML_VALID_ENABLED */ | 2641 #endif /* LIBXML_VALID_ENABLED */ |
| 2640 xmlFreeID(ret); | 2642 xmlFreeID(ret); |
| 2641 return(NULL); | 2643 return(NULL); |
| 2642 } | 2644 } |
| 2643 if (attr != NULL) | 2645 if (attr != NULL) |
| 2644 attr->atype = XML_ATTRIBUTE_ID; | 2646 attr->atype = XML_ATTRIBUTE_ID; |
| 2645 return(ret); | 2647 return(ret); |
| 2646 } | 2648 } |
| 2647 | 2649 |
| 2648 /** | 2650 /** |
| (...skipping 4394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7043 */ | 7045 */ |
| 7044 test_node->name = name; | 7046 test_node->name = name; |
| 7045 xmlFreeNode(test_node); | 7047 xmlFreeNode(test_node); |
| 7046 | 7048 |
| 7047 return(nb_valid_elements); | 7049 return(nb_valid_elements); |
| 7048 } | 7050 } |
| 7049 #endif /* LIBXML_VALID_ENABLED */ | 7051 #endif /* LIBXML_VALID_ENABLED */ |
| 7050 | 7052 |
| 7051 #define bottom_valid | 7053 #define bottom_valid |
| 7052 #include "elfgcchack.h" | 7054 #include "elfgcchack.h" |
| OLD | NEW |