Fix ordering of structs when array type appears, add more windows stuff
This commit is contained in:
@@ -344,7 +344,7 @@ gen_expr(Ast_Expr *ast, Ast_Type *type_of_var){
|
||||
|
||||
For(node->exprs){
|
||||
if(is_struct(node->resolved_type))
|
||||
gen("[%s] = ", it->resolved_name.str);
|
||||
gen(".%s = ", it->resolved_name.str);
|
||||
else if(is_array(node->resolved_type))
|
||||
gen("[%d] = ", (int)it->resolved_index);
|
||||
gen_expr(it->item);
|
||||
|
||||
Reference in New Issue
Block a user