]> git.ipfire.org Git - thirdparty/gettext.git/commit
search-path.c: Improve code style.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 02:40:13 +0000 (04:40 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 02:40:44 +0000 (04:40 +0200)
commitdfc0cfc3d0bc13d07b1eaf9c9b2500ab3f3b0105
tree4e956d4f6a41bd69c405a8df4b86e9980d9ec807
parentb9ad4a9aa0de747be7a9347d69d2f1eb04a0e517
search-path.c: Improve code style.

* gettext-tools/src/search-path.h (get_search_path): Clarify memory allocation.
* gettext-tools/src/search-path.c (struct path_array_ty): Add comment.
(foreach_elements): Fix comment.
(get_search_path): Improve comments. Perform each getenv() only once. Reduce
scope of variables. Fix gcc warning.
gettext-tools/src/search-path.c
gettext-tools/src/search-path.h