diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-11 15:54:06 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-11 15:54:06 -0400 |
| commit | 888a977132a8494a512d5f1539fc35f464da40a2 (patch) | |
| tree | 111f23165886e354a6ca8288a0f210159c3d68f3 /structs.c | |
| parent | 0b2c4180483f3b2832137bea78dc565d469f8682 (diff) | |
Modify compile_type_info() so it no longer needs an env_t
Diffstat (limited to 'structs.c')
| -rw-r--r-- | structs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ CORD compile_struct_typeinfo(env_t *env, ast_t *ast) typeinfo = CORD_asprintf("%r, .StructInfo.fields=(NamedType_t[%d]){", typeinfo, num_fields); for (arg_ast_t *f = def->fields; f; f = f->next) { type_t *field_type = get_arg_ast_type(env, f); - typeinfo = CORD_all(typeinfo, "{\"", f->name, "\", ", compile_type_info(env, field_type), "}"); + typeinfo = CORD_all(typeinfo, "{\"", f->name, "\", ", compile_type_info(field_type), "}"); if (f->next) typeinfo = CORD_all(typeinfo, ", "); } typeinfo = CORD_all(typeinfo, "}"); |
