aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-26 11:46:59 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-29 07:51:50 -0400
commit9b34b867ddc4c9e458bc108fb14de33ab6c4ee75 (patch)
tree952a234f7effe8953d23b660d6b7d3a21782129b
parente6993f24915d164d8cd83eb6dbbb183cf5b8d45e (diff)
downloadrneovim-9b34b867ddc4c9e458bc108fb14de33ab6c4ee75.tar.gz
rneovim-9b34b867ddc4c9e458bc108fb14de33ab6c4ee75.tar.bz2
rneovim-9b34b867ddc4c9e458bc108fb14de33ab6c4ee75.zip
syntax: update types for keyentry_T,sp_syn
Replace 'short' with 'int16_t'
-rw-r--r--src/nvim/syntax_defs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h
index 63089a62af..18518a6b4c 100644
--- a/src/nvim/syntax_defs.h
+++ b/src/nvim/syntax_defs.h
@@ -18,9 +18,9 @@ typedef unsigned short disptick_T; /* display tick type */
/* struct passed to in_id_list() */
struct sp_syn {
- int inc_tag; /* ":syn include" unique tag */
- short id; /* highlight group ID of item */
- short *cont_in_list; /* cont.in group IDs, if non-zero */
+ int inc_tag; // ":syn include" unique tag
+ int16_t id; // highlight group ID of item
+ int16_t *cont_in_list; // cont.in group IDs, if non-zero
};
/*
@@ -29,12 +29,12 @@ struct sp_syn {
typedef struct keyentry keyentry_T;
struct keyentry {
- keyentry_T *ke_next; /* next entry with identical "keyword[]" */
- struct sp_syn k_syn; /* struct passed to in_id_list() */
- short *next_list; /* ID list for next match (if non-zero) */
+ keyentry_T *ke_next; // next entry with identical "keyword[]"
+ struct sp_syn k_syn; // struct passed to in_id_list()
+ int16_t *next_list; // ID list for next match (if non-zero)
int flags;
- int k_char; /* conceal substitute character */
- char_u keyword[1]; /* actually longer */
+ int k_char; // conceal substitute character
+ char_u keyword[1]; // actually longer
};
/*