diff options
Diffstat (limited to 'xs_glob.h')
| -rw-r--r-- | xs_glob.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #define _XS_GLOB_H | 5 | #define _XS_GLOB_H |
| 6 | 6 | ||
| 7 | d_char *xs_glob_n(const char *spec, int basename, int reverse, int max); | 7 | xs_list *xs_glob_n(const char *spec, int basename, int reverse, int max); |
| 8 | #define xs_glob(spec, basename, reverse) xs_glob_n(spec, basename, reverse, XS_ALL) | 8 | #define xs_glob(spec, basename, reverse) xs_glob_n(spec, basename, reverse, XS_ALL) |
| 9 | 9 | ||
| 10 | 10 | ||
| @@ -12,11 +12,11 @@ d_char *xs_glob_n(const char *spec, int basename, int reverse, int max); | |||
| 12 | 12 | ||
| 13 | #include <glob.h> | 13 | #include <glob.h> |
| 14 | 14 | ||
| 15 | d_char *xs_glob_n(const char *spec, int basename, int reverse, int max) | 15 | xs_list *xs_glob_n(const char *spec, int basename, int reverse, int max) |
| 16 | /* does a globbing and returns the found files */ | 16 | /* does a globbing and returns the found files */ |
| 17 | { | 17 | { |
| 18 | glob_t globbuf; | 18 | glob_t globbuf; |
| 19 | d_char *list = xs_list_new(); | 19 | xs_list *list = xs_list_new(); |
| 20 | 20 | ||
| 21 | if (glob(spec, 0, NULL, &globbuf) == 0) { | 21 | if (glob(spec, 0, NULL, &globbuf) == 0) { |
| 22 | int n; | 22 | int n; |