Create a standalone leaf node storing the specified value. */
| 196 | |
| 197 | /* Create a standalone leaf node storing the specified value. */ |
| 198 | static inline raxNode *raxNewValueNode(void *data) { |
| 199 | raxNode *leaf = raxNewNode(0,data != NULL); |
| 200 | if (leaf == NULL) return NULL; |
| 201 | leaf->iskey = 1; |
| 202 | if (data != NULL) { |
| 203 | leaf->isnull = 0; |
| 204 | raxSetData(leaf,data); |
| 205 | } else { |
| 206 | leaf->isnull = 1; |
| 207 | } |
| 208 | return leaf; |
| 209 | } |
| 210 | |
| 211 | /* Convert an inline leaf value stored in 'parentlink' into a real leaf node. */ |
| 212 | static inline int raxMaterializeInlineLeaf(rax *rax, raxNode *parent, |
no test coverage detected