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:
Felipe Oliveira Carvalho
2014-05-08 15:03:25 -03:00
committed by Thiago de Arruda
parent b4efff6523
commit 5209d2271b
9 changed files with 21 additions and 21 deletions

View File

@@ -2376,12 +2376,12 @@ static void check_state_ends(void)
pop_current_state();
if (current_state.ga_len == 0)
if (GA_EMPTY(&current_state))
break;
if (had_extend && keepend_level >= 0) {
syn_update_ends(FALSE);
if (current_state.ga_len == 0)
if (GA_EMPTY(&current_state))
break;
}