From 8ae06f5a95b2b766a20c93702e253b1006d611a9 Mon Sep 17 00:00:00 2001 From: Cristian Gora Date: Wed, 8 Apr 2026 19:32:38 +0200 Subject: [PATCH] Remove reduntant struct type definition --- test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test.c b/test.c index 15bc8ab..ae69aea 100644 --- a/test.c +++ b/test.c @@ -26,10 +26,10 @@ void arena_print(Arena arena) int main(void) { printf("struct Arena_Region {\n"); - printf(" Arena_Region *next; (%zu)\n", offsetof(struct Arena_Region, next)); - printf(" size_t count; (%zu)\n", offsetof(struct Arena_Region, count)); - printf(" size_t capacity; (%zu)\n", offsetof(struct Arena_Region, capacity)); - printf(" uint8_t data[]; (%zu)\n", offsetof(struct Arena_Region, data)); + printf(" Arena_Region *next; (%zu)\n", offsetof(Arena_Region, next)); + printf(" size_t count; (%zu)\n", offsetof(Arena_Region, count)); + printf(" size_t capacity; (%zu)\n", offsetof(Arena_Region, capacity)); + printf(" uint8_t data[]; (%zu)\n", offsetof(Arena_Region, data)); printf("};\n"); printf("Alignment: %zu\n", ARENA_ALIGNMENT);