cvs: TSRM / tsrm_virtual_cwd.c tsrm_virtual_cwd.h
| From: | Andi Gutmans | Date: | Fri, 20 Dec 2002 08:42:50 +0000 |
| Subject: | cvs: TSRM / tsrm_virtual_cwd.c tsrm_virtual_cwd.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-730@lists.php.net to get a copy of this message | ||
andi Fri Dec 20 03:42:50 2002 EDT
Modified files:
/TSRM tsrm_virtual_cwd.c tsrm_virtual_cwd.h
Log:
- Add comment in macro and remove some now unneeded code
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.41 TSRM/tsrm_virtual_cwd.c:1.42
--- TSRM/tsrm_virtual_cwd.c:1.41 Wed Nov 6 13:07:22 2002
+++ TSRM/tsrm_virtual_cwd.c Fri Dec 20 03:42:50 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.41 2002/11/06 18:07:22 iliaa Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.42 2002/12/20 08:42:50 andi Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -340,9 +340,6 @@
copy_amount = COPY_WHEN_ABSOLUTE(path_copy);
is_absolute = 1;
#ifdef TSRM_WIN32
- } else if (IS_UNC_PATH(path_copy, path_length)) {
- copy_amount = 2;
- is_absolute = 1;
} else if (IS_SLASH(path_copy[0])) {
copy_amount = 2;
#endif
Index: TSRM/tsrm_virtual_cwd.h
diff -u TSRM/tsrm_virtual_cwd.h:1.30 TSRM/tsrm_virtual_cwd.h:1.31
--- TSRM/tsrm_virtual_cwd.h:1.30 Thu Dec 19 19:41:41 2002
+++ TSRM/tsrm_virtual_cwd.h Fri Dec 20 03:42:50 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.h,v 1.30 2002/12/20 00:41:41 iliaa Exp $ */
+/* $Id: tsrm_virtual_cwd.h,v 1.31 2002/12/20 08:42:50 andi Exp $ */
#ifndef VIRTUAL_CWD_H
#define VIRTUAL_CWD_H
@@ -53,9 +53,8 @@
#define IS_SLASH_P(c) (*(c) == '/' || \
(*(c) == '\\' && !IsDBCSLeadByte(*(c-1))))
-/* COPY_WHEN_ABSOLUTE also takes path as argument because netware needs it
- * to account for volume name that is unique to NetWare absolute paths
- */
+/* COPY_WHEN_ABSOLUTE is 2 under Win32 because by chance both regular absolute paths
+ in the file system and UNC paths need copying of two characters */
#define COPY_WHEN_ABSOLUTE(path) 2
#define IS_UNC_PATH(path, len) \
(len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))