fix: build and .sh test file for functions

This commit is contained in:
Matteo Flebus 2026-01-31 12:53:23 +01:00
parent a63632005c
commit 3cd231f031
7 changed files with 12 additions and 7 deletions

View file

@ -11,7 +11,8 @@ void ast_free(struct ast **node)
{
if (node == NULL || *node == NULL)
{
fprintf(stderr,
fprintf(
stderr,
"WARNING: Internal error: failed to free AST node (NULL argument)");
return;
}
@ -56,8 +57,9 @@ void ast_free(struct ast **node)
break;
default:
fprintf(stderr, "WARNING: Internal error: failed to free an AST node (Unknown "
"type)");
fprintf(stderr,
"WARNING: Internal error: failed to free an AST node (Unknown "
"type)");
return;
}