about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-08 12:07:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-08 12:07:04 +0000
commitfbfbc7636ffefd65884c3010d9529fc456b7820f (patch)
tree5f208a510b931bedc0e3b24f625378c7aa609b7b /Src/zsh.h
parent16c03b4cbf467b53840f8dcac0e8354f0eab880d (diff)
downloadzsh-fbfbc7636ffefd65884c3010d9529fc456b7820f.tar.gz
zsh-fbfbc7636ffefd65884c3010d9529fc456b7820f.tar.xz
zsh-fbfbc7636ffefd65884c3010d9529fc456b7820f.zip
24980: zmodload -mF
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 *));