mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
Calm down the clinter
This commit is contained in:
@@ -58,10 +58,10 @@ typedef struct {
|
|||||||
* functions that set or reset the flags.
|
* functions that set or reset the flags.
|
||||||
*
|
*
|
||||||
* VALID_BOTLINE VALID_BOTLINE_AP
|
* VALID_BOTLINE VALID_BOTLINE_AP
|
||||||
* on on w_botline valid
|
* on on w_botline valid
|
||||||
* off on w_botline approximated
|
* off on w_botline approximated
|
||||||
* off off w_botline not valid
|
* off off w_botline not valid
|
||||||
* on off not possible
|
* on off not possible
|
||||||
*/
|
*/
|
||||||
#define VALID_WROW 0x01 /* w_wrow (window row) is valid */
|
#define VALID_WROW 0x01 /* w_wrow (window row) is valid */
|
||||||
#define VALID_WCOL 0x02 /* w_wcol (window col) is valid */
|
#define VALID_WCOL 0x02 /* w_wcol (window col) is valid */
|
||||||
@@ -159,7 +159,7 @@ typedef struct {
|
|||||||
int wo_arab;
|
int wo_arab;
|
||||||
# define w_p_arab w_onebuf_opt.wo_arab /* 'arabic' */
|
# define w_p_arab w_onebuf_opt.wo_arab /* 'arabic' */
|
||||||
int wo_bri;
|
int wo_bri;
|
||||||
# define w_p_bri w_onebuf_opt.wo_bri /* 'breakindent' */
|
# define w_p_bri w_onebuf_opt.wo_bri // 'breakindent'
|
||||||
char_u *wo_briopt;
|
char_u *wo_briopt;
|
||||||
# define w_p_briopt w_onebuf_opt.wo_briopt /* 'breakindentopt' */
|
# define w_p_briopt w_onebuf_opt.wo_briopt /* 'breakindentopt' */
|
||||||
int wo_diff;
|
int wo_diff;
|
||||||
@@ -412,13 +412,13 @@ typedef struct {
|
|||||||
* syntax state too often.
|
* syntax state too often.
|
||||||
* b_sst_array[] is allocated to hold the state for all displayed lines,
|
* b_sst_array[] is allocated to hold the state for all displayed lines,
|
||||||
* and states for 1 out of about 20 other lines.
|
* and states for 1 out of about 20 other lines.
|
||||||
* b_sst_array pointer to an array of synstate_T
|
* b_sst_array pointer to an array of synstate_T
|
||||||
* b_sst_len number of entries in b_sst_array[]
|
* b_sst_len number of entries in b_sst_array[]
|
||||||
* b_sst_first pointer to first used entry in b_sst_array[] or NULL
|
* b_sst_first pointer to first used entry in b_sst_array[] or NULL
|
||||||
* b_sst_firstfree pointer to first free entry in b_sst_array[] or NULL
|
* b_sst_firstfree pointer to first free entry in b_sst_array[] or NULL
|
||||||
* b_sst_freecount number of free entries in b_sst_array[]
|
* b_sst_freecount number of free entries in b_sst_array[]
|
||||||
* b_sst_check_lnum entries after this lnum need to be checked for
|
* b_sst_check_lnum entries after this lnum need to be checked for
|
||||||
* validity (MAXLNUM means no check needed)
|
* validity (MAXLNUM means no check needed)
|
||||||
*/
|
*/
|
||||||
synstate_T *b_sst_array;
|
synstate_T *b_sst_array;
|
||||||
int b_sst_len;
|
int b_sst_len;
|
||||||
@@ -479,7 +479,7 @@ struct file_buffer {
|
|||||||
* b_ffname has the full path of the file (NULL for no name).
|
* b_ffname has the full path of the file (NULL for no name).
|
||||||
* b_sfname is the name as the user typed it (or NULL).
|
* b_sfname is the name as the user typed it (or NULL).
|
||||||
* b_fname is the same as b_sfname, unless ":cd" has been done,
|
* b_fname is the same as b_sfname, unless ":cd" has been done,
|
||||||
* then it is the same as b_ffname (NULL for no name).
|
* then it is the same as b_ffname (NULL for no name).
|
||||||
*/
|
*/
|
||||||
char_u *b_ffname; /* full path file name */
|
char_u *b_ffname; /* full path file name */
|
||||||
char_u *b_sfname; /* short file name */
|
char_u *b_sfname; /* short file name */
|
||||||
@@ -587,12 +587,12 @@ struct file_buffer {
|
|||||||
|
|
||||||
bool b_scanned; /* ^N/^P have scanned this buffer */
|
bool b_scanned; /* ^N/^P have scanned this buffer */
|
||||||
|
|
||||||
/* flags for use of ":lmap" and IM control */
|
// flags for use of ":lmap" and IM control
|
||||||
long b_p_iminsert; /* input mode for insert */
|
long b_p_iminsert; // input mode for insert
|
||||||
long b_p_imsearch; /* input mode for search */
|
long b_p_imsearch; // input mode for search
|
||||||
#define B_IMODE_USE_INSERT -1 /* Use b_p_iminsert value for search */
|
#define B_IMODE_USE_INSERT -1 // Use b_p_iminsert value for search
|
||||||
#define B_IMODE_NONE 0 /* Input via none */
|
#define B_IMODE_NONE 0 // Input via none
|
||||||
#define B_IMODE_LMAP 1 /* Input via langmap */
|
#define B_IMODE_LMAP 1 // Input via langmap
|
||||||
# define B_IMODE_LAST 1
|
# define B_IMODE_LAST 1
|
||||||
|
|
||||||
short b_kmap_state; /* using "lmap" mappings */
|
short b_kmap_state; /* using "lmap" mappings */
|
||||||
@@ -760,7 +760,7 @@ struct file_buffer {
|
|||||||
/* Two special kinds of buffers:
|
/* Two special kinds of buffers:
|
||||||
* help buffer - used for help files, won't use a swap file.
|
* help buffer - used for help files, won't use a swap file.
|
||||||
* spell buffer - used for spell info, never displayed and doesn't have a
|
* spell buffer - used for spell info, never displayed and doesn't have a
|
||||||
* file name.
|
* file name.
|
||||||
*/
|
*/
|
||||||
bool b_help; /* TRUE for help file buffer (when set b_p_bt
|
bool b_help; /* TRUE for help file buffer (when set b_p_bt
|
||||||
is "help") */
|
is "help") */
|
||||||
@@ -916,9 +916,9 @@ typedef struct {
|
|||||||
/// Same as lpos_T, but with additional field len.
|
/// Same as lpos_T, but with additional field len.
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
linenr_T lnum; ///< line number
|
linenr_T lnum; ///< line number
|
||||||
colnr_T col; ///< column number
|
colnr_T col; ///< column number
|
||||||
int len; ///< length: 0 - to the end of line
|
int len; ///< length: 0 - to the end of line
|
||||||
} llpos_T;
|
} llpos_T;
|
||||||
|
|
||||||
/// posmatch_T provides an array for storing match items for matchaddpos()
|
/// posmatch_T provides an array for storing match items for matchaddpos()
|
||||||
@@ -926,10 +926,10 @@ typedef struct
|
|||||||
typedef struct posmatch posmatch_T;
|
typedef struct posmatch posmatch_T;
|
||||||
struct posmatch
|
struct posmatch
|
||||||
{
|
{
|
||||||
llpos_T pos[MAXPOSMATCH]; ///< array of positions
|
llpos_T pos[MAXPOSMATCH]; ///< array of positions
|
||||||
int cur; ///< internal position counter
|
int cur; ///< internal position counter
|
||||||
linenr_T toplnum; ///< top buffer line
|
linenr_T toplnum; ///< top buffer line
|
||||||
linenr_T botlnum; ///< bottom buffer line
|
linenr_T botlnum; ///< bottom buffer line
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1036,7 +1036,7 @@ struct window_S {
|
|||||||
* Recomputing is minimized by storing the result of computations.
|
* Recomputing is minimized by storing the result of computations.
|
||||||
* Use functions in screen.c to check if they are valid and to update.
|
* Use functions in screen.c to check if they are valid and to update.
|
||||||
* w_valid is a bitfield of flags, which indicate if specific values are
|
* w_valid is a bitfield of flags, which indicate if specific values are
|
||||||
* valid or need to be recomputed.
|
* valid or need to be recomputed.
|
||||||
*/
|
*/
|
||||||
int w_valid;
|
int w_valid;
|
||||||
pos_T w_valid_cursor; /* last known position of w_cursor, used
|
pos_T w_valid_cursor; /* last known position of w_cursor, used
|
||||||
|
Reference in New Issue
Block a user