aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelnod <mail@paul-schiffers.de>2017-07-15 17:52:06 +0200
committerrelnod <mail@paul-schiffers.de>2017-10-19 11:20:24 +0200
commitdde3ece10ed4ee62744009fa1fd347be740fc845 (patch)
tree1aae532ca1da6dd8e5d7bd314a01e7d9d6ce3505
parent0f74b7afeb3a4b85302268e7cb04f0faefda397d (diff)
downloadrneovim-dde3ece10ed4ee62744009fa1fd347be740fc845.tar.gz
rneovim-dde3ece10ed4ee62744009fa1fd347be740fc845.tar.bz2
rneovim-dde3ece10ed4ee62744009fa1fd347be740fc845.zip
lint
-rw-r--r--src/nvim/regexp_defs.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/nvim/regexp_defs.h b/src/nvim/regexp_defs.h
index 7492a86697..b5d56e07fc 100644
--- a/src/nvim/regexp_defs.h
+++ b/src/nvim/regexp_defs.h
@@ -46,20 +46,18 @@ typedef struct regengine regengine_T;
typedef struct regprog regprog_T;
typedef struct reg_extmatch reg_extmatch_T;
-/*
- * Structure to be used for multi-line matching.
- * Sub-match "no" starts in line "startpos[no].lnum" column "startpos[no].col"
- * and ends in line "endpos[no].lnum" just before column "endpos[no].col".
- * The line numbers are relative to the first line, thus startpos[0].lnum is
- * always 0.
- * When there is no match, the line number is -1.
- */
+/// Structure to be used for multi-line matching.
+/// Sub-match "no" starts in line "startpos[no].lnum" column "startpos[no].col"
+/// and ends in line "endpos[no].lnum" just before column "endpos[no].col".
+/// The line numbers are relative to the first line, thus startpos[0].lnum is
+/// always 0.
+/// When there is no match, the line number is -1.
typedef struct {
regprog_T *regprog;
lpos_T startpos[NSUBEXP];
lpos_T endpos[NSUBEXP];
int rmm_ic;
- colnr_T rmm_maxcol; /* when not zero: maximum column */
+ colnr_T rmm_maxcol; /// when not zero: maximum column
} regmmatch_T;
#include "nvim/buffer_defs.h"
@@ -153,7 +151,7 @@ typedef struct {
* from 1 to zero the matches need to be freed.
*/
struct reg_extmatch {
- short refcnt;
+ int16_t refcnt;
char_u *matches[NSUBEXP];
};