diff options
author | Karl Berry <karl@freefriends.org> | 2009-12-05 01:57:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-12-05 01:57:10 +0000 |
commit | 755f951aa93a0945cf3c36c8283ae2548188fcd7 (patch) | |
tree | 1a02d57c4e338458f6c827145f7bf15b30875c54 /Build | |
parent | 2bc6c916479d1a8e53dd74e7b50ed0617064ed64 (diff) |
more doc fixes/formatting
git-svn-id: svn://tug.org/texlive/trunk@16300 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/kpathsea/pathsearch.c | 23 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/tex-file.c | 2 |
2 files changed, 12 insertions, 13 deletions
diff --git a/Build/source/texk/kpathsea/pathsearch.c b/Build/source/texk/kpathsea/pathsearch.c index b7f92cb1c53..1ea9300c464 100644 --- a/Build/source/texk/kpathsea/pathsearch.c +++ b/Build/source/texk/kpathsea/pathsearch.c @@ -51,7 +51,7 @@ static void log_search (kpathsea kpse, str_list_type filenames) { - if (kpse->log_opened==false) { + if (kpse->log_opened == false) { /* Get name from either envvar or config file. */ string log_name = kpathsea_var_value (kpse, "TEXMFLOG"); kpse->log_opened = true; @@ -368,7 +368,7 @@ search (kpathsea kpse, const_string path, const_string original_name, /* The very first search is for texmf.cnf. We can't log that, since we want to allow setting TEXMFLOG in texmf.cnf. */ - if (kpse->followup_search==false) { + if (kpse->followup_search == false) { kpse->followup_search = true; } else { /* Record the filenames we found, if desired. And wrap them in a @@ -442,16 +442,15 @@ search_list (kpathsea kpse, const_string path, const_string* names, /* First catch any absolute or explicit relative names. */ for (namep = names; *namep; namep++) { - if (kpathsea_absolute_p(kpse, *namep, true)) { - if (kpathsea_readable_file(kpse, *namep)) { - str_list_add(&ret_list, xstrdup(*namep)); - /* I know, I know... */ - if (!all) - goto out; - } - } else { - all_absolute = false; + if (kpathsea_absolute_p (kpse, *namep, true)) { + if (kpathsea_readable_file (kpse, *namep)) { + str_list_add (&ret_list, xstrdup(*namep)); + if (!all) + goto out; } + } else { + all_absolute = false; + } } /* Shortcut: if we were only given absolute/explicit relative names, we can skip the rest. Typically, if one name is absolute, they @@ -515,7 +514,7 @@ search_list (kpathsea kpse, const_string path, const_string* names, || (all && STR_LIST_LAST_ELT (ret_list) != NULL)) str_list_add (&ret_list, NULL); - if (kpse->followup_search==false) { + if (kpse->followup_search == false) { kpse->followup_search = true; } else { /* Record the filenames we found, if desired. And wrap them in a diff --git a/Build/source/texk/kpathsea/tex-file.c b/Build/source/texk/kpathsea/tex-file.c index 27c2c27146a..354ed732fc0 100644 --- a/Build/source/texk/kpathsea/tex-file.c +++ b/Build/source/texk/kpathsea/tex-file.c @@ -385,7 +385,7 @@ init_maketex (kpathsea kpse, kpse_file_format_type fmt, kpse_format_info_type *f = &(kpse->format_info[fmt]); const_string prog = f->program ? f->program : dflt_prog; /* mktexpk */ string PROG = uppercasify (prog); /* MKTEXPK */ - string progval = kpathsea_var_value (kpse, PROG); /* ENV/cnf{"MKTEXPK"} */ + string progval = kpathsea_var_value (kpse, PROG); /* $ENV/cnf{"MKTEXPK"} */ const_string arg; va_list ap; |