mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
Merge pull request #15206 from dundargoc/refactor/a-song-of-true-and-false/global-variables-2
refactor: replace TRUE/FALSE with true/false
This commit is contained in:
@@ -138,14 +138,14 @@ EXTERN int mod_mask INIT(= 0x0); // current key modifiers
|
||||
// update_screen().
|
||||
EXTERN int cmdline_row;
|
||||
|
||||
EXTERN int redraw_cmdline INIT(= false); // cmdline must be redrawn
|
||||
EXTERN int clear_cmdline INIT(= false); // cmdline must be cleared
|
||||
EXTERN int mode_displayed INIT(= false); // mode is being displayed
|
||||
EXTERN bool redraw_cmdline INIT(= false); // cmdline must be redrawn
|
||||
EXTERN bool clear_cmdline INIT(= false); // cmdline must be cleared
|
||||
EXTERN bool mode_displayed INIT(= false); // mode is being displayed
|
||||
EXTERN int cmdline_star INIT(= false); // cmdline is encrypted
|
||||
EXTERN bool redrawing_cmdline INIT(= false); // cmdline is being redrawn
|
||||
EXTERN bool cmdline_was_last_drawn INIT(= false); // cmdline was last drawn
|
||||
|
||||
EXTERN int exec_from_reg INIT(= false); // executing register
|
||||
EXTERN bool exec_from_reg INIT(= false); // executing register
|
||||
|
||||
// When '$' is included in 'cpoptions' option set:
|
||||
// When a change command is given that deletes only part of a line, a dollar
|
||||
@@ -204,12 +204,12 @@ EXTERN int keep_msg_attr INIT(= 0); // highlight attr for keep_msg
|
||||
EXTERN bool keep_msg_more INIT(= false); // keep_msg was set by msgmore()
|
||||
EXTERN bool need_fileinfo INIT(= false); // do fileinfo() after redraw
|
||||
EXTERN int msg_scroll INIT(= false); // msg_start() will scroll
|
||||
EXTERN int msg_didout INIT(= false); // msg_outstr() was used in line
|
||||
EXTERN int msg_didany INIT(= false); // msg_outstr() was used at all
|
||||
EXTERN int msg_nowait INIT(= false); // don't wait for this msg
|
||||
EXTERN bool msg_didout INIT(= false); // msg_outstr() was used in line
|
||||
EXTERN bool msg_didany INIT(= false); // msg_outstr() was used at all
|
||||
EXTERN bool msg_nowait INIT(= false); // don't wait for this msg
|
||||
EXTERN int emsg_off INIT(= 0); // don't display errors for now,
|
||||
// unless 'debug' is set.
|
||||
EXTERN int info_message INIT(= false); // printing informative message
|
||||
EXTERN bool info_message INIT(= false); // printing informative message
|
||||
EXTERN bool msg_hist_off INIT(= false); // don't add messages to history
|
||||
EXTERN bool need_clr_eos INIT(= false); // need to clear text before
|
||||
// displaying a message.
|
||||
@@ -225,18 +225,18 @@ EXTERN dict_T globvardict; // Dictionary with g: variables
|
||||
EXTERN int did_emsg; // set by emsg() when the message
|
||||
// is displayed or thrown
|
||||
EXTERN bool called_vim_beep; // set if vim_beep() is called
|
||||
EXTERN int did_emsg_syntax; // did_emsg set because of a
|
||||
EXTERN bool did_emsg_syntax; // did_emsg set because of a
|
||||
// syntax error
|
||||
EXTERN int called_emsg; // always set by emsg()
|
||||
EXTERN int ex_exitval INIT(= 0); // exit value for ex mode
|
||||
EXTERN bool emsg_on_display INIT(= false); // there is an error message
|
||||
EXTERN int rc_did_emsg INIT(= false); // vim_regcomp() called emsg()
|
||||
EXTERN bool rc_did_emsg INIT(= false); // vim_regcomp() called emsg()
|
||||
|
||||
EXTERN int no_wait_return INIT(= 0); // don't wait for return for now
|
||||
EXTERN int need_wait_return INIT(= 0); // need to wait for return later
|
||||
EXTERN bool did_wait_return INIT(= false); // wait_return() was used and
|
||||
// nothing written since then
|
||||
EXTERN bool need_maketitle INIT(= true); // call maketitle() soon
|
||||
EXTERN int no_wait_return INIT(= 0); // don't wait for return for now
|
||||
EXTERN bool need_wait_return INIT(= false); // need to wait for return later
|
||||
EXTERN bool did_wait_return INIT(= false); // wait_return() was used and
|
||||
// nothing written since then
|
||||
EXTERN bool need_maketitle INIT(= true); // call maketitle() soon
|
||||
|
||||
EXTERN int quit_more INIT(= false); // 'q' hit at "--more--" msg
|
||||
EXTERN int vgetc_busy INIT(= 0); // when inside vgetc() then > 0
|
||||
@@ -449,7 +449,7 @@ EXTERN frame_T *topframe; // top of the window frame tree
|
||||
EXTERN tabpage_T *first_tabpage;
|
||||
EXTERN tabpage_T *lastused_tabpage;
|
||||
EXTERN tabpage_T *curtab;
|
||||
EXTERN int redraw_tabline INIT(= false); // need to redraw tabline
|
||||
EXTERN bool redraw_tabline INIT(= false); // need to redraw tabline
|
||||
|
||||
// Iterates over all tabs in the tab list
|
||||
# define FOR_ALL_TABS(tp) for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next)
|
||||
@@ -623,7 +623,7 @@ EXTERN int motion_force INIT(=0); // motion force for pending operator
|
||||
|
||||
// Ex Mode (Q) state
|
||||
EXTERN bool exmode_active INIT(= false); // true if Ex mode is active
|
||||
EXTERN int ex_no_reprint INIT(=false); // No need to print after z or p.
|
||||
EXTERN bool ex_no_reprint INIT(=false); // No need to print after z or p.
|
||||
|
||||
EXTERN int reg_recording INIT(= 0); // register for recording or zero
|
||||
EXTERN int reg_executing INIT(= 0); // register being executed or zero
|
||||
@@ -701,14 +701,14 @@ EXTERN bool do_redraw INIT(= false); // extra redraw once
|
||||
EXTERN bool must_redraw_pum INIT(= false); // redraw pum. NB: must_redraw
|
||||
// should also be set.
|
||||
|
||||
EXTERN int need_highlight_changed INIT(= true);
|
||||
EXTERN bool need_highlight_changed INIT(= true);
|
||||
|
||||
EXTERN FILE *scriptout INIT(= NULL); ///< Stream to write script to.
|
||||
|
||||
// volatile because it is used in a signal handler.
|
||||
EXTERN volatile int got_int INIT(= false); // set to true when interrupt
|
||||
// signal occurred
|
||||
EXTERN int bangredo INIT(= false); // set to true with ! command
|
||||
EXTERN bool bangredo INIT(= false); // set to true with ! command
|
||||
EXTERN int searchcmdlen; // length of previous search cmd
|
||||
EXTERN int reg_do_extmatch INIT(= 0); // Used when compiling regexp:
|
||||
// REX_SET to allow \z\(...\),
|
||||
@@ -718,14 +718,14 @@ EXTERN reg_extmatch_T *re_extmatch_in INIT(= NULL);
|
||||
// Set by vim_regexec() to store \z\(...\) matches
|
||||
EXTERN reg_extmatch_T *re_extmatch_out INIT(= NULL);
|
||||
|
||||
EXTERN int did_outofmem_msg INIT(= false);
|
||||
EXTERN bool did_outofmem_msg INIT(= false);
|
||||
// set after out of memory msg
|
||||
EXTERN int did_swapwrite_msg INIT(= false);
|
||||
EXTERN bool did_swapwrite_msg INIT(= false);
|
||||
// set after swap write error msg
|
||||
EXTERN int global_busy INIT(= 0); // set when :global is executing
|
||||
EXTERN int listcmd_busy INIT(= false); // set when :argdo, :windo or
|
||||
EXTERN bool listcmd_busy INIT(= false); // set when :argdo, :windo or
|
||||
// :bufdo is executing
|
||||
EXTERN int need_start_insertmode INIT(= false);
|
||||
EXTERN bool need_start_insertmode INIT(= false);
|
||||
// start insert mode soon
|
||||
EXTERN char_u *last_cmdline INIT(= NULL); // last command line (for ":)
|
||||
EXTERN char_u *repeat_cmdline INIT(= NULL); // command line for "."
|
||||
@@ -740,9 +740,9 @@ EXTERN int postponed_split_flags INIT(= 0); // args for win_split()
|
||||
EXTERN int postponed_split_tab INIT(= 0); // cmdmod.tab
|
||||
EXTERN int g_do_tagpreview INIT(= 0); // for tag preview commands:
|
||||
// height of preview window
|
||||
EXTERN int g_tag_at_cursor INIT(= false); // whether the tag command comes
|
||||
// from the command line (0) or was
|
||||
// invoked as a normal command (1)
|
||||
EXTERN bool g_tag_at_cursor INIT(= false); // whether the tag command comes
|
||||
// from the command line (0) or was
|
||||
// invoked as a normal command (1)
|
||||
|
||||
EXTERN int replace_offset INIT(= 0); // offset for replace_push()
|
||||
|
||||
@@ -756,7 +756,7 @@ EXTERN int keep_help_flag INIT(= false); // doing :ta from help file
|
||||
// everywhere.
|
||||
EXTERN char_u *empty_option INIT(= (char_u *)"");
|
||||
|
||||
EXTERN int redir_off INIT(= false); // no redirection for a moment
|
||||
EXTERN bool redir_off INIT(= false); // no redirection for a moment
|
||||
EXTERN FILE *redir_fd INIT(= NULL); // message redirection file
|
||||
EXTERN int redir_reg INIT(= 0); // message redirection register
|
||||
EXTERN int redir_vname INIT(= 0); // message redirection variable
|
||||
@@ -790,8 +790,8 @@ extern char_u *compiled_sys;
|
||||
EXTERN char_u *globaldir INIT(= NULL);
|
||||
|
||||
// Whether 'keymodel' contains "stopsel" and "startsel".
|
||||
EXTERN int km_stopsel INIT(= false);
|
||||
EXTERN int km_startsel INIT(= false);
|
||||
EXTERN bool km_stopsel INIT(= false);
|
||||
EXTERN bool km_startsel INIT(= false);
|
||||
|
||||
EXTERN int cedit_key INIT(= -1); ///< key value of 'cedit' option
|
||||
EXTERN int cmdwin_type INIT(= 0); ///< type of cmdline window or 0
|
||||
|
Reference in New Issue
Block a user