diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-18 07:33:55 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-18 07:33:55 +0000 |
commit | f7cc34f8acc640d74638557768eadeb31507f9f2 (patch) | |
tree | 1761508450a25660beab152f467d4544b80888bc /Build/source/texk/kpathsea/absolute.c | |
parent | c5774c08d19e9c46c3d2787a280f7ab616f2efed (diff) |
minor kpathsea cleanup
git-svn-id: svn://tug.org/texlive/trunk@17083 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/absolute.c')
-rw-r--r-- | Build/source/texk/kpathsea/absolute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/absolute.c b/Build/source/texk/kpathsea/absolute.c index 01f9f0eca08..0ff3aaa3c88 100644 --- a/Build/source/texk/kpathsea/absolute.c +++ b/Build/source/texk/kpathsea/absolute.c @@ -1,6 +1,6 @@ /* absolute.c: test if a filename is absolute or explicitly relative. - Copyright 1993, 1994, 1995, 2008, 2009 Karl Berry. + Copyright 1993, 1994, 1995, 2008, 2009, 2010 Karl Berry. Copyright 1997, 2002, 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -27,9 +27,9 @@ boolean kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok) { -/* (void)kpse; */ /* currenty not used */ #ifdef VMS #include <string.h> + (void)kpse; /* currenty not used */ return strcspn (filename, "]>:") != strlen (filename); #else /* not VMS */ boolean absolute = IS_DIR_SEP (*filename) @@ -53,6 +53,7 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok) && (*filename == '.' && (IS_DIR_SEP (filename[1]) || (filename[1] == '.' && IS_DIR_SEP (filename[2])))); + (void)kpse; /* currenty not used */ /* FIXME: On UNIX an IS_DIR_SEP of any but the last character in the name implies relative. */ return absolute || explicit_relative; |