pajoye Thu Jan 1 12:32:49 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/win32 glob.c glob.h
Log:
- MFH: expose glob and globfree on wi ndows, can be used by shared ext (core
or extern)
http://cvs.php.net/viewvc.cgi/php-src/win32/glob.c?r1=1.6.6.1&r2=1.6.6.1.2.1&diff_format=u
Index: php-src/win32/glob.c
diff -u php-src/win32/glob.c:1.6.6.1 php-src/win32/glob.c:1.6.6.1.2.1
--- php-src/win32/glob.c:1.6.6.1 Fri Nov 10 09:56:16 2006
+++ php-src/win32/glob.c Thu Jan 1 12:32:48 2009
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
-/* $Id: glob.c,v 1.6.6.1 2006/11/10 09:56:16 dmitry Exp $ */
+/* $Id: glob.c,v 1.6.6.1.2.1 2009/01/01 12:32:48 pajoye Exp $ */
/*
* glob(3) -- a superset of the one defined in POSIX 1003.2.
@@ -159,7 +159,7 @@
static void qprintf(const char *, Char *);
#endif
-int
+PHPAPI int
glob(pattern, flags, errfunc, pglob)
const char *pattern;
int flags, (*errfunc)(const char *, int);
@@ -811,7 +811,7 @@
}
/* Free allocated data belonging to a glob_t structure. */
-void
+PHPAPI void
globfree(pglob)
glob_t *pglob;
{
http://cvs.php.net/viewvc.cgi/php-src/win32/glob.h?r1=1.1.24.1&r2=1.1.24.2&diff_format=u
Index: php-src/win32/glob.h
diff -u php-src/win32/glob.h:1.1.24.1 php-src/win32/glob.h:1.1.24.2
--- php-src/win32/glob.h:1.1.24.1 Sat Aug 23 19:22:10 2008
+++ php-src/win32/glob.h Thu Jan 1 12:32:49 2009
@@ -1,4 +1,4 @@
-/* $Id: glob.h,v 1.1.24.1 2008/08/23 19:22:10 pajoye Exp $ */
+/* $Id: glob.h,v 1.1.24.2 2009/01/01 12:32:49 pajoye Exp $ */
/* OpenBSD: glob.h,v 1.7 2002/02/17 19:42:21 millert Exp */
/* NetBSD: glob.h,v 1.5 1994/10/26 00:55:56 cgd Exp */
@@ -96,7 +96,7 @@
#define GLOB_ABEND GLOB_ABORTED
BEGIN_EXTERN_C()
-int glob(const char *, int, int (*)(const char *, int), glob_t *);
-void globfree(glob_t *);
+PHPAPI int glob(const char *, int, int (*)(const char *, int), glob_t *);
+PHPAPI void globfree(glob_t *);
END_EXTERN_C()
#endif /* !_GLOB_H_ */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php