Lines Matching refs:stack
52 static void push_hll_info(struct cil_stack *stack, uint32_t hll_offset, uint32_t hll_expand)
59 cil_stack_push(stack, CIL_NONE, new);
62 static void pop_hll_info(struct cil_stack *stack, uint32_t *hll_offset, uint32_t *hll_expand)
64 struct cil_stack_item *curr = cil_stack_pop(stack);
96 static int add_hll_linemark(struct cil_tree_node **current, uint32_t *hll_offset, uint32_t *hll_expand, struct cil_stack *stack, char *path)
114 if (cil_stack_is_empty(stack)) {
120 pop_hll_info(stack, hll_offset, hll_expand);
133 push_hll_info(stack, *hll_offset, *hll_expand);
134 if (cil_stack_number_of_items(stack) > CIL_PARSER_MAX_EXPR_DEPTH) {
223 struct cil_stack *stack;
229 cil_stack_init(&stack);
242 rc = add_hll_linemark(¤t, &hll_offset, &hll_expand, stack, path);
300 if (!cil_stack_is_empty(stack)) {
317 cil_stack_destroy(&stack);
324 while (!cil_stack_is_empty(stack)) {
325 pop_hll_info(stack, &hll_offset, &hll_expand);
328 cil_stack_destroy(&stack);