From 83f393a176a120a65c11b2a0d25897f8b24979d3 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sun, 19 Feb 2023 20:06:07 -0800 Subject: [PATCH] typedef FTW --- implementations/C/joy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implementations/C/joy.h b/implementations/C/joy.h index b39c263..de5c22f 100644 --- a/implementations/C/joy.h +++ b/implementations/C/joy.h @@ -42,14 +42,14 @@ typedef struct { typedef JoyType* JoyTypePtr; -struct list_node { +typedef struct list_node { JoyTypePtr head; JoyList tail; -}; +} JoyListNode; #define EMPTY_LIST (JoyList)NULL -#define newJoyList GC_malloc(sizeof(struct list_node)) +#define newJoyList GC_malloc(sizeof(JoyListNode)) #define newJoyType GC_malloc(sizeof(JoyType))