typedef FTW

This commit is contained in:
Simon Forman 2023-02-19 20:06:07 -08:00
parent c35396cf73
commit 83f393a176
1 changed files with 3 additions and 3 deletions

View File

@ -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))