summaryrefslogtreecommitdiffstats
path: root/commands.h
diff options
context:
space:
mode:
authorN-R-K <nrk@disroot.org>2022-05-03 17:36:57 +0200
committerGitHub <noreply@github.com>2022-05-03 17:36:57 +0200
commit3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 (patch)
tree5a2e26fa1e6bd4b110c612054a6832275fced1f8 /commands.h
parent591be8cecfaef143824e76c73f7c586261297c9c (diff)
downloadnsxiv-3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9.tar.zst
Declare every extern function/variable in `nsxiv.h` (#268)
with a couple exceptions as they cause too many -Wshadow warnings. also moves the `extcmd_t` typedef on top for cosmetic purposes. also enable `-Wmissing-prototypes` in the ci
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands.h b/commands.h
index b78157d..74e2638 100644
--- a/commands.h
+++ b/commands.h
@@ -44,6 +44,7 @@ bool ct_scroll(arg_t);
bool ct_drag_mark_image(arg_t);
bool ct_select(arg_t);
+#ifdef _MAPPINGS_CONFIG
/* global */
#define g_change_gamma { cg_change_gamma, MODE_ALL }
#define g_first { cg_first, MODE_ALL }
@@ -88,4 +89,5 @@ bool ct_select(arg_t);
#define t_drag_mark_image { ct_drag_mark_image, MODE_THUMB }
#define t_select { ct_select, MODE_THUMB }
+#endif /* _MAPPINGS_CONFIG */
#endif /* COMMANDS_H */