From 94a0f92e1a36d68c95781e916a94a377b7081d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 29 Apr 2015 10:17:05 +0200 Subject: Add prompt variable to parse_kconfig --- scripts/parse_kconfig/cnfexpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/parse_kconfig/cnfexpr.c') diff --git a/scripts/parse_kconfig/cnfexpr.c b/scripts/parse_kconfig/cnfexpr.c index 9939670..ea0b453 100644 --- a/scripts/parse_kconfig/cnfexpr.c +++ b/scripts/parse_kconfig/cnfexpr.c @@ -9,7 +9,7 @@ struct cnfexpr *cnf_not(struct cnfexpr *el); struct cnfexpr *cnf_copy(struct cnfexpr *el); void free_cnf(struct cnfexpr *e); -struct cnfexpr *kconfig_cnfexpr(struct symlist *sl, bool nt, +struct cnfexpr *kconfig_cnfexpr(struct symlist *sl, bool nt, bool def, struct symbol *sym, struct expr *expr) { struct stck { struct expr *expr; @@ -94,7 +94,7 @@ struct cnfexpr *kconfig_cnfexpr(struct symlist *sl, bool nt, free(stack); struct symlist_el *se = symlist_find(sl, sym->name); - if (se->prompt || nt == true) + if (se->prompt || (nt == true && def == true)) rtrn = cnf_or(cnf_sym(sl, !nt, sym), rtrn); else { struct cnfexpr *w12 = cnf_not(cnf_copy(rtrn)); -- cgit v1.2.3