svn: /pecl/apc/trunk/ apc.c
| From: | Kalle Sommer Nielsen | Date: | Fri, 13 Aug 2010 03:21:54 +0000 |
| Subject: | svn: /pecl/apc/trunk/ apc.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-14589@lists.php.net to get a copy of this message | ||
kalle Fri, 13 Aug 2010 03:21:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=302170
Log:
Rename apc_win32_restat() to apc_restat() and declare it as static as we only use it in apc.c
Changed paths:
U pecl/apc/trunk/apc.c
Modified: pecl/apc/trunk/apc.c
===================================================================
--- pecl/apc/trunk/apc.c 2010-08-12 23:12:23 UTC (rev 302169)
+++ pecl/apc/trunk/apc.c 2010-08-13 03:21:54 UTC (rev 302170)
@@ -223,8 +223,8 @@
/* {{{ apc_win32_restat */
-#ifdef PHP_WIN32
-int apc_win32_restat(apc_fileinfo_t *fileinfo)
+#ifndef PHP_WIN32
+static int apc_restat(apc_fileinfo_t *fileinfo)
{
HANDLE hFile;
BY_HANDLE_FILE_INFORMATION hInfo;
@@ -254,10 +254,7 @@
return 0;
}
#else
-int apc_win32_restat(apc_fileinfo_t *fileinfo)
-{
- return 0;
-}
+# define apc_restat(fileinfo) 0
#endif
/* }}} */
@@ -294,7 +291,7 @@
if(wrapper != &php_plain_files_wrapper) {
if(APC_URL_STAT(wrapper, path_for_open, &fileinfo->st_buf) == 0) {
fileinfo->fullpath = COPY_IF_CHANGED(path_for_open);
- return apc_win32_restat(fileinfo);
+ return apc_restat(fileinfo);
}
return -1; /* cannot stat */
}
@@ -302,7 +299,7 @@
if (IS_ABSOLUTE_PATH(path_for_open, strlen(path_for_open)) &&
APC_URL_STAT(wrapper, path_for_open, &fileinfo->st_buf) == 0) {
fileinfo->fullpath = COPY_IF_CHANGED(path_for_open);
- return apc_win32_restat(fileinfo);
+ return apc_restat(fileinfo);
}
paths = apc_tokenize(path, DEFAULT_DIR_SEPARATOR TSRMLS_CC);
@@ -344,7 +341,7 @@
}
apc_efree(paths TSRMLS_CC);
- return found ? apc_win32_restat(fileinfo) : -1;
+ return found ? apc_restat(fileinfo) : -1;
}
/* }}} */