mirror of
https://github.com/sigmasternchen/libargo
synced 2025-03-15 05:08:54 +00:00
allow structs without typedef as struct members
This commit is contained in:
parent
02f69dd2b2
commit
fc796e2588
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ structmember: type ID
|
|||
type: LONG { $$ = newTypeInfo(false, "long"); }
|
||||
| DOUBLE { $$ = newTypeInfo(false, "double"); }
|
||||
| STRING { $$ = newTypeInfo(false, "string"); }
|
||||
| STRUCT ID { yyerror("structs without typedef are not yet supported"); YYERROR; }
|
||||
| STRUCT ID { $$ = newTypeInfo(false, prefix($2, "struct ")); }
|
||||
| ID { $$ = newTypeInfo(false, $1); }
|
||||
| type POINTER
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue