Set the node auxiliary data to the specified pointer. */
| 269 | |
| 270 | /* Set the node auxiliary data to the specified pointer. */ |
| 271 | void raxSetData(raxNode *n, void *data) { |
| 272 | n->iskey = 1; |
| 273 | if (data != NULL) { |
| 274 | n->isnull = 0; |
| 275 | void **ndata = (void**) |
| 276 | ((char*)n+raxNodeCurrentLength(n)-sizeof(void*)); |
| 277 | memcpy(ndata,&data,sizeof(data)); |
| 278 | } else { |
| 279 | n->isnull = 1; |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | /* Get the node auxiliary data. */ |
| 284 | void *raxGetData(raxNode *n) { |
no outgoing calls
no test coverage detected