Parent Directory
|
Revision Log
|
Patch
| Revision 1.1 by sysadm, Thu Jun 12 09:46:42 2025 UTC | Revision 1.5 by sysadm, Sat Jun 21 02:15:18 2025 UTC | |
|---|---|---|
| # | Line 14 | Line 14 |
| 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 | ||
| # | Line 148 void memory_pool_free(MEMORY_POOL *p_poo | Line 148 void memory_pool_free(MEMORY_POOL *p_poo |
| 148 | return; | return; |
| 149 | } | } |
| 150 | ||
| 151 | // For test and debug | |
| 152 | #ifdef _DEBUG | |
| 153 | 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; |
| 158 |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |