From 659cd0e99a0993497279ef8538956eec9f2fc374 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Wed, 7 May 2014 18:10:57 -0300 Subject: 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. --- src/nvim/garray.h | 2 +- src/nvim/tag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); /* -- cgit