Lines Matching refs:rhs
64 begins_with(struct node *lhs, struct node *rhs, struct lut *ex) in begins_with() argument
73 if (rhs == NULL) in begins_with()
77 ASSERTeq(rhs->t, T_NAME, ptree_nodetype2str); in begins_with()
79 if (lhs->u.name.s != rhs->u.name.s) in begins_with()
95 if (rhs->u.name.child && rhs->u.name.child->t == T_NUM) { in begins_with()
96 rnum = (int)rhs->u.name.child->u.ull; in begins_with()
97 } else if (rhs->u.name.child && rhs->u.name.child->t == T_NAME) { in begins_with()
98 iterinfop = lut_lookup(ex, (void *)rhs->u.name.child->u.name.s, in begins_with()
111 return (begins_with(lhs->u.name.next, rhs->u.name.next, ex)); in begins_with()
218 struct node *rhs; in eval_func() local
232 rhs = eval_getname(funcnp, ex, events, np->u.expr.right, in eval_func()
234 if (!rhs || !lhs) in eval_func()
236 if (rhs->t != T_NAME || lhs->t != T_NAME) { in eval_func()
242 valuep->v = begins_with(lhs, rhs, ex); in eval_func()
246 ptree_name_iter(O_ALTFP|O_VERB2|O_NONL, rhs); in eval_func()
252 tree_free(rhs); in eval_func()
343 rhs = eval_getname(funcnp, ex, events, np->u.expr.right, in eval_func()
345 if (!rhs || !lhs) in eval_func()
347 if (rhs->t != T_NAME || lhs->t != T_NAME) { in eval_func()
359 path = ipath2str(NULL, ipath(rhs)); in eval_func()
361 if (rhs->u.name.last->u.name.cp != NULL) in eval_func()
362 cp[1] = rhs->u.name.last->u.name.cp; in eval_func()
369 tree_free(rhs); in eval_func()