]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Support per-file options wip/ueno/xgettext-suboptions
authorDaiki Ueno <ueno@gnu.org>
Wed, 2 Mar 2016 10:18:40 +0000 (19:18 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 2 Mar 2016 10:18:40 +0000 (19:18 +0900)
commitde4796a11dce1e99f4e0bb680a07ebdad8023954
tree3bb3ee793f0c97150826d7342c682edaed83ee48
parentb0af5330b31f467d24f009e989428a9cf8d6ffe2
xgettext: Support per-file options

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add getsubopt.
* gettext-tools/src/xgettext.c: Include <fnmatch.h>.
(long_options): Add --options.
(main): Handle --options.  Factor out language guessing to...
(filename_to_language): ...here.
(usage): Mention --options.
(enum suboption_type): New enum.
(suboption_tokens): New variable.
(struct suboption_ty, struct suboption_list_ty,
struct suboption_list_list_ty): New struct.
(suboption_list_destroy, suboption_list_insert,
suboption_list_list_destroy, suboption_list_list_insert): New function.
(suboptions): New variable.
autogen.sh
gettext-tools/src/xgettext.c