Lines Matching refs:len
29 int len; member
35 (s)->len = 0; \
42 …tic inline int zend_worklist_stack_prepare(zend_arena **arena, zend_worklist_stack *stack, int len) in zend_worklist_stack_prepare() argument
44 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare()
46 stack->buf = (int*)zend_arena_calloc(arena, sizeof(*stack->buf), len); in zend_worklist_stack_prepare()
47 stack->len = 0; in zend_worklist_stack_prepare()
48 stack->capacity = len; in zend_worklist_stack_prepare()
55 ZEND_ASSERT(stack->len < stack->capacity); in zend_worklist_stack_push()
56 stack->buf[stack->len++] = i; in zend_worklist_stack_push()
61 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek()
62 return stack->buf[stack->len - 1]; in zend_worklist_stack_peek()
67 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop()
68 return stack->buf[--stack->len]; in zend_worklist_stack_pop()
78 (w)->stack.len = 0; \
87 static inline int zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument
89 ZEND_ASSERT(len >= 0); in zend_worklist_prepare()
90 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare()
91 return zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
96 return worklist->stack.len; in zend_worklist_len()