aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-05-07 18:10:57 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-17 07:02:44 -0300
commit659cd0e99a0993497279ef8538956eec9f2fc374 (patch)
tree0e46a5dbc14a68baddaad45cf20fbd454829b05f
parent5f795225dcf735096c54057a3b5eb08484c02c8b (diff)
downloadrneovim-659cd0e99a0993497279ef8538956eec9f2fc374.tar.gz
rneovim-659cd0e99a0993497279ef8538956eec9f2fc374.tar.bz2
rneovim-659cd0e99a0993497279ef8538956eec9f2fc374.zip
s/GA_EMPTY/GA_EMPTY_INIT_VALUE/
I'm about to implement a `GA_EMPTY` macro that checks if the GA is empty or not.
-rw-r--r--src/nvim/garray.h2
-rw-r--r--src/nvim/tag.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/garray.h b/src/nvim/garray.h
index 4ffd5879fe..be858dffb0 100644
--- a/src/nvim/garray.h
+++ b/src/nvim/garray.h
@@ -14,7 +14,7 @@ typedef struct growarray {
void *ga_data; // pointer to the first item
} garray_T;
-#define GA_EMPTY { 0, 0, 0, 0, NULL }
+#define GA_EMPTY_INIT_VALUE { 0, 0, 0, 0, NULL }
void ga_clear(garray_T *gap);
void ga_clear_strings(garray_T *gap);
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index aa553f9b24..0e01350537 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -2019,7 +2019,7 @@ findtag_end:
return retval;
}
-static garray_T tag_fnames = GA_EMPTY;
+static garray_T tag_fnames = GA_EMPTY_INIT_VALUE;
static void found_tagfile_cb(char_u *fname, void *cookie);
/*