summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index f3ccd636b..2f7c4fefe 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -382,6 +382,7 @@ typedef struct cmdnam *Cmdnam;
typedef struct complist *Complist;
typedef struct conddef *Conddef;
typedef struct features *Features;
+typedef struct feature_enables *Feature_enables;
typedef struct funcstack *Funcstack;
typedef struct funcwrap *FuncWrap;
typedef struct hashnode *HashNode;
@@ -1247,6 +1248,16 @@ struct features {
int n_abstract;
};
+/*
+ * Structure describing enables for one feature.
+ */
+struct feature_enables {
+ /* String feature to enable (N.B. no leading +/- allowed) */
+ char *str;
+ /* Optional compiled pattern for str sans +/-, NULL for string match */
+ Patprog pat;
+};
+
/* C-function hooks */
typedef int (*Hookfn) _((Hookdef, void *));