summaryrefslogtreecommitdiffhomepage
path: root/src/bind.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-07-31 16:02:10 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-08-10 22:40:52 +0100
commit5e921bf59373d79d27c322ff86e8b5a37b151e45 (patch)
tree4d40e39543b085ce4c8cb9b1a7b3c0108de680c0 /src/bind.c
parentc8d7588251fd4fe63ac6afe2a90ca7066c786609 (diff)
Add magical feature codegen system, at long last
Diffstat (limited to 'src/bind.c')
-rw-r--r--src/bind.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bind.c b/src/bind.c
index 62cdec3..762259d 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -19,12 +19,15 @@
#include "con_.h"
#include "dbg.h"
#include "errmsg.h"
+#include "feature.h"
#include "hook.h"
#include "intdefs.h"
#include "mem.h"
#include "x86.h"
#include "x86util.h"
+FEATURE()
+
struct keyinfo {
char *binding;
uchar keyuptgt : 3;
@@ -53,7 +56,7 @@ static bool find_keyinfo(con_cmdcb klbc_cb) {
return false;
}
-bool bind_init(void) {
+INIT {
struct con_cmd *cmd_key_listboundkeys = con_findcmd("key_listboundkeys");
if (!cmd_key_listboundkeys) {
errmsg_errorx("couldn't find key_listboundkeys command");