mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 18:28:19 +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
@@ -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(®stack) || status == RA_FAIL) {
|
||||
if (scan == NULL) {
|
||||
/*
|
||||
* We get here only if there's trouble -- normally "case END" is
|
||||
|
Reference in New Issue
Block a user