summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/expand.c')
-rw-r--r--Build/source/texk/kpathsea/expand.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Build/source/texk/kpathsea/expand.c b/Build/source/texk/kpathsea/expand.c
index 943043a666c..232a1245a48 100644
--- a/Build/source/texk/kpathsea/expand.c
+++ b/Build/source/texk/kpathsea/expand.c
@@ -35,13 +35,13 @@ kpathsea_expand (kpathsea kpse, const_string s)
{
string var_expansion = kpathsea_var_expand (kpse, s);
string tilde_expansion = kpathsea_tilde_expand (kpse, var_expansion);
-
+
/* `kpse_var_expand' always gives us new memory; `kpse_tilde_expand'
doesn't, necessarily. So be careful that we don't free what we are
about to return. */
if (tilde_expansion != var_expansion)
free (var_expansion);
-
+
return tilde_expansion;
}
@@ -67,7 +67,7 @@ kpathsea_expand_kpse_dot (kpathsea kpse, string path)
#ifdef MSDOS
boolean malloced_kpse_dot = false;
#endif
-
+
if (kpse_dot == NULL)
return path;
ret = (string)xmalloc(1);
@@ -87,7 +87,7 @@ kpathsea_expand_kpse_dot (kpathsea kpse, string path)
}
#endif
- for (elt = kpathsea_path_element (kpse, path); elt;
+ for (elt = kpathsea_path_element (kpse, path); elt;
elt = kpathsea_path_element (kpse, NULL)) {
string save_ret = ret;
boolean ret_copied = true;
@@ -177,7 +177,7 @@ kpathsea_brace_expand (kpathsea kpse, const_string path)
string ret = (string)xmalloc (1);
*ret = 0;
- for (elt = kpathsea_path_element (kpse, xpath); elt;
+ for (elt = kpathsea_path_element (kpse, xpath); elt;
elt = kpathsea_path_element (kpse, NULL)) {
string save_ret = ret;
/* Do brace expansion first, so tilde expansion happens in {~ka,~kb}. */
@@ -222,12 +222,12 @@ kpathsea_path_expand (kpathsea kpse, const_string path)
ret = (string)xmalloc (1);
*ret = 0;
len = 0;
-
+
/* Expand variables and braces first. */
xpath = kpathsea_brace_expand (kpse, path);
/* Now expand each of the path elements, printing the results */
- for (elt = kpathsea_path_element (kpse, xpath); elt;
+ for (elt = kpathsea_path_element (kpse, xpath); elt;
elt = kpathsea_path_element (kpse, NULL)) {
str_llist_type *dirs;
@@ -237,7 +237,7 @@ kpathsea_path_expand (kpathsea kpse, const_string path)
/* Search the disk for all dirs in the component specified.
Be faster to check the database, but this is more reliable. */
- dirs = kpathsea_element_dirs (kpse, elt);
+ dirs = kpathsea_element_dirs (kpse, elt);
if (dirs && *dirs) {
str_llist_elt_type *dir;
@@ -294,7 +294,7 @@ static void expand_append (str_list_type* partial,
str_list_add(&tmp, new_string);
str_list_concat_elements(partial, tmp);
}
-
+
static str_list_type