Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Dec 30, 2024
1 parent eb264c6 commit 5528aa6
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/pl-termwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,15 @@ static inline Word
nextTermAgenda(DECL_LD term_agenda *a)
{ Word p;

if ( a->work.size > 0 )
{ ok:
a->work.size--;
p = a->work.location++;
deRef(p);

return p;
}
if ( unlikely(a->work.size == 0) &&
!popSegStack(&a->stack, &a->work, aNode) )
return NULL;

if ( popSegStack(&a->stack, &a->work, aNode) )
goto ok;
a->work.size--;
p = a->work.location++;
deRef(p);

return NULL;
return p;
}


Expand Down

0 comments on commit 5528aa6

Please sign in to comment.