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. */
| 1694 | * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is |
| 1695 | * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */ |
| 1696 | int raxNext(raxIterator *it) { |
| 1697 | if (!raxIteratorNextStep(it,0)) { |
| 1698 | errno = ENOMEM; |
| 1699 | return 0; |
| 1700 | } |
| 1701 | if (it->flags & RAX_ITER_EOF) { |
| 1702 | errno = 0; |
| 1703 | return 0; |
| 1704 | } |
| 1705 | return 1; |
| 1706 | } |
| 1707 | |
| 1708 | /* Go to the previous element in the scope of the iterator 'it'. |
| 1709 | * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is |
no test coverage detected