diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 21:02:42 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 21:02:42 -0700 |
| commit | bd8c223756d2f912526ecef53bae0cc8e0c63442 (patch) | |
| tree | 4e0e80ebafc5c72e1515ecb14d5f30838ac2aa45 | |
| parent | 4e47fad43c9f575460dd01f4e0f9f69052128ab0 (diff) | |
these macros don't need to be in cfg.def.h
| -rw-r--r-- | cfg.def.h | 16 | ||||
| -rw-r--r-- | cmdtree.c | 16 |
2 files changed, 16 insertions, 16 deletions
@@ -39,22 +39,6 @@ static struct scheme schemes[SchemeLast] = { }, }; -#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), \ - }, - static struct command test_commands[] = { DEFCMD("t", "test command", "echo ok") }; @@ -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 |
