fix: now compiles and works for simple commands + clang format
This commit is contained in:
parent
6099bbb9e3
commit
352c122549
23 changed files with 168 additions and 150 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "utils/ast/ast.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "utils/ast/ast.h"
|
||||
|
||||
struct ast *ast_create_list(struct list *list)
|
||||
{
|
||||
struct ast_list *ast_list = malloc(sizeof(struct ast_list));
|
||||
|
|
@ -16,7 +16,7 @@ struct ast *ast_create_list(struct list *list)
|
|||
struct ast_list *ast_get_list(struct ast *node)
|
||||
{
|
||||
assert(node != NULL);
|
||||
return (struct ast_list*)node->data;
|
||||
return (struct ast_list *)node->data;
|
||||
}
|
||||
|
||||
bool ast_is_list(struct ast *node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue