summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/kpsewhich.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-27 16:58:57 +0000
committerKarl Berry <karl@freefriends.org>2018-01-27 16:58:57 +0000
commit14a7e126d73445bb27eed49cf89c502f142950b8 (patch)
tree27df18407c5b0b16ec4543b4d94c1a7d1c0927fe /Build/source/texk/kpathsea/kpsewhich.c
parentab347d35d8af61e0935b23cd59beeaba0255e07f (diff)
STR_LIST_EMPTY, STR_LIST_FIRST_ELT convenience macros
git-svn-id: svn://tug.org/texlive/trunk@46459 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/kpsewhich.c')
-rw-r--r--Build/source/texk/kpathsea/kpsewhich.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c
index 4271bc1a3e7..41862d7ba9e 100644
--- a/Build/source/texk/kpathsea/kpsewhich.c
+++ b/Build/source/texk/kpathsea/kpsewhich.c
@@ -1,7 +1,7 @@
/* kpsewhich -- standalone path lookup and variable expansion for Kpathsea.
Ideas from Thomas Esser, Pierre MacKay, and many others.
- Copyright 1995-2017 Karl Berry & Olaf Weber.
+ Copyright 1995-2018 Karl Berry & Olaf Weber.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -425,7 +425,7 @@ lookup (kpathsea kpse, string name)
}
/* Filter by subdirectories, if specified. */
- if (STR_LIST_LENGTH (subdir_paths) > 0) {
+ if (!STR_LIST_EMPTY (subdir_paths)) {
#if defined(WIN32)
string *new_list = kpathsea_subdir_match (kpse, subdir_paths, ret_list);
#else
@@ -845,7 +845,7 @@ main (int argc, string *argv)
/* --subdir must imply --all, since we filter here after doing the
search, rather than inside the search itself. */
- if (STR_LIST_LENGTH (subdir_paths) > 0) {
+ if (!STR_LIST_EMPTY (subdir_paths)) {
show_all = 1;
}