Commit Graph

2435 Commits

Author SHA1 Message Date
Rhodri James
bd12cbc629 Remove CharData_{Append|Check}String functions
Mixing XML_Char and char strings is a bad idea, and trying to put
chars into an XML_Char array tends not to work as you might hope.
Removing these functions removes the temptation to break builds.
2017-08-29 23:21:51 +02:00
Rhodri James
e9aebf0a7f Use correct format for XML_Char in error output
Only actually invoked when XML_Char is char, but it keeps the
compiler quiet
2017-08-29 23:19:35 +02:00
Rhodri James
a0fa0f80b8 Fix test_default_current() to work in UTF-16 builds 2017-08-29 23:19:35 +02:00
Rhodri James
0766d6c24c Fix test_end_element_events() to work in UTF-16 builds 2017-08-29 23:19:35 +02:00
Rhodri James
234a974546 Fix test_line_and_column_numbers_inside_handlers() for UTF-16
Use structured data in the event handlers for this test to avoid
problems converting char strings to XML_Char strings.
2017-08-29 23:19:34 +02:00
Sebastian Pipping
b1ef760e0e CMake: Add missing integration of tests/structdata.c 2017-08-29 23:19:34 +02:00
Rhodri James
8b64146e21 Add support for structured data in test handlers 2017-08-29 23:19:34 +02:00
Rhodri James
38166e1f54 Fix test_alloc_realloc_nested_groups() to work in UTF-16 builds 2017-08-29 23:13:16 +02:00
Rhodri James
4f89cb88ac Fix test_alloc_nested_groups() to work in UTF-16 builds 2017-08-29 23:13:16 +02:00
Rhodri James
881611c97e Fix test_nsalloc_long_attr_prefix() to work in UTF-16 2017-08-29 23:13:16 +02:00
Rhodri James
826a0f791c Fix test_nsalloc_prefixed_element() to work in UTF-16 builds 2017-08-29 23:13:16 +02:00
Rhodri James
ee626f7c80 Fix test_nsalloc_long_systemid_in_ext() to work in UTF-16 builds 2017-08-29 23:13:16 +02:00
Rhodri James
356e9d1c26 Fix test_nsalloc_long_default_in_ext() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
77c89db91d Fix test_nsalloc_realloc_long_context_in_dtd() to work in UTF-16 2017-08-29 23:13:15 +02:00
Rhodri James
51b90a3d54 Fix test_nsalloc_realloc_long_ge_name() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
586dcbac54 Fix context_realloc_test() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
f4f5413a6d Fix test_nsalloc_long_context() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
d8dd851ecb Fix test_nsalloc_long_element() to work for UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
3a1b4a1940 Fix test_alloc_long_notation() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
29667dacba Fix test_alloc_long_base() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
0cba195e7c Fix test_alloc_set_base() to work for UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
b22dc0b44d Fix test_alloc_dtd_default_handling() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
84c40c5e61 Fix unknown_released_encoding_handler() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
de15bfd1dc Fix test_misc_utf16le() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
e1d864007a Fix test_misc_attribute_leak() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
60942737e2 Fix test_misc_version() for various XML_UNICODE issues. 2017-08-29 23:13:15 +02:00
Rhodri James
d2ba5ef545 Fix test_misc_alloc_create_parser_with_encoding() to work in UTF-16 2017-08-29 23:13:15 +02:00
Rhodri James
1f5814a9bf Fix test_ns_utf16_doctype() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
b96f6674c2 Fix test_ns_utf16_element_leafname() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
dc5649b42b Fix test_ns_utf16_leafname() to work for UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
5042762639 Fix test_ns_unknown_encoding_success() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
17fbf194f8 Fix test_ns_long_element() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
d6639e21e4 Fix test_ns_prefix_with_empty_uri_4() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
4711ef3140 Don't mix character types in namespace overwrite tests 2017-08-29 23:13:15 +02:00
Rhodri James
fdd120da85 Fix test_return_ns_triplet() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
879fab5049 Fix triplet checker functions to use XML_Char correctly 2017-08-29 23:13:15 +02:00
Rhodri James
c5c02d745f Fix namespace test setup routine to work properly in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
e881a0451f Fix test_entity_public_utf16_le() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
d7f2f4413a Fix test_entity_public_utf16_be() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
a33f36ca15 Fix test_entity_in_utf16_le_attr() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
3d96ba9b56 Fix test_entity_in_utf16_be_attr() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
8780995416 Fix test_utf16_pe() to work for UTF-16 builds of the library 2017-08-29 23:13:15 +02:00
Rhodri James
ff46a1997c Fix accumulate_entity_decl() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
a7a416089d Fix test_utf16_second_attr() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
ea71c5d57c Fix test_utf16_attribute() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
b376732a00 Fix test_trailing_spaces_in_elements() to work in UTF-16 builds 2017-08-29 23:13:14 +02:00
Rhodri James
9ea45fc6b0 Fix record_element_end_handler() to work for UTF-16 builds 2017-08-29 23:13:14 +02:00
Rhodri James
f7434bd86e Fix test_utf8_in_cdata_section_2() to work in UTF-16 builds 2017-08-29 23:13:14 +02:00
Rhodri James
a507812d34 Fix test_long_ascii_attribute() to work in UTF-16 builds 2017-08-29 23:13:14 +02:00
Rhodri James
e5dc7c4a3f Fix test_long_latin1_attribute() to work in UTF-16 builds 2017-08-29 23:13:14 +02:00