diff options
author | N-R-K <nrk@disroot.org> | 2022-05-03 17:36:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 17:36:57 +0200 |
commit | 3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 (patch) | |
tree | 5a2e26fa1e6bd4b110c612054a6832275fced1f8 /commands.c | |
parent | 591be8cecfaef143824e76c73f7c586261297c9c (diff) | |
download | nsxiv-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.c')
-rw-r--r-- | commands.c | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -24,34 +24,11 @@ #include <unistd.h> #include <sys/wait.h> -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) { |