Go to the next element in the scope of the iterator 'it'. * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */
| 2111 | * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is |
| 2112 | * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */ |
| 2113 | int raxNext(raxIterator *it) { |
| 2114 | if (!raxIteratorNextStep(it,0)) { |
| 2115 | errno = ENOMEM; |
| 2116 | return 0; |
| 2117 | } |
| 2118 | if (it->flags & RAX_ITER_EOF) { |
| 2119 | errno = 0; |
| 2120 | return 0; |
| 2121 | } |
| 2122 | return 1; |
| 2123 | } |
| 2124 | |
| 2125 | /* Go to the previous element in the scope of the iterator 'it'. |
| 2126 | * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is |
nothing calls this directly
no test coverage detected