Skip to content

Commit

Permalink
Fixed dropping pieces of structs with comma-separated members.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 19, 2011
1 parent e8a11b2 commit 3eae373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_parser_hlsl.lemon
Expand Up @@ -231,7 +231,7 @@ struct_intro(A) ::= STRUCT IDENTIFIER(B). { A = B.string; push_usertype(ctx, A,
%type struct_member_list { MOJOSHADER_astStructMembers * }
%destructor struct_member_list { delete_struct_member(ctx, $$); }
struct_member_list(A) ::= struct_member(B). { A = B; }
struct_member_list(A) ::= struct_member_list(B) struct_member(C). { A = C; A->next = B; }
struct_member_list(A) ::= struct_member_list(B) struct_member(C). { A = C; MOJOSHADER_astStructMembers *i = A; while (i->next) { i = i->next; } i->next = B; }

%type struct_member { MOJOSHADER_astStructMembers * }
%destructor struct_member { delete_struct_member(ctx, $$); }
Expand Down

0 comments on commit 3eae373

Please sign in to comment.