Home
last modified time | relevance | path

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

/third_party/ltp/lib/
Dtst_bool_expr.c149 static inline void stack_push(struct tst_expr_tok *stack[], unsigned int *op_stack_pos, in stack_push() argument
152 stack[(*op_stack_pos)++] = op; in stack_push()
155 static inline int stack_empty(unsigned int op_stack_pos) in stack_empty() argument
157 return op_stack_pos == 0; in stack_empty()
161 unsigned int *op_stack_pos) in stack_pop() argument
163 if (stack_empty(*op_stack_pos)) in stack_pop()
166 return stack[--(*op_stack_pos)]; in stack_pop()
172 unsigned int op_stack_pos) in stack_peek_op() argument
174 if (stack_empty(op_stack_pos)) in stack_peek_op()
177 return stack[op_stack_pos - 1]->op; in stack_peek_op()
[all …]