删除调试信息,默认不采用递归

This commit is contained in:
建峰 2025-04-28 01:46:23 +08:00
parent 4acdcf3ec7
commit 51b41f46da

View File

@ -12,7 +12,7 @@
#include "queue.h"
#include "stack.h"
#define TREE_RECURSIVE_ENABLED
// #define TREE_RECURSIVE_ENABLED
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);
*node = NULL;
}
else
{
printf("+++\n");
}
}
static uint32_t tree_height_node(struct _tree* self, struct _tree_node* root)