Skip to content

Commit

Permalink
Remove unnecessary extern statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Sep 17, 2023
1 parent 9c28335 commit a481625
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 26 deletions.
7 changes: 0 additions & 7 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ extern int erase_char, erase2_char, kill_char;
extern int sigs;
extern int quit_if_one_screen;
extern int one_screen;
extern int squished;
extern int sc_width;
extern int sc_height;
extern char *kent;
Expand All @@ -39,29 +38,23 @@ extern int hshift;
extern int bs_mode;
extern int proc_backspace;
extern int show_attn;
extern int status_col;
extern POSITION highest_hilite;
extern POSITION start_attnpos;
extern POSITION end_attnpos;
extern char *every_first_cmd;
extern char version[];
extern struct scrpos initial_scrpos;
extern IFILE curr_ifile;
extern void *ml_search;
extern void *ml_examine;
extern int wheel_lines;
extern int header_lines;
extern int def_search_type;
extern int updown_match;
#if SHELL_ESCAPE || PIPEC
extern void *ml_shell;
#endif
#if EDITOR
extern char *editor;
extern char *editproto;
#endif
extern int shift_count;
extern int oldbot;
extern int forw_prompt;
extern int incr_search;
extern int full_screen;
Expand Down
1 change: 0 additions & 1 deletion edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
public int fd0 = 0;

extern int new_file;
extern int cbufs;
extern char *every_first_cmd;
extern int force_open;
extern int is_tty;
Expand Down
2 changes: 0 additions & 2 deletions forwback.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ extern int plusoption;
extern int forw_scroll;
extern int back_scroll;
extern int ignore_eoi;
extern int clear_bg;
extern int final_attr;
extern int header_lines;
extern int header_cols;
extern int full_screen;
Expand Down
1 change: 0 additions & 1 deletion input.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
extern int squeeze;
extern int hshift;
extern int quit_if_one_screen;
extern int sigs;
extern int ignore_eoi;
extern int status_col;
extern int wordwrap;
Expand Down
1 change: 0 additions & 1 deletion line.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ extern int proc_return;
extern int linenums;
extern int ctldisp;
extern int twiddle;
extern int binattr;
extern int status_col;
extern int status_col_width;
extern int linenum_width;
Expand Down
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public int one_screen;
extern int less_is_more;
extern int missing_cap;
extern int know_dumb;
extern int pr_type;
extern int quit_if_one_screen;
extern int no_init;
extern int errmsgs;
Expand Down
3 changes: 1 addition & 2 deletions optfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "less.h"
#include "option.h"

extern int nbufs;
extern int bufspace;
extern int pr_type;
extern int plusoption;
Expand All @@ -36,7 +35,6 @@ extern int sc_width;
extern int sc_height;
extern int secure;
extern int dohelp;
extern int is_tty;
extern char openquote;
extern char closequote;
extern char *prproto[];
Expand Down Expand Up @@ -79,6 +77,7 @@ extern char ztags[];
#endif
#if LESSTEST
extern char *ttyin_name;
extern int is_tty;
#endif /*LESSTEST*/
#if MSDOS_COMPILER
extern int nm_fg_color, nm_bg_color;
Expand Down
1 change: 0 additions & 1 deletion position.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ static POSITION *table = NULL; /* The position table */
static int table_size = 0;

extern int sc_width, sc_height;
extern int header_lines;
extern int hshift;

/*
Expand Down
2 changes: 0 additions & 2 deletions prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

extern int pr_type;
extern int new_file;
extern int sc_width;
extern int so_s_width, so_e_width;
extern int linenums;
extern int hshift;
extern int sc_height;
Expand Down
4 changes: 1 addition & 3 deletions screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,8 @@ char PC_, *UP, *BC;
extern int quiet; /* If VERY_QUIET, use visual bell for bell */
extern int no_vbell;
extern int no_back_scroll;
extern int swindow;
extern int no_init;
extern int no_keypad;
extern int sigs;
extern int wscroll;
extern int top_scroll;
extern int quit_if_one_screen;
extern int oldbot;
Expand All @@ -294,6 +291,7 @@ extern int use_color;
extern int hilite_search;
#endif
#if MSDOS_COMPILER==WIN32C
extern int wscroll;
extern HANDLE tty;
extern DWORD console_mode;
#ifndef ENABLE_EXTENDED_FLAGS
Expand Down
1 change: 0 additions & 1 deletion search.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ extern int sigs;
extern int how_search;
extern int caseless;
extern int linenums;
extern int sc_height;
extern int jump_sline;
extern int bs_mode;
extern int proc_backspace;
Expand Down
1 change: 0 additions & 1 deletion signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
public int sigs;

extern int sc_width, sc_height;
extern int lnloop;
extern int linenums;
extern int wscroll;
extern int reading;
Expand Down
3 changes: 0 additions & 3 deletions ttyin.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public int tty;
#if LESSTEST
public char *ttyin_name = NULL;
#endif /*LESSTEST*/
extern int sigs;
extern int utf_mode;
extern int wheel_lines;

#if !MSDOS_COMPILER
static int open_tty_device(constant char* dev)
Expand Down

0 comments on commit a481625

Please sign in to comment.