aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-05-08 15:03:25 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-17 07:02:44 -0300
commit5209d2271b5e66ea3da0fc9056f99b8cafc14aa6 (patch)
tree3202016b0c15f7c14561bfaa25d8109057df6c97 /src/nvim/regexp.c
parentb4efff652388260b548324f870201a5804e097f0 (diff)
downloadrneovim-5209d2271b5e66ea3da0fc9056f99b8cafc14aa6.tar.gz
rneovim-5209d2271b5e66ea3da0fc9056f99b8cafc14aa6.tar.bz2
rneovim-5209d2271b5e66ea3da0fc9056f99b8cafc14aa6.zip
Replace ga->ga_len == 0 checks with GA_EMPTY(ga)
Used Coccinelle to perform the changes @@ expression E; @@ <... ( // E.ga_len == 0 is isomorphic to !E.ga_len - E.ga_len == 0 + GA_EMPTY(&E) | - E->ga_len == 0 + GA_EMPTY(E) ) ...>
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index 8241770bd3..cade4bd1c1 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -5021,7 +5021,7 @@ regmatch (
/*
* If the regstack is empty or something failed we are done.
*/
- if (regstack.ga_len == 0 || status == RA_FAIL) {
+ if (GA_EMPTY(&regstack) || status == RA_FAIL) {
if (scan == NULL) {
/*
* We get here only if there's trouble -- normally "case END" is