From 888a977132a8494a512d5f1539fc35f464da40a2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 11 Mar 2025 15:54:06 -0400 Subject: Modify compile_type_info() so it no longer needs an env_t --- structs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'structs.c') diff --git a/structs.c b/structs.c index 5b8aafd3..cf86e312 100644 --- a/structs.c +++ b/structs.c @@ -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, "}"); -- cgit v1.2.3