Home
last modified time | relevance | path

Searched refs:iterator_p (Results 1 – 2 of 2) sorted by relevance

/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-mem.c293 parser_list_iterator_t *iterator_p) /**< iterator */ in parser_list_iterator_init() argument
295 iterator_p->list_p = list_p; in parser_list_iterator_init()
296 iterator_p->current_p = list_p->data.first_p; in parser_list_iterator_init()
297 iterator_p->current_position = 0; in parser_list_iterator_init()
306 parser_list_iterator_next (parser_list_iterator_t *iterator_p) /**< iterator */ in parser_list_iterator_next() argument
310 if (iterator_p->current_p == NULL) in parser_list_iterator_next()
315 result = iterator_p->current_p->bytes + iterator_p->current_position; in parser_list_iterator_next()
316 iterator_p->current_position += iterator_p->list_p->item_size; in parser_list_iterator_next()
318 if (iterator_p->current_p->next_p == NULL) in parser_list_iterator_next()
320 if (iterator_p->current_position >= iterator_p->list_p->data.last_position) in parser_list_iterator_next()
[all …]
Djs-parser-internal.h609 void parser_list_iterator_init (parser_list_t *list_p, parser_list_iterator_t *iterator_p);
610 void *parser_list_iterator_next (parser_list_iterator_t *iterator_p);