]> granicus.if.org Git - php/commitdiff
Make IS_ABSOLUTE_PATH use the IS_UNC_PATH macro rather then duplicate the
authorIlia Alshanetsky <iliaa@php.net>
Fri, 20 Dec 2002 00:41:41 +0000 (00:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 20 Dec 2002 00:41:41 +0000 (00:41 +0000)
code in the IS_UNC_PATH macro.

TSRM/tsrm_virtual_cwd.h

index 5726024a5408037b3cc044476e0b15883c58aa69..47bc587da87e93b8f859d52230729fd403d7de32 100644 (file)
@@ -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