Lines Matching refs:stack
1054 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert() argument
1056 memset(stack, 0, sizeof(*stack)); in dep_stack_insert()
1058 check_top->next = stack; in dep_stack_insert()
1059 stack->prev = check_top; in dep_stack_insert()
1060 stack->sym = sym; in dep_stack_insert()
1061 check_top = stack; in dep_stack_insert()
1078 struct dep_stack *stack; in sym_check_print_recursive() local
1090 for (stack = check_top; stack != NULL; stack = stack->prev) in sym_check_print_recursive()
1091 if (stack->sym == last_sym) in sym_check_print_recursive()
1093 if (!stack) { in sym_check_print_recursive()
1098 for (; stack; stack = stack->next) { in sym_check_print_recursive()
1099 sym = stack->sym; in sym_check_print_recursive()
1100 next_sym = stack->next ? stack->next->sym : last_sym; in sym_check_print_recursive()
1101 type = stack->prop ? stack->prop->type : P_UNKNOWN; in sym_check_print_recursive()
1103 if (stack->sym == last_sym) in sym_check_print_recursive()
1112 } else if (stack->expr == &sym->dir_dep.expr) { in sym_check_print_recursive()
1116 } else if (stack->expr == &sym->rev_dep.expr) { in sym_check_print_recursive()
1119 } else if (stack->expr == &sym->implied.expr) { in sym_check_print_recursive()
1122 } else if (stack->expr) { in sym_check_print_recursive()
1183 struct dep_stack stack; in sym_check_sym_deps() local
1185 dep_stack_insert(&stack, sym); in sym_check_sym_deps()
1187 stack.expr = &sym->dir_dep.expr; in sym_check_sym_deps()
1192 stack.expr = &sym->rev_dep.expr; in sym_check_sym_deps()
1197 stack.expr = &sym->implied.expr; in sym_check_sym_deps()
1202 stack.expr = NULL; in sym_check_sym_deps()
1207 stack.prop = prop; in sym_check_sym_deps()
1213 stack.expr = &prop->expr; in sym_check_sym_deps()
1217 stack.expr = NULL; in sym_check_sym_deps()
1230 struct dep_stack stack; in sym_check_choice_deps() local
1232 dep_stack_insert(&stack, choice); in sym_check_choice_deps()
1286 struct dep_stack stack; in sym_check_deps() local
1289 dep_stack_insert(&stack, sym); in sym_check_deps()