diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-20 00:41:41 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-20 00:41:41 +0000 |
commit | 709681e085123eac3cab82cd6c34c5a31520a33f (patch) | |
tree | 1436f9d1c64edd6703af83bf7e2b9f9b739f53c0 | |
parent | a4d56067e2f02deb691f0aa16be5b4cd8c50b430 (diff) | |
download | php-git-709681e085123eac3cab82cd6c34c5a31520a33f.tar.gz |
Make IS_ABSOLUTE_PATH use the IS_UNC_PATH macro rather then duplicate the
code in the IS_UNC_PATH macro.
-rw-r--r-- | TSRM/tsrm_virtual_cwd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h index 5726024a54..47bc587da8 100644 --- a/TSRM/tsrm_virtual_cwd.h +++ b/TSRM/tsrm_virtual_cwd.h @@ -57,10 +57,10 @@ typedef unsigned short mode_t; * to account for volume name that is unique to NetWare absolute paths */ #define COPY_WHEN_ABSOLUTE(path) 2 -#define IS_ABSOLUTE_PATH(path, len) \ - (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || (IS_SLASH(path[0]) && IS_SLASH(path[1])))) #define IS_UNC_PATH(path, len) \ (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) +#define IS_ABSOLUTE_PATH(path, len) \ + (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len))) #elif defined(NETWARE) #ifdef HAVE_DIRENT_H |