mirror of
https://gitee.com/apaki/unicstl.git
synced 2025-07-10 02:26:54 +08:00
删除调试信息,默认不采用递归
This commit is contained in:
parent
4acdcf3ec7
commit
51b41f46da
@ -12,7 +12,7 @@
|
|||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
#include "stack.h"
|
#include "stack.h"
|
||||||
|
|
||||||
#define TREE_RECURSIVE_ENABLED
|
// #define TREE_RECURSIVE_ENABLED
|
||||||
|
|
||||||
static struct _tree_node* tree_node_new(struct _tree* self, void* obj)
|
static struct _tree_node* tree_node_new(struct _tree* self, void* obj)
|
||||||
{
|
{
|
||||||
@ -51,10 +51,6 @@ static void tree_node_free(struct _tree_node** node)
|
|||||||
free(*node);
|
free(*node);
|
||||||
*node = NULL;
|
*node = NULL;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("+++\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t tree_height_node(struct _tree* self, struct _tree_node* root)
|
static uint32_t tree_height_node(struct _tree* self, struct _tree_node* root)
|
||||||
|
Loading…
Reference in New Issue
Block a user