summaryrefslogtreecommitdiff
path: root/util/kconfig/zconf.l
diff options
context:
space:
mode:
Diffstat (limited to 'util/kconfig/zconf.l')
-rw-r--r--util/kconfig/zconf.l16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/kconfig/zconf.l b/util/kconfig/zconf.l
index 6c62d93b4f..b19e4de43c 100644
--- a/util/kconfig/zconf.l
+++ b/util/kconfig/zconf.l
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <wordexp.h>
#include "lkc.h"
@@ -336,6 +337,21 @@ void zconf_nextfile(const char *name)
current_file = file;
}
+void zconf_nextfiles(const char *wildcard)
+{
+ wordexp_t p;
+ char **w;
+ int i;
+
+ wordexp(wildcard, &p, 0);
+ w = p.we_wordv;
+
+ for (i = p.we_wordc - 1; i >= 0; i--)
+ zconf_nextfile(w[i]);
+
+ wordfree(&p);
+}
+
static void zconf_endfile(void)
{
struct buffer *parent;