mojoshader_parser_hlsl.lemon
changeset 984 b75637d50945
parent 976 72f121a58548
--- a/mojoshader_parser_hlsl.lemon	Tue Jan 18 13:49:42 2011 -0800
+++ b/mojoshader_parser_hlsl.lemon	Wed Jan 19 01:04:40 2011 -0800
@@ -231,7 +231,7 @@
 %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, $$); }