From f29228bbdcffdc8810ff8c766a05c6ca63a42086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 12 Feb 2016 15:57:26 +0100 Subject: Mark some tables as const This allows them to be placed into the read only ELF section. --- vis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 519d327..6652f72 100644 --- a/vis.h +++ b/vis.h @@ -44,7 +44,7 @@ typedef struct { /* a KeyAction can be bound to a key binding */ typedef struct { /* a key binding either refers to an action or an alias */ const char *key; /* symbolic key to trigger this binding */ - KeyAction *action; /* action to launch upon triggering this binding */ + const KeyAction *action; /* action to launch upon triggering this binding */ const char *alias; /* replaces key with alias in the input queue */ } KeyBinding; @@ -137,7 +137,7 @@ bool vis_window_mode_unmap(Win*, enum VisMode, const char *key); const char *vis_mode_status(Vis*); /* associates the special pseudo key name> with the given key action. * after successfull registration the pseudo key can be used key binding aliases */ -bool vis_action_register(Vis*, KeyAction*); +bool vis_action_register(Vis*, const KeyAction*); enum VisOperator { VIS_OP_DELETE, -- cgit v1.2.3