Lines Matching refs:stack
34 struct cil_stack_item *stack; member
44 #define cil_stack_for_each_starting_at(stack, start, pos, item) \ argument
45 …for (pos = start, item = cil_stack_peek_at(stack, pos); item != NULL; pos++, item = cil_stack_peek…
47 #define cil_stack_for_each(stack, pos, item) cil_stack_for_each_starting_at(stack, 0, pos, item) argument
50 void cil_stack_init(struct cil_stack **stack);
51 void cil_stack_destroy(struct cil_stack **stack);
53 void cil_stack_empty(struct cil_stack *stack);
54 int cil_stack_is_empty(struct cil_stack *stack);
56 void cil_stack_push(struct cil_stack *stack, enum cil_flavor flavor, void *data);
57 struct cil_stack_item *cil_stack_pop(struct cil_stack *stack);
58 struct cil_stack_item *cil_stack_peek(struct cil_stack *stack);
59 struct cil_stack_item *cil_stack_peek_at(struct cil_stack *stack, int pos);