Browse Source

- MFH: expose glob and globfree on wi ndows, can be used by shared ext (core or extern)

experimental/5.3-FPM
Pierre Joye 18 years ago
parent
commit
438c4cfacc
  1. 4
      win32/glob.c
  2. 4
      win32/glob.h

4
win32/glob.c

@ -159,7 +159,7 @@ static int match(Char *, Char *, Char *);
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 @@ match(name, pat, patend)
}
/* Free allocated data belonging to a glob_t structure. */
void
PHPAPI void
globfree(pglob)
glob_t *pglob;
{

4
win32/glob.h

@ -96,7 +96,7 @@ typedef struct {
#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_ */
Loading…
Cancel
Save