diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 15:57:26 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 16:15:39 +0100 |
| commit | f29228bbdcffdc8810ff8c766a05c6ca63a42086 (patch) | |
| tree | 7df2502e0314858fd01017333a2eed4a626aa94e /vis.h | |
| parent | b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (diff) | |
| download | vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.gz vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.xz | |
Mark some tables as const
This allows them to be placed into the read only ELF section.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <keyaction->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, |
