aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-26 09:43:19 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-29 07:51:50 -0400
commita34066963ee14e22ca0c569b7853a280e192f0f0 (patch)
treed7de7c5bb752f3e648b13e78f9ae79a33b93d898 /src
parent9229f7a05d221b4ef3d1ef5e2116d3ff797775b4 (diff)
downloadrneovim-a34066963ee14e22ca0c569b7853a280e192f0f0.tar.gz
rneovim-a34066963ee14e22ca0c569b7853a280e192f0f0.tar.bz2
rneovim-a34066963ee14e22ca0c569b7853a280e192f0f0.zip
syntax: update types of syn_opt_arg_T members
Use bool, not int, for booleans. Use int16_t, not short, to match lint changes from patch 8.0.1541.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/syntax.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 06209b23df..64943565f5 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -187,14 +187,14 @@ typedef struct state_item {
* very often.
*/
typedef struct {
- int flags; /* flags for contained and transparent */
- int keyword; /* TRUE for ":syn keyword" */
- int *sync_idx; /* syntax item for "grouphere" argument, NULL
- if not allowed */
- char has_cont_list; /* TRUE if "cont_list" can be used */
- short *cont_list; /* group IDs for "contains" argument */
- short *cont_in_list; /* group IDs for "containedin" argument */
- short *next_list; /* group IDs for "nextgroup" argument */
+ int flags; // flags for contained and transparent
+ bool keyword; // true for ":syn keyword"
+ int *sync_idx; // syntax item for "grouphere" argument, NULL
+ // if not allowed
+ bool has_cont_list; // true if "cont_list" can be used
+ int16_t *cont_list; // group IDs for "contains" argument
+ int16_t *cont_in_list; // group IDs for "containedin" argument
+ int16_t *next_list; // group IDs for "nextgroup" argument
} syn_opt_arg_T;
typedef struct {
@@ -4405,9 +4405,9 @@ syn_cmd_match(
/* Get options before the pattern */
syn_opt_arg.flags = 0;
- syn_opt_arg.keyword = FALSE;
+ syn_opt_arg.keyword = false;
syn_opt_arg.sync_idx = syncing ? &sync_idx : NULL;
- syn_opt_arg.has_cont_list = TRUE;
+ syn_opt_arg.has_cont_list = true;
syn_opt_arg.cont_list = NULL;
syn_opt_arg.cont_in_list = NULL;
syn_opt_arg.next_list = NULL;
@@ -4527,9 +4527,9 @@ syn_cmd_region(
init_syn_patterns();
syn_opt_arg.flags = 0;
- syn_opt_arg.keyword = FALSE;
+ syn_opt_arg.keyword = false;
syn_opt_arg.sync_idx = NULL;
- syn_opt_arg.has_cont_list = TRUE;
+ syn_opt_arg.has_cont_list = true;
syn_opt_arg.cont_list = NULL;
syn_opt_arg.cont_in_list = NULL;
syn_opt_arg.next_list = NULL;