Go next by one character, and pass it to *out, * if it's out of bounds return error */
| 152 | * if it's out of bounds return error |
| 153 | */ |
| 154 | HELL_DEF hell_parser_status_t hell_parser_next(hell_parser_t *parser, char *out) |
| 155 | { |
| 156 | if (!parser || !out || parser->pos >= parser->length) |
| 157 | { |
| 158 | return HELL_PARSER_ERROR; |
| 159 | } |
| 160 | *out = parser->input[parser->pos++]; |
| 161 | return HELL_PARSER_OK; |
| 162 | } |
| 163 | |
| 164 | HELL_DEF hell_parser_status_t hell_parser_delim(hell_parser_t *parser, char delim, unsigned count) |
| 165 | { |
nothing calls this directly
no outgoing calls
no test coverage detected