[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] mescc: Implement ast->type for comma-expr.
From: |
Michael Forney |
Subject: |
Re: [PATCH] mescc: Implement ast->type for comma-expr. |
Date: |
Sun, 21 Apr 2024 13:05:24 -0700 |
User-agent: |
mblaze/1.2 |
Janneke Nieuwenhuizen <janneke@gnu.org> wrote:
> > This fixes code like
> >
> > int x;
> > x = (1, 0);
>
> Interesting, wondering what kind of code are you compiling?
I was trying to build my C compiler, which uses Plan 9-style macros
for argument parsing:
ARGBEGIN {
case 'o':
output = EARGF(usage());
break;
} ARGEND
Where EARGF(usage()) expands to
(done_ = 1, opt_[1] ? ++opt_ : argv[1] ? --argc, *++argv : ((usage()),
abort(), (char *)0))