Skip to content

Commit

Permalink
- MFH: expose glob and globfree on wi ndows, can be used by shared ex…
Browse files Browse the repository at this point in the history
…t (core or extern)
  • Loading branch information
pierrejoye committed Jan 1, 2009
1 parent 2f2d910 commit 438c4cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions win32/glob.c
Expand Up @@ -159,7 +159,7 @@ static int match(Char *, Char *, Char *);
static void qprintf(const char *, Char *); static void qprintf(const char *, Char *);
#endif #endif


int PHPAPI int
glob(pattern, flags, errfunc, pglob) glob(pattern, flags, errfunc, pglob)
const char *pattern; const char *pattern;
int flags, (*errfunc)(const char *, int); int flags, (*errfunc)(const char *, int);
Expand Down Expand Up @@ -811,7 +811,7 @@ match(name, pat, patend)
} }


/* Free allocated data belonging to a glob_t structure. */ /* Free allocated data belonging to a glob_t structure. */
void PHPAPI void
globfree(pglob) globfree(pglob)
glob_t *pglob; glob_t *pglob;
{ {
Expand Down
4 changes: 2 additions & 2 deletions win32/glob.h
Expand Up @@ -96,7 +96,7 @@ typedef struct {
#define GLOB_ABEND GLOB_ABORTED #define GLOB_ABEND GLOB_ABORTED


BEGIN_EXTERN_C() BEGIN_EXTERN_C()
int glob(const char *, int, int (*)(const char *, int), glob_t *); PHPAPI int glob(const char *, int, int (*)(const char *, int), glob_t *);
void globfree(glob_t *); PHPAPI void globfree(glob_t *);
END_EXTERN_C() END_EXTERN_C()
#endif /* !_GLOB_H_ */ #endif /* !_GLOB_H_ */

0 comments on commit 438c4cf

Please sign in to comment.