| ... | ... | @@ -681,8 +681,16 @@ fn transType(c: *Context, scope: *Scope, raw_ty: Type, qual_handling: Type.QualH |
| 681 | 681 | .float80 => return ZigTag.type.create(c.arena, "f80"), |
| 682 | 682 | .float128 => return ZigTag.type.create(c.arena, "f128"), |
| 683 | 683 | .@"enum" => @panic("TODO"), |
| 684 | | .pointer, .incomplete_array => @panic("todo"), |
| 684 | .pointer => @panic("todo"), |
| 685 | 685 | .unspecified_variable_len_array, |
| 686 | .incomplete_array => { |
| 687 | const child_type = ty.elemType(); |
| 688 | const is_const = child_type.qual.@"const"; |
| 689 | const is_volatile = child_type.qual.@"volatile"; |
| 690 | const elem_type = try transType(c, scope, child_type, qual_handling, source_loc); |
| 691 | |
| 692 | return ZigTag.c_pointer.create(c.arena, .{ .is_const = is_const, .is_volatile = is_volatile, .elem_type = elem_type }); |
| 693 | }, |
| 686 | 694 | .array, |
| 687 | 695 | .static_array, |
| 688 | 696 | => { |