mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
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.
This commit is contained in:

committed by
Thiago de Arruda

parent
5f795225dc
commit
659cd0e99a
@@ -14,7 +14,7 @@ typedef struct growarray {
|
|||||||
void *ga_data; // pointer to the first item
|
void *ga_data; // pointer to the first item
|
||||||
} garray_T;
|
} 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(garray_T *gap);
|
||||||
void ga_clear_strings(garray_T *gap);
|
void ga_clear_strings(garray_T *gap);
|
||||||
|
@@ -2019,7 +2019,7 @@ findtag_end:
|
|||||||
return retval;
|
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);
|
static void found_tagfile_cb(char_u *fname, void *cookie);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user