| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
|
#include "memory_pool.h" |
|
| 17 |
#include "log.h" |
#include "log.h" |
| 18 |
|
#include "memory_pool.h" |
| 19 |
#include <stdlib.h> |
#include <stdlib.h> |
| 20 |
#include <string.h> |
#include <string.h> |
| 21 |
|
|
| 149 |
} |
} |
| 150 |
|
|
| 151 |
// For test and debug |
// For test and debug |
| 152 |
|
#ifdef _DEBUG |
| 153 |
memory_pool_check_node(p_pool, p_node); |
memory_pool_check_node(p_pool, p_node); |
| 154 |
|
#endif |
| 155 |
|
|
| 156 |
memcpy(p_node, &(p_pool->p_free), sizeof(p_pool->p_free)); |
memcpy(p_node, &(p_pool->p_free), sizeof(p_pool->p_free)); |
| 157 |
p_pool->p_free = p_node; |
p_pool->p_free = p_node; |