diff options
author | ZyX <kp-pav@yandex.ru> | 2016-06-10 22:23:56 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-06-11 00:08:57 +0300 |
commit | d359bb3f60cfb2eea7973081797841e69aeeb78c (patch) | |
tree | 4a00c7338e919e8bfb737023035c5725dc0288be /src/nvim/regexp_nfa.c | |
parent | 3d64bd2b3a87d22542cac03c1cc6a20a7ee13d1d (diff) | |
download | rneovim-d359bb3f60cfb2eea7973081797841e69aeeb78c.tar.gz rneovim-d359bb3f60cfb2eea7973081797841e69aeeb78c.tar.bz2 rneovim-d359bb3f60cfb2eea7973081797841e69aeeb78c.zip |
*: Fix errors from new linter checks
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 7e53b2ccd1..c688f65d2a 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -358,11 +358,11 @@ static int nfa_ll_index = 0; #endif /* helper functions used when doing re2post() ... regatom() parsing */ -#define EMIT(c) do { \ - if (post_ptr >= post_end) { \ - realloc_post_list(); \ - } \ - *post_ptr++ = c; \ +#define EMIT(c) do { \ + if (post_ptr >= post_end) { \ + realloc_post_list(); \ + } \ + *post_ptr++ = c; \ } while (0) /* @@ -2892,12 +2892,12 @@ static nfa_state_T *post2nfa(int *postfix, int *end, int nfa_calc_size) return NULL; #define PUSH(s) st_push((s), &stackp, stack_end) -#define POP() st_pop(&stackp, stack); \ - if (stackp < stack) \ - { \ - st_error(postfix, end, p); \ - xfree(stack); \ - return NULL; \ +#define POP() st_pop(&stackp, stack); \ + if (stackp < stack) \ + { \ + st_error(postfix, end, p); \ + xfree(stack); \ + return NULL; \ } if (nfa_calc_size == FALSE) { @@ -4904,10 +4904,10 @@ static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, } else addstate(thislist, start, m, NULL, 0); -#define ADD_STATE_IF_MATCH(state) \ - if (result) { \ - add_state = state->out; \ - add_off = clen; \ +#define ADD_STATE_IF_MATCH(state) \ + if (result) { \ + add_state = state->out; \ + add_off = clen; \ } /* |