refactor(ast): one file per ast_type -- UNSTABLE (4)
This commit is contained in:
parent
e3ec484621
commit
38f5a35885
1 changed files with 16 additions and 0 deletions
16
src/utils/ast/ast_list.c
Normal file
16
src/utils/ast/ast_list.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include "utils/ast/ast.h"
|
||||
|
||||
struct ast *ast_create_list(struct list *ast_list);
|
||||
|
||||
struct ast_list *ast_get_list(struct ast *node);
|
||||
|
||||
bool ast_is_list(struct ast *node)
|
||||
|
||||
void ast_free_list(struct ast_list *ast_list)
|
||||
{
|
||||
if (ast_list == NULL)
|
||||
return;
|
||||
|
||||
list_deep_destroy(ast_list->children);
|
||||
free(ast_list);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue