10 lines
205 B
C
10 lines
205 B
C
#include "expression.h"
|
|
#include <stdlib.h>
|
|
|
|
void ast_free_type(TypeTree* expr) {
|
|
if (expr->tag == TYPE_TREE_ARRAY) {
|
|
ast_free_type(expr->array.array);
|
|
free(expr->array.array);
|
|
}
|
|
}
|