*node_first = node_new;
}
+void removeTreeInfo(TreeInfo **node_first)
+{
+ TreeInfo *node_old = *node_first;
+
+ *node_first = node_old->next;
+ node_old->next = NULL;
+
+ freeTreeInfo(node_old);
+}
+
int numTreeInfo(TreeInfo *node)
{
int num = 0;
// if sub-tree has no custom artwork at all, remove it
if (artwork_new->node_group->next == NULL)
- {
- *artwork_node = artwork_new->next;
- artwork_new->next = NULL;
-
- freeTreeInfo(artwork_new);
- }
+ removeTreeInfo(artwork_node);
}
level_node = level_node->next;
TreeInfo *newTreeInfo(void);
TreeInfo *newTreeInfo_setDefaults(int);
void pushTreeInfo(TreeInfo **, TreeInfo *);
+void removeTreeInfo(TreeInfo **);
int numTreeInfo(TreeInfo *);
boolean validLevelSeries(TreeInfo *);
TreeInfo *getFirstValidTreeInfoEntry(TreeInfo *);