diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-18 01:01:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-18 01:01:15 -0400 |
| commit | 2158bb97fc2a9744c5ed1bf4b5cd056498904925 (patch) | |
| tree | 7c4f0d1c0e21649d23b624a4cb254464398c349b /enums.c | |
| parent | 0829e1a2d1fc1c1d284b6e929a62479cdd01064e (diff) | |
Clean up struct code a bit
Diffstat (limited to 'enums.c')
| -rw-r--r-- | enums.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -218,7 +218,7 @@ CORD compile_enum_header(env_t *env, ast_t *ast) enum_def = CORD_all(enum_def, "} tag;\n" "union {\n"); for (tag_ast_t *tag = def->tags; tag; tag = tag->next) { - CORD field_def = compile_struct_typedef(env, WrapAST(ast, StructDef, .name=CORD_to_const_char_star(CORD_all(def->name, "$", tag->name)), .fields=tag->fields)); + CORD field_def = compile_struct_header(env, WrapAST(ast, StructDef, .name=CORD_to_const_char_star(CORD_all(def->name, "$", tag->name)), .fields=tag->fields)); all_defs = CORD_all(all_defs, field_def); enum_def = CORD_all(enum_def, full_name, "$", tag->name, "_t $", tag->name, ";\n"); } |
