Commit cb1ab72
committed
xdr_codegen/parser: allow struct members to be declared as 'enum identifier'
Some specs have a construct like
enum foo {
A = 0,
B = 1
};
struct blah {
enum foo type;
int a;
};
Previously that wouldn't parse because the member declaration was
expected to start with an identifier, not the keyword 'enum'. But it's a
reasonable construct so there's no reason to disallow it.1 parent 504ea56 commit cb1ab72
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
| |||
0 commit comments