| 135 | } |
| 136 | |
| 137 | static void __Heap_offerx |
| 138 | ( |
| 139 | heap_t *hp, |
| 140 | void *item |
| 141 | ) { |
| 142 | hp->array[hp->count] = item; |
| 143 | |
| 144 | // ensure heap properties |
| 145 | __pushup(hp, hp->count++); |
| 146 | } |
| 147 | |
| 148 | // return a new heap on success; NULL otherwise |
| 149 | static heap_t* __ensurecapacity |
no test coverage detected