summaryrefslogtreecommitdiff
path: root/xs_glob.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_glob.h')
-rw-r--r--xs_glob.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xs_glob.h b/xs_glob.h
index 795abd9..2da3729 100644
--- a/xs_glob.h
+++ b/xs_glob.h
@@ -4,7 +4,7 @@
4 4
5#define _XS_GLOB_H 5#define _XS_GLOB_H
6 6
7d_char *xs_glob_n(const char *spec, int basename, int reverse, int max); 7xs_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
15d_char *xs_glob_n(const char *spec, int basename, int reverse, int max) 15xs_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;