| 36 | } |
| 37 | |
| 38 | static void list_dealloc( LIST * l ) |
| 39 | { |
| 40 | unsigned size = list_length( l ); |
| 41 | unsigned bucket; |
| 42 | LIST * node = l; |
| 43 | |
| 44 | if ( size == 0 ) return; |
| 45 | |
| 46 | bucket = get_bucket( size );; |
| 47 | |
| 48 | #ifdef BJAM_NO_MEM_CACHE |
| 49 | BJAM_FREE( node ); |
| 50 | #else |
| 51 | node->impl.next = freelist[ bucket ]; |
| 52 | freelist[ bucket ] = node; |
| 53 | #endif |
| 54 | } |
| 55 | |
| 56 | /* |
| 57 | * list_append() - append a list onto another one, returning total |
no test coverage detected