From fffd30e6ea060b2abebb7ba9cdf881da00ca4cb9 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 17 Sep 2017 04:23:40 +0200 Subject: Add 'imply' support This is like a 'select' that only changes the default value of a symbol, not limiting what values the user can set it to (with one exception: A symbol implied to 'y' can't be set to 'm'). Symbol.get_implied_symbols() was added, corresponding to Symbol.get_selected_symbols(), and Symbol.__str__() was extended to print implied symbols and weak reverse dependencies. Weak reverse dependencies are the 'imply' version of 'select's reverse dependencies. --- tests/Ktext | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/Ktext') diff --git a/tests/Ktext b/tests/Ktext index dd9fd82..c645bde 100644 --- a/tests/Ktext +++ b/tests/Ktext @@ -7,6 +7,8 @@ config ADVANCED tristate "advanced prompt 1" if y || (BASIC && BASIC) select SELECTED_1 if BASIC && DUMMY select SELECTED_2 if !(DUMMY || BASIC) + imply IMPLIED_1 if BASIC || DUMMY + imply IMPLIED_2 if !(DUMMY && BASIC) default y if BASIC && !BASIC default n if BASIC = DUMMY @@ -21,6 +23,10 @@ config SELECTING_1 select ADVANCED if BASIC config SELECTING_2 select ADVANCED if !BASIC +config IMPLYING_1 + imply ADVANCED if DUMMY +config IMPLYING_2 + imply ADVANCED if !DUMMY config INT int -- cgit v1.2.3