2018-04-17 11:22:48 -07:00
|
|
|
#include "custom.h"
|
|
|
|
|
|
|
|
void libab_behavior_free(libab_behavior* behavior) {
|
2018-04-17 22:14:07 -07:00
|
|
|
libab_ref_free(&behavior->type);
|
2018-04-21 14:09:01 -07:00
|
|
|
if (behavior->impl.variant == BIMPL_TREE) {
|
2018-04-20 00:25:31 -07:00
|
|
|
libab_ref_free(&behavior->impl.data_u.tree);
|
|
|
|
}
|
2018-04-17 11:22:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void libab_operator_free(libab_operator* op) {
|
|
|
|
libab_behavior_free(&op->behavior);
|
|
|
|
}
|
|
|
|
|
|
|
|
void libab_function_free(libab_function* fun) {
|
|
|
|
libab_behavior_free(&fun->behavior);
|
|
|
|
}
|