Lines Matching defs:ops
789 struct ops;
791 typedef Linetype eval_fn(const struct ops *, int *, const char **);
802 static const struct ops {
825 eval_unary(const struct ops *ops, int *valp, const char **cpp)
835 debug("eval%d !", ops - eval_ops);
837 lt = eval_unary(ops, valp, &cp);
846 debug("eval%d (", ops - eval_ops);
854 debug("eval%d number", ops - eval_ops);
862 debug("eval%d defined", ops - eval_ops);
882 debug("eval%d symbol", ops - eval_ops);
900 debug("eval%d bad expr", ops - eval_ops);
905 debug("eval%d = %d", ops - eval_ops, *valp);
913 eval_table(const struct ops *ops, int *valp, const char **cpp)
920 debug("eval%d", ops - eval_ops);
922 lt = ops->inner(ops+1, valp, &cp);
927 for (op = ops->op; op->str != NULL; op++)
933 debug("eval%d %s", ops - eval_ops, op->str);
934 rt = ops->inner(ops+1, &val, &cp);
941 debug("eval%d = %d", ops - eval_ops, *valp);
942 debug("eval%d lt = %s", ops - eval_ops, linetype_name[lt]);