Yet more minor cleanup.

This commit is contained in:
Simon Forman 2023-02-03 09:39:02 -08:00
parent 7df01dfe5e
commit f2b2b92c2c
1 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ Extract terms from the text until a closing bracket is found.
*/ */
char *rest; char *rest;
ptrdiff_t diff; ptrdiff_t diff;
struct list_node *result = NULL; JoyList result = EMPTY_LIST;
/* NULL string input? */ /* NULL string input? */
if (NULL == *text) { if (NULL == *text) {
@ -249,7 +249,7 @@ parse_node(char **text)
{ {
char *rest; char *rest;
ptrdiff_t diff; ptrdiff_t diff;
struct list_node *thing; JoyList thing;
/* NULL string input? */ /* NULL string input? */
if (NULL == *text) return EMPTY_LIST; if (NULL == *text) return EMPTY_LIST;
@ -297,7 +297,7 @@ parse_node(char **text)
JoyList JoyList
text_to_expression(char *text) text_to_expression(char *text)
{ {
struct list_node *result, *head, *tail; JoyList result, head, tail;
result = parse_node(&text); result = parse_node(&text);
head = result; head = result;