Refactor: move element event handlers together
@@ -1192,6 +1192,14 @@ END_TEST
* Element event tests.
*/
+static void XMLCALL
+start_element_event_handler(void *userData,
+ const XML_Char *name,
+ const XML_Char **UNUSED_P(atts))
+{
+ CharData_AppendXMLChars((CharData *)userData, name, -1);
+}
+
static void XMLCALL
end_element_event_handler(void *userData, const XML_Char *name)
{
@@ -6937,14 +6945,6 @@ START_TEST(test_ns_utf16_leafname)
}
END_TEST
-static void XMLCALL
-start_element_event_handler(void *userData,
- const XML_Char *name,
- const XML_Char **UNUSED_P(atts))
-{
- CharData_AppendXMLChars((CharData *)userData, name, -1);
-}
-
START_TEST(test_ns_utf16_element_leafname)
{
const char text[] =
