realloc the node to make room for auxiliary data in order * to store an item in that node. On out of memory NULL is returned. */
| 262 | /* realloc the node to make room for auxiliary data in order |
| 263 | * to store an item in that node. On out of memory NULL is returned. */ |
| 264 | raxNode *raxReallocForData(raxNode *n, void *data) { |
| 265 | if (data == NULL) return n; /* No reallocation needed, setting isnull=1 */ |
| 266 | size_t curlen = raxNodeCurrentLength(n); |
| 267 | return rax_realloc(n,curlen+sizeof(void*)); |
| 268 | } |
| 269 | |
| 270 | /* Set the node auxiliary data to the specified pointer. */ |
| 271 | void raxSetData(raxNode *n, void *data) { |
no outgoing calls
no test coverage detected