diff options
author | Quinn Stephens <quinn@osmora.org> | 2024-11-03 16:53:16 -0500 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2024-11-03 16:53:16 -0500 |
commit | 71b10c1c765196a771ce05216395d6b78892a735 (patch) | |
tree | ea88735919caebb6500d0b3ae78820c083048e25 /compiler/main.c | |
parent | 388025e5a7d2d7997926c6a9af8767ca9ccb12bf (diff) |
[compiler] More small refactoring
Signed-off-by: Quinn Stephens <quinn@osmora.org>
Diffstat (limited to 'compiler/main.c')
-rw-r--r-- | compiler/main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/compiler/main.c b/compiler/main.c index ada6243..3666859 100644 --- a/compiler/main.c +++ b/compiler/main.c @@ -184,7 +184,7 @@ print_ptrs(int n_ptrs) static void print_alias(struct type *typ) { - printf("alias (%lu bytes, %d pointer(s))", typ->size, typ->n_ptrs); + printf("alias (%lu bytes, %d pointer(s));\n", typ->size, typ->n_ptrs); } static void @@ -207,7 +207,7 @@ print_enum(struct type *typ) } while (mem != (struct enum_member*)&typ->members.rows[r]); } - printf("}"); + printf("}\n"); } static void @@ -232,7 +232,7 @@ print_struct(struct type *typ) } while (mem != (struct struct_member*)&typ->members.rows[r]); } - printf("}"); + printf("}\n"); } static void @@ -251,12 +251,9 @@ print_type(struct type *typ) print_struct(typ); break; default: - printf("(unknown)"); + printf("(unknown);\n"); break; } - - printf(";\n"); - } int |