| OLD | NEW |
| 1 /* | 1 /* |
| 2 * SAX.c : Old SAX v1 handlers to build a tree. | 2 * SAX.c : Old SAX v1 handlers to build a tree. |
| 3 * Deprecated except for compatibility | 3 * Deprecated except for compatibility |
| 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 <daniel@veillard.com> | 7 * Daniel Veillard <daniel@veillard.com> |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 * initxmlDefaultSAXHandler: | 34 * initxmlDefaultSAXHandler: |
| 35 * @hdlr: the SAX handler | 35 * @hdlr: the SAX handler |
| 36 * @warning: flag if non-zero sets the handler warning procedure | 36 * @warning: flag if non-zero sets the handler warning procedure |
| 37 * | 37 * |
| 38 * Initialize the default XML SAX version 1 handler | 38 * Initialize the default XML SAX version 1 handler |
| 39 * DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks | 39 * DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks |
| 40 */ | 40 */ |
| 41 void | 41 void |
| 42 initxmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr, int warning) | 42 initxmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr, int warning) |
| 43 { | 43 { |
| 44 | 44 |
| 45 if(hdlr->initialized == 1) | 45 if(hdlr->initialized == 1) |
| 46 return; | 46 return; |
| 47 | 47 |
| 48 hdlr->internalSubset = xmlSAX2InternalSubset; | 48 hdlr->internalSubset = xmlSAX2InternalSubset; |
| 49 hdlr->externalSubset = xmlSAX2ExternalSubset; | 49 hdlr->externalSubset = xmlSAX2ExternalSubset; |
| 50 hdlr->isStandalone = xmlSAX2IsStandalone; | 50 hdlr->isStandalone = xmlSAX2IsStandalone; |
| 51 hdlr->hasInternalSubset = xmlSAX2HasInternalSubset; | 51 hdlr->hasInternalSubset = xmlSAX2HasInternalSubset; |
| 52 hdlr->hasExternalSubset = xmlSAX2HasExternalSubset; | 52 hdlr->hasExternalSubset = xmlSAX2HasExternalSubset; |
| 53 hdlr->resolveEntity = xmlSAX2ResolveEntity; | 53 hdlr->resolveEntity = xmlSAX2ResolveEntity; |
| 54 hdlr->getEntity = xmlSAX2GetEntity; | 54 hdlr->getEntity = xmlSAX2GetEntity; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 hdlr->initialized = 1; | 171 hdlr->initialized = 1; |
| 172 } | 172 } |
| 173 | 173 |
| 174 #endif /* LIBXML_DOCB_ENABLED */ | 174 #endif /* LIBXML_DOCB_ENABLED */ |
| 175 | 175 |
| 176 #endif /* LIBXML_SAX1_ENABLED */ | 176 #endif /* LIBXML_SAX1_ENABLED */ |
| 177 | 177 |
| 178 #define bottom_SAX | 178 #define bottom_SAX |
| 179 #include "elfgcchack.h" | 179 #include "elfgcchack.h" |
| 180 #endif /* LIBXML_LEGACY_ENABLED */ | 180 #endif /* LIBXML_LEGACY_ENABLED */ |
| OLD | NEW |