summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/dir.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
commitff95b300f8204c215384425032124f206349bca2 (patch)
treeabdb4fced025cb35b974f9f0ba0c7d6c9fd01094 /Build/source/texk/kpathsea/dir.c
parent64252d2baf23bb55ca90c388215779740c73e695 (diff)
remove trailing spaces.
git-svn-id: svn://tug.org/texlive/trunk@18276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/dir.c')
-rw-r--r--Build/source/texk/kpathsea/dir.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/kpathsea/dir.c b/Build/source/texk/kpathsea/dir.c
index 1062f28f63f..9e3e83fabbd 100644
--- a/Build/source/texk/kpathsea/dir.c
+++ b/Build/source/texk/kpathsea/dir.c
@@ -29,7 +29,7 @@
boolean
kpathsea_dir_p (kpathsea kpse, const_string fn)
{
- /* FIXME : using the stat() replacement in gnuw32,
+ /* FIXME : using the stat() replacement in gnuw32,
we could avoid this win32 specific code. However,
I wonder if it would be as fast as this one is ?
*/
@@ -46,7 +46,7 @@ kpathsea_dir_p (kpathsea kpse, const_string fn)
fn, (int)(GetLastError()));
} else {
fprintf(stderr, "path %s %s a directory\n",
- fn , (fa & FILE_ATTRIBUTE_DIRECTORY) ?
+ fn , (fa & FILE_ATTRIBUTE_DIRECTORY) ?
"is" : "is not");
}
}
@@ -71,7 +71,7 @@ dir_p (const_string fn)
Return -1 if FN isn't a directory, else its number of links.
Duplicate the call to stat; no need to incur overhead of a function
call for that little bit of cleanliness.
-
+
The process is a bit different under Win32 : the first call
memoizes the nlinks value, the following ones retrieve it.
*/
@@ -79,7 +79,7 @@ int
kpathsea_dir_links (kpathsea kpse, const_string fn, long nlinks)
{
string *hash_ret;
-
+
if (kpse->link_table.size == 0)
kpse->link_table = hash_create (457);
@@ -91,7 +91,7 @@ kpathsea_dir_links (kpathsea kpse, const_string fn, long nlinks)
#endif
hash_ret = hash_lookup (kpse->link_table, fn);
-
+
#ifdef KPSE_DEBUG
if (KPATHSEA_DEBUG_P (KPSE_DEBUG_HASH))
kpse->debug_hash_lookup_int = false;
@@ -105,7 +105,7 @@ kpathsea_dir_links (kpathsea kpse, const_string fn, long nlinks)
#else
nlinks = (long) *hash_ret;
#endif
- } else {
+ } else {
#ifdef WIN32
/* Insert it only if we have some informations about it. */
if (nlinks) {
@@ -132,7 +132,7 @@ kpathsea_dir_links (kpathsea kpse, const_string fn, long nlinks)
#endif
}
- /* In any case, return nlinks
+ /* In any case, return nlinks
(either 0, the value inserted or the value retrieved. */
return nlinks;
}