commit - 367b454d5a99605f871582b08e6f3fb3797168c9
commit + cbe2da3279946cae9bb365a672e6600268de9cce
blob - 9173f515191a99a0399b7397fb5ae946cbf35ceb
blob + 31e87f6451b3f66922e5ebf00d94b12076a5ec36
--- cmd.h
+++ cmd.h
struct buffer;
+struct cmd {
+ const char *cmd;
+ void (*fn)(struct buffer *);
+ const char *descr;
+};
+extern struct cmd cmds[];
+
#define CMD(fnname, descr) void fnname(struct buffer *)
#define DEFALIAS(s, d) /* nothing */
blob - ded602c8ff80b3d4913b94345460da61c038babd
blob + e633b929ad6e16c34ee3eda17e47d03f3da9cc3f
--- compl.c
+++ compl.c
#include <stdlib.h>
#include "certs.h"
+#include "cmd.h"
#include "compl.h"
#include "hist.h"
#include "telescope.h"
blob - f094c9a83f03a21c9e04f535a7593ccbd7ce34d8
blob + 48302d840847290cf2eac41801438149ab04f62f
--- help.c
+++ help.c
#include <stdlib.h>
#include <string.h>
+#include "cmd.h"
#include "telescope.h"
#include "ui.h"
blob - f78f334e0407afb521afbbd2fc3dd9758aa9110a
blob + a4ce9d23907c107895d8f74e3b8152dc8313e58d
--- minibuffer.c
+++ minibuffer.c
#include <string.h>
#include "certs.h"
+#include "cmd.h"
#include "fs.h"
#include "hist.h"
#include "iri.h"
blob - 6689475de65ee43c5d9f3483d5b726dd77bfafc9
blob + 3bf5a9dcaa9acfa615c1571b816f8a2bbb0cd0c4
--- parse.y
+++ parse.y
%{
+#include "cmd.h"
#include "keymap.h"
#include "telescope.h"
#include "utils.h"
blob - 123b174663fc29939e6b6c174d2ca439073debb0
blob + 5f8516da9397241e1e5bc081f52256d0250b2acb
--- telescope.h
+++ telescope.h
char req[1027];
};
-struct cmd {
- const char *cmd;
- void (*fn)(struct buffer *);
- const char *descr;
-};
-extern struct cmd cmds[];
-
/* downloads.c */
extern STAILQ_HEAD(downloads, download) downloads;
struct download {