refactor(ast): one file per ast_type -- FINISHED
This commit is contained in:
parent
38f5a35885
commit
30df2993ee
10 changed files with 85 additions and 51 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "utils/ast/ast.h"
|
||||
#include "utils/ast/ast_base.h"
|
||||
|
||||
struct ast_if
|
||||
{
|
||||
|
|
@ -29,8 +29,8 @@ struct ast_if *ast_get_if(struct ast *node);
|
|||
struct ast *ast_create_if(struct ast *condition, struct ast *then_clause,
|
||||
struct ast *else_clause);
|
||||
/*
|
||||
* @brief: frees the given ast_if.
|
||||
* @brief: frees the given ast_if and sets the pointer to NULL.
|
||||
*/
|
||||
void ast_free_if(struct ast_if *if_data)
|
||||
void ast_free_if(struct ast_if **if_data);
|
||||
|
||||
#endif /* ! AST_IF_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue