diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-15 11:44:14 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-15 11:44:14 +0000 |
commit | 58f8f4eb033545fc0a8ed999e939775530c4298c (patch) | |
tree | 8a4d0bd660d9fe86a9f92ed57593574334391a5b /Build/source/texk/kpathsea/absolute.c | |
parent | b11a52a1f5540aa3c933056cf0232a7ac91ee1cb (diff) |
Partially revert the minor rewrite (r22435)
git-svn-id: svn://tug.org/texlive/trunk@22482 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/absolute.c')
-rw-r--r-- | Build/source/texk/kpathsea/absolute.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/absolute.c b/Build/source/texk/kpathsea/absolute.c index 9a2f130619d..6fc386b053b 100644 --- a/Build/source/texk/kpathsea/absolute.c +++ b/Build/source/texk/kpathsea/absolute.c @@ -31,9 +31,11 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok) #include <string.h> (void)kpse; /* currenty not used */ return strcspn (filename, "]>:") != strlen (filename); -#endif /* VMS */ +#else /* not VMS */ + boolean absolute; + boolean explicit_relative; - boolean absolute = IS_DIR_SEP (*filename) + absolute = IS_DIR_SEP (*filename) #ifdef DOSISH /* Novell allows non-alphanumeric drive letters. */ || (*filename && IS_DEVICE_SEP (filename[1])) @@ -48,7 +50,8 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok) || strchr (filename, ':') #endif /* AMIGA */ ; - boolean explicit_relative = relative_ok + explicit_relative + = relative_ok #ifdef AMIGA /* Leading / is like `../' on Unix and DOS. Allow Unix syntax, too, though, because of possible patch programs like @@ -62,6 +65,7 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok) /* FIXME: On UNIX an IS_DIR_SEP of any but the last character in the name implies relative. */ return absolute || explicit_relative; +#endif /* not VMS */ } #if defined (KPSE_COMPAT_API) |