Set the node auxiliary data to the specified pointer. */
| 224 | |
| 225 | /* Set the node auxiliary data to the specified pointer. */ |
| 226 | void raxSetData(raxNode *n, void *data) { |
| 227 | n->iskey = 1; |
| 228 | if (data != NULL) { |
| 229 | n->isnull = 0; |
| 230 | void **ndata = (void**) |
| 231 | ((char*)n+raxNodeCurrentLength(n)-sizeof(void*)); |
| 232 | memcpy(ndata,&data,sizeof(data)); |
| 233 | } else { |
| 234 | n->isnull = 1; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | /* Get the node auxiliary data. */ |
| 239 | void *raxGetData(raxNode *n) { |
no outgoing calls
no test coverage detected