Lines Matching refs:right
39 e->right.expr = e2; in expr_alloc_two()
48 e->right.sym = s2; in expr_alloc_comp()
89 e->right.sym = org->right.sym; in expr_copy()
95 e->right.expr = expr_copy(org->right.expr); in expr_copy()
128 expr_free(e->right.expr); in expr_free()
156 __expr_eliminate_eq(type, &e1->right.expr, &e2); in __expr_eliminate_eq()
161 __expr_eliminate_eq(type, &e1, &e2->right.expr); in __expr_eliminate_eq()
272 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
323 e->right.expr = expr_eliminate_yn(e->right.expr); in expr_eliminate_yn()
327 expr_free(e->right.expr); in expr_eliminate_yn()
330 e->right.expr = NULL; in expr_eliminate_yn()
334 tmp = e->right.expr; in expr_eliminate_yn()
335 *e = *(e->right.expr); in expr_eliminate_yn()
340 if (e->right.expr->type == E_SYMBOL) { in expr_eliminate_yn()
341 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
343 expr_free(e->right.expr); in expr_eliminate_yn()
346 e->right.expr = NULL; in expr_eliminate_yn()
348 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
349 free(e->right.expr); in expr_eliminate_yn()
359 e->right.expr = expr_eliminate_yn(e->right.expr); in expr_eliminate_yn()
363 tmp = e->right.expr; in expr_eliminate_yn()
364 *e = *(e->right.expr); in expr_eliminate_yn()
369 expr_free(e->right.expr); in expr_eliminate_yn()
372 e->right.expr = NULL; in expr_eliminate_yn()
376 if (e->right.expr->type == E_SYMBOL) { in expr_eliminate_yn()
377 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
378 free(e->right.expr); in expr_eliminate_yn()
383 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
385 expr_free(e->right.expr); in expr_eliminate_yn()
388 e->right.expr = NULL; in expr_eliminate_yn()
411 e->right.expr = expr_trans_bool(e->right.expr); in expr_trans_bool()
416 if (e->right.sym == &symbol_no) { in expr_trans_bool()
418 e->right.sym = NULL; in expr_trans_bool()
461 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) || in expr_join_or()
462 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) { in expr_join_or()
467 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) || in expr_join_or()
468 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) { in expr_join_or()
473 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) || in expr_join_or()
474 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) { in expr_join_or()
524 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_yes) || in expr_join_and()
525 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_yes)) in expr_join_and()
529 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_no) || in expr_join_and()
530 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_no)) in expr_join_and()
534 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_mod) || in expr_join_and()
535 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_mod)) in expr_join_and()
542 sym2 = e1->right.sym; in expr_join_and()
543 if ((e2->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST)) in expr_join_and()
544 return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2) in expr_join_and()
549 sym2 = e2->right.sym; in expr_join_and()
550 if ((e1->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST)) in expr_join_and()
551 return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2) in expr_join_and()
555 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) || in expr_join_and()
556 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) in expr_join_and()
561 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) || in expr_join_and()
562 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) in expr_join_and()
567 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) || in expr_join_and()
568 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) in expr_join_and()
572 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_mod) || in expr_join_and()
573 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_mod) || in expr_join_and()
574 (e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_yes) || in expr_join_and()
575 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_yes)) in expr_join_and()
606 expr_eliminate_dups1(type, &e1->right.expr, &e2); in expr_eliminate_dups1()
611 expr_eliminate_dups1(type, &e1, &e2->right.expr); in expr_eliminate_dups1()
712 e->right.expr = expr_transform(e->right.expr); in expr_transform()
719 if (e->right.sym == &symbol_no) { in expr_transform()
722 e->right.sym = NULL; in expr_transform()
725 if (e->right.sym == &symbol_mod) { in expr_transform()
729 e->right.sym = NULL; in expr_transform()
732 if (e->right.sym == &symbol_yes) { in expr_transform()
734 e->right.sym = NULL; in expr_transform()
741 if (e->right.sym == &symbol_no) { in expr_transform()
743 e->right.sym = NULL; in expr_transform()
746 if (e->right.sym == &symbol_mod) { in expr_transform()
750 e->right.sym = NULL; in expr_transform()
753 if (e->right.sym == &symbol_yes) { in expr_transform()
756 e->right.sym = NULL; in expr_transform()
798 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr); in expr_transform()
800 tmp->right.expr = NULL; in expr_transform()
807 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr); in expr_transform()
809 tmp->right.expr = NULL; in expr_transform()
860 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
870 dep->right.sym == sym; in expr_contains_symbol()
887 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
892 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
898 if (dep->right.sym == &symbol_no) in expr_depends_symbol()
935 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym); in expr_trans_compare()
945 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym); in expr_trans_compare()
1047 val2 = expr_calc_value(e->right.expr); in expr_calc_value()
1051 val2 = expr_calc_value(e->right.expr); in expr_calc_value()
1069 sym_calc_value(e->right.sym); in expr_calc_value()
1071 str2 = sym_get_string_value(e->right.sym); in expr_calc_value()
1073 if (e->left.sym->type != S_STRING || e->right.sym->type != S_STRING) { in expr_calc_value()
1075 k2 = expr_parse_string(str2, e->right.sym->type, &rval); in expr_calc_value()
1166 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1175 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1184 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1192 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1197 expr_print(e->right.expr, fn, data, E_OR); in expr_print()
1202 expr_print(e->right.expr, fn, data, E_AND); in expr_print()
1205 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1215 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1286 expr_print_revdep(e->right.expr, fn, data, pr_type, title); in expr_print_revdep()