mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
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) ) ...>
This commit is contained in:

committed by
Thiago de Arruda

parent
b4efff6523
commit
5209d2271b
@@ -18397,7 +18397,7 @@ char_u *get_user_func_name(expand_T *xp, int idx)
|
||||
cat_func_name(IObuff, fp);
|
||||
if (xp->xp_context != EXPAND_USER_FUNC) {
|
||||
STRCAT(IObuff, "(");
|
||||
if (!fp->uf_varargs && fp->uf_args.ga_len == 0)
|
||||
if (!fp->uf_varargs && GA_EMPTY(&fp->uf_args))
|
||||
STRCAT(IObuff, ")");
|
||||
}
|
||||
return IObuff;
|
||||
|
Reference in New Issue
Block a user