> Date: Sun, 4 Jul 2021 16:25:39 -0600
> From: Todd C. Miller <[email protected]>
> let's just require a non-empty expression but still allow an empty
> loop body.
if i might suggest a slight variation, how about only requiring that
at least one of the lists is non-empty, in the case of while, and
leaving for, until, etc. as they are?
this way nothing is broken.
your diff might then look something like:
t->left = c_list(true);
t->right = dogroup();
+ if (t->left == NULL && t->right == NULL)
+ syntaxerr(NULL);