diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-18 11:29:15 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:09 +0200 |
commit | f1d3290e2043a85fcba1a7f6107c10fc16fcc508 (patch) | |
tree | a59c1050a91df71e29958b0ea4018bf785ced334 /gettext-tools/src/x-po.c | |
parent | 412d2b4a7ba134358d037fee01d986b5c3be3f20 (diff) | |
download | external_gettext-f1d3290e2043a85fcba1a7f6107c10fc16fcc508.zip external_gettext-f1d3290e2043a85fcba1a7f6107c10fc16fcc508.tar.gz external_gettext-f1d3290e2043a85fcba1a7f6107c10fc16fcc508.tar.bz2 |
Create an object-oriented interface for the catalog input formats.
Diffstat (limited to 'gettext-tools/src/x-po.c')
-rw-r--r-- | gettext-tools/src/x-po.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gettext-tools/src/x-po.c b/gettext-tools/src/x-po.c index c4e6eab..a33490e 100644 --- a/gettext-tools/src/x-po.c +++ b/gettext-tools/src/x-po.c @@ -33,6 +33,9 @@ #include "x-stringtable.h" #include "xalloc.h" #include "read-catalog.h" +#include "read-po.h" +#include "read-properties.h" +#include "read-stringtable.h" #include "po-lex.h" #include "gettext.h" @@ -140,7 +143,7 @@ static default_catalog_reader_class_ty extract_methods = static void extract (FILE *fp, const char *real_filename, const char *logical_filename, - input_syntax_ty syntax, + catalog_input_format_ty input_syntax, msgdomain_list_ty *mdlp) { default_catalog_reader_ty *pop; @@ -156,7 +159,7 @@ extract (FILE *fp, pop->mdlp = NULL; pop->mlp = mdlp->item[0]->messages; catalog_reader_parse ((abstract_catalog_reader_ty *) pop, fp, real_filename, - logical_filename, syntax); + logical_filename, input_syntax); catalog_reader_free ((abstract_catalog_reader_ty *) pop); if (header_charset != NULL) @@ -208,7 +211,7 @@ extract_po (FILE *fp, flag_context_list_table_ty *flag_table, msgdomain_list_ty *mdlp) { - extract (fp, real_filename, logical_filename, syntax_po, mdlp); + extract (fp, real_filename, logical_filename, &input_format_po, mdlp); } @@ -218,7 +221,8 @@ extract_properties (FILE *fp, flag_context_list_table_ty *flag_table, msgdomain_list_ty *mdlp) { - extract (fp, real_filename, logical_filename, syntax_properties, mdlp); + extract (fp, real_filename, logical_filename, &input_format_properties, + mdlp); } @@ -228,5 +232,6 @@ extract_stringtable (FILE *fp, flag_context_list_table_ty *flag_table, msgdomain_list_ty *mdlp) { - extract (fp, real_filename, logical_filename, syntax_stringtable, mdlp); + extract (fp, real_filename, logical_filename, &input_format_stringtable, + mdlp); } |