mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 05:05:00 +00:00
tests: Add support for "CharData *storage" to ExtHdlrData
.. for an upcoming test in a follow-up commit
This commit is contained in:
parent
ad9e140612
commit
dae1cd5a1b
2 changed files with 3 additions and 2 deletions
|
@ -4076,7 +4076,7 @@ START_TEST(test_skipped_null_loaded_ext_entity) {
|
|||
= {"<!ENTITY % pe1 SYSTEM 'http://example.org/two.ent'>\n"
|
||||
"<!ENTITY % pe2 '%pe1;'>\n"
|
||||
"%pe2;\n",
|
||||
external_entity_null_loader};
|
||||
external_entity_null_loader, NULL};
|
||||
|
||||
XML_SetUserData(g_parser, &test_data);
|
||||
XML_SetParamEntityParsing(g_parser, XML_PARAM_ENTITY_PARSING_ALWAYS);
|
||||
|
@ -4094,7 +4094,7 @@ START_TEST(test_skipped_unloaded_ext_entity) {
|
|||
= {"<!ENTITY % pe1 SYSTEM 'http://example.org/two.ent'>\n"
|
||||
"<!ENTITY % pe2 '%pe1;'>\n"
|
||||
"%pe2;\n",
|
||||
NULL};
|
||||
NULL, NULL};
|
||||
|
||||
XML_SetUserData(g_parser, &test_data);
|
||||
XML_SetParamEntityParsing(g_parser, XML_PARAM_ENTITY_PARSING_ALWAYS);
|
||||
|
|
|
@ -325,6 +325,7 @@ extern int XMLCALL external_entity_devaluer(XML_Parser parser,
|
|||
typedef struct ext_hdlr_data {
|
||||
const char *parse_text;
|
||||
XML_ExternalEntityRefHandler handler;
|
||||
CharData *storage;
|
||||
} ExtHdlrData;
|
||||
|
||||
extern int XMLCALL external_entity_oneshot_loader(XML_Parser parser,
|
||||
|
|
Loading…
Add table
Reference in a new issue