*polished code.
This commit is contained in:
parent
7a2d7037af
commit
1625e827ea
@ -213,7 +213,7 @@ static void _tidy_mem_pool(bool_t force) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for(i = 0; i < pool_count; i++) {
|
for(i = 0; i < pool_count; i++) {
|
||||||
while((s = pool[i].stack)) {
|
while(s = pool[i].stack) {
|
||||||
pool[i].stack = (char*)_POOL_NODE_NEXT(s);
|
pool[i].stack = (char*)_POOL_NODE_NEXT(s);
|
||||||
_POOL_NODE_FREE(s);
|
_POOL_NODE_FREE(s);
|
||||||
}
|
}
|
||||||
@ -292,7 +292,7 @@ static void _close_mem_pool(void) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for(i = 0; i < pool_count; i++) {
|
for(i = 0; i < pool_count; i++) {
|
||||||
while((s = pool[i].stack)) {
|
while(s = pool[i].stack) {
|
||||||
pool[i].stack = (char*)_POOL_NODE_NEXT(s);
|
pool[i].stack = (char*)_POOL_NODE_NEXT(s);
|
||||||
_POOL_NODE_FREE(s);
|
_POOL_NODE_FREE(s);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user