aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_nfa.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-06-10 22:35:18 +0300
committerZyX <kp-pav@yandex.ru>2016-06-11 00:08:58 +0300
commit739f066afee351ebb96a5f14a2721c9d78ab92c4 (patch)
tree5221d54354932400e94d4628183e1be8a3d37084 /src/nvim/regexp_nfa.c
parentd359bb3f60cfb2eea7973081797841e69aeeb78c (diff)
downloadrneovim-739f066afee351ebb96a5f14a2721c9d78ab92c4.tar.gz
rneovim-739f066afee351ebb96a5f14a2721c9d78ab92c4.tar.bz2
rneovim-739f066afee351ebb96a5f14a2721c9d78ab92c4.zip
*: Also fix the adjacent errors
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r--src/nvim/regexp_nfa.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index c688f65d2a..f97dce9e0d 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -357,13 +357,14 @@ static int nfa_ll_index = 0;
# include "regexp_nfa.c.generated.h"
#endif
-/* helper functions used when doing re2post() ... regatom() parsing */
-#define EMIT(c) do { \
- if (post_ptr >= post_end) { \
- realloc_post_list(); \
- } \
- *post_ptr++ = c; \
-} while (0)
+// Helper functions used when doing re2post() ... regatom() parsing
+#define EMIT(c) \
+ do { \
+ if (post_ptr >= post_end) { \
+ realloc_post_list(); \
+ } \
+ *post_ptr++ = c; \
+ } while (0)
/*
* Initialize internal variables before NFA compilation.
@@ -2893,8 +2894,7 @@ static nfa_state_T *post2nfa(int *postfix, int *end, int nfa_calc_size)
#define PUSH(s) st_push((s), &stackp, stack_end)
#define POP() st_pop(&stackp, stack); \
- if (stackp < stack) \
- { \
+ if (stackp < stack) { \
st_error(postfix, end, p); \
xfree(stack); \
return NULL; \