From f2b2b92c2c1110caa98428524aa02b7c0d1cc3ad Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Fri, 3 Feb 2023 09:39:02 -0800 Subject: [PATCH] Yet more minor cleanup. --- implementations/C/joy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implementations/C/joy.c b/implementations/C/joy.c index 2282c4f..de95033 100644 --- a/implementations/C/joy.c +++ b/implementations/C/joy.c @@ -195,7 +195,7 @@ Extract terms from the text until a closing bracket is found. */ char *rest; ptrdiff_t diff; - struct list_node *result = NULL; + JoyList result = EMPTY_LIST; /* NULL string input? */ if (NULL == *text) { @@ -249,7 +249,7 @@ parse_node(char **text) { char *rest; ptrdiff_t diff; - struct list_node *thing; + JoyList thing; /* NULL string input? */ if (NULL == *text) return EMPTY_LIST; @@ -297,7 +297,7 @@ parse_node(char **text) JoyList text_to_expression(char *text) { - struct list_node *result, *head, *tail; + JoyList result, head, tail; result = parse_node(&text); head = result;