Lines Matching refs:stack
973 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert() argument
975 memset(stack, 0, sizeof(*stack)); in dep_stack_insert()
977 check_top->next = stack; in dep_stack_insert()
978 stack->prev = check_top; in dep_stack_insert()
979 stack->sym = sym; in dep_stack_insert()
980 check_top = stack; in dep_stack_insert()
997 struct dep_stack *stack; in sym_check_print_recursive() local
1008 for (stack = check_top; stack != NULL; stack = stack->prev) in sym_check_print_recursive()
1009 if (stack->sym == last_sym) in sym_check_print_recursive()
1011 if (!stack) { in sym_check_print_recursive()
1016 for (; stack; stack = stack->next) { in sym_check_print_recursive()
1017 sym = stack->sym; in sym_check_print_recursive()
1018 next_sym = stack->next ? stack->next->sym : last_sym; in sym_check_print_recursive()
1019 prop = stack->prop; in sym_check_print_recursive()
1021 prop = stack->sym->prop; in sym_check_print_recursive()
1031 if (stack->sym == last_sym) in sym_check_print_recursive()
1045 } else if (stack->expr == &sym->dir_dep.expr) { in sym_check_print_recursive()
1050 } else if (stack->expr == &sym->rev_dep.expr) { in sym_check_print_recursive()
1055 } else if (stack->expr == &sym->implied.expr) { in sym_check_print_recursive()
1060 } else if (stack->expr) { in sym_check_print_recursive()
1123 struct dep_stack stack; in sym_check_sym_deps() local
1125 dep_stack_insert(&stack, sym); in sym_check_sym_deps()
1127 stack.expr = &sym->dir_dep.expr; in sym_check_sym_deps()
1132 stack.expr = &sym->rev_dep.expr; in sym_check_sym_deps()
1137 stack.expr = &sym->implied.expr; in sym_check_sym_deps()
1142 stack.expr = NULL; in sym_check_sym_deps()
1148 stack.prop = prop; in sym_check_sym_deps()
1154 stack.expr = &prop->expr; in sym_check_sym_deps()
1158 stack.expr = NULL; in sym_check_sym_deps()
1172 struct dep_stack stack; in sym_check_choice_deps() local
1174 dep_stack_insert(&stack, choice); in sym_check_choice_deps()
1217 struct dep_stack stack; in sym_check_deps() local
1220 dep_stack_insert(&stack, sym); in sym_check_deps()