]> git.ipfire.org Git - thirdparty/gettext.git/commit
cldr-plurals: Rewrite XML handling using libxml2
authorDaiki Ueno <ueno@gnu.org>
Tue, 17 Nov 2015 07:26:33 +0000 (16:26 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 17 Nov 2015 07:26:33 +0000 (16:26 +0900)
commitb780a0a376e725d62c154aa60a7cded6d7570b16
tree341a78ac56360134bda72b176f3d6d232d123572
parent26200674f0a9769db79d073fa9b692666e926c59
cldr-plurals: Rewrite XML handling using libxml2

* src/cldr-plurals.c: Include <libxml/tree.h> and
<libxml/parser.h>, instead of "libexpat-compat.h".
(extract_locale, extracted_rules, parser, logical_file_name)
(struct element_state, stack, stack_size, stack_depth)
(ensure_stack_size, start_element_handler, end_element_handler)
(character_data_handler): Remove.
(extract_rules): Rename from extract_rule and rewrite using DOM.
(main): Use extract_rules.
* src/Makefile.am (cldr_plurals_CFLAGS): Add $(INCXML).
gettext-tools/src/Makefile.am
gettext-tools/src/cldr-plurals.c