Lines Matching refs:len
27 int len; member
33 (s)->len = 0; \
40 …tic inline int zend_worklist_stack_prepare(zend_arena **arena, zend_worklist_stack *stack, int len) in zend_worklist_stack_prepare() argument
42 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare()
44 stack->buf = (int*)zend_arena_calloc(arena, sizeof(*stack->buf), len); in zend_worklist_stack_prepare()
45 stack->len = 0; in zend_worklist_stack_prepare()
46 stack->capacity = len; in zend_worklist_stack_prepare()
53 ZEND_ASSERT(stack->len < stack->capacity); in zend_worklist_stack_push()
54 stack->buf[stack->len++] = i; in zend_worklist_stack_push()
59 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek()
60 return stack->buf[stack->len - 1]; in zend_worklist_stack_peek()
65 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop()
66 return stack->buf[--stack->len]; in zend_worklist_stack_pop()
76 (w)->stack.len = 0; \
85 static inline int zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument
87 ZEND_ASSERT(len >= 0); in zend_worklist_prepare()
88 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare()
89 return zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
94 return worklist->stack.len; in zend_worklist_len()