ydr patch for rxgen compatibility
Derrick J Brashear
shadow at dementia.org
Tue Jan 18 23:54:49 CET 2000
On 18 Jan 2000, Love wrote:
> Derrick J Brashear <shadow at dementia.org> writes:
>
> > The attached patch causes ydr to accept e.g.
> > enum foo {
> > BAR,
> > BAZ
> > };
> >
> > and implicitly assign BAR=0, BAZ=1, which is what rxgen does.
> >
> > It will also pick up the numbering after the last explicitly numbered
> > entry, deliberately. I didn't look to see what Transarc did in that case.
>
> See what you mean, the patch wasn't complete, and I don't think it would
> work for
>
> enum foo { FOO };
> enum bar { BAR };
>
> BAR would get 2, wouldn't it ?
shouldn't; wouldn't:
type_decl : T_ENUM T_IDENTIFIER enumbody ';'
{ $$ = define_enum ($2, $3); varcnt = 0; }
cover it?
-D
More information about the Arla-drinkers
mailing list