From 3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 Mon Sep 17 00:00:00 2001 From: N-R-K Date: Tue, 3 May 2022 15:36:57 +0000 Subject: 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 --- commands.c | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 111d1e9..9ee83ec 100644 --- a/commands.c +++ b/commands.c @@ -24,34 +24,11 @@ #include #include -void remove_file(int, bool); -void load_image(int); -bool mark_image(int, bool); -void close_info(void); -void open_info(void); -int nav_button(void); -void redraw(void); -void reset_cursor(void); -void animate(void); -void slideshow(void); -void set_timeout(timeout_f, int, bool); -void reset_timeout(timeout_f); -void handle_key_handler(bool); - -extern appmode_t mode; +#include "commands.h" + extern img_t img; extern tns_t tns; extern win_t win; -extern const XButtonEvent *xbutton_ev; - -extern fileinfo_t *files; -extern int filecnt, fileidx; -extern int alternate; -extern int markcnt; -extern int markidx; - -extern int prefix; -extern bool extprefix; bool cg_quit(arg_t status) { -- cgit v1.2.3-54-g00ecf