Lines Matching refs:expr
86 static void freeexpr(struct expr *);
88 static struct expr *
89 stack_push(struct stack *stk, struct expr *exp) in stack_push()
108 static struct expr *
109 stack_pop(struct stack *stk, struct expr *exp_a, struct expr *exp_b) in stack_pop()
132 freeexpr(struct expr *e) in freeexpr()
158 static struct expr *
162 struct expr *newitem; in setop1()
173 newitem = (struct expr *)calloc(1, sizeof (struct expr)); in setop1()
185 static struct expr *
187 struct expr *exp1, struct expr *exp2, struct expr *exp3) in setop_reduce()
189 struct expr *newitem; in setop_reduce()
210 newitem = (struct expr *)calloc(1, sizeof (struct expr)); in setop_reduce()
240 reduce(struct expr **nexp, unsigned int n, struct expr *exp, struct stack *stk) in reduce()
242 struct expr *exp_op, *exp1, *exp2, *exp3; in reduce()
449 plural_expr(struct expr **e, const char *plural_string) in plural_expr()
453 struct expr *exp, *nexp, *exp_op, *ret; in plural_expr()
461 stk->ptr = malloc(sizeof (struct expr *) * MAX_STACK_SIZE); in plural_expr()
844 plural_eval(struct expr *exp, unsigned int n) in plural_eval()