summaryrefslogtreecommitdiff
path: root/cmdtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdtree.c')
-rw-r--r--cmdtree.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmdtree.c b/cmdtree.c
index d52920f..ba8c514 100644
--- a/cmdtree.c
+++ b/cmdtree.c
@@ -39,6 +39,22 @@ static int sep_width;
static int bh, mw, mh;
static XIC xic;
+#define DEFCMD(b, nme, cmd) \
+ { .bind = (b), \
+ .name = (nme), \
+ .command = (cmd), \
+ .nchildren = 0, \
+ .children = NULL, \
+ },
+
+#define DEFPREFIX(b, nme, cs) \
+ { .bind = b, \
+ .name = nme, \
+ .command = 0, \
+ .nchildren = LENGTH(cs), \
+ .children = (cs), \
+ },
+
#include "cfg.h"
static int