]> git.ipfire.org Git - thirdparty/gettext.git/commit
search-path: Don't relocate dirs given as envvar
authorDaiki Ueno <ueno@gnu.org>
Fri, 20 May 2016 06:47:58 +0000 (15:47 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 20 May 2016 06:52:20 +0000 (15:52 +0900)
commita83370b0514c68aeda8a21f0019a70a7b5b4338f
tree961a8e34481186297325428a5a5caa1794eac4cc
parent246b06a664f5f9f9dd0acca65b6b636a90bcd99b
search-path: Don't relocate dirs given as envvar

* gettext-tools/src/search-path.c (foreach_function_ty): New typedef.
(path_array_ty): New struct.
(foreach_components, increment, fill): New functions.
(get_search_path): Rewrite using those functions.  Relocate
GETTEXTDATADIR here.
* gettext-tools/src/search-path.h (get_search_path): Update documentation.
* gettext-tools/src/msgfmt.c (main): Don't relocate directories in ITS
search path.
* gettext-tools/src/xgettext.c (main): Likewise.
gettext-tools/src/msgfmt.c
gettext-tools/src/search-path.c
gettext-tools/src/search-path.h
gettext-tools/src/xgettext.c