Closed jwiegley closed 10 years ago
For Foo
above this is probably OK, but in C, the Bar_
variant is definitely incorrect.
Oops, that fixed #11.
We now generate:
{- typedef struct Foo_ Foo; -}
#opaque_t struct Foo_
#synonym_t Foo , <struct Foo_>
{- typedef enum Bar_ {
BAR
} Bar; -}
#integral_t enum Bar_
#num BAR
#synonym_t Bar , <enum Bar_>
This looks correct, as far as the input source.
Consider this generated code:
In this case, the
_
suffix should not have been chosen, but the resulting enum type synonym.