From 7245bad9ebb58fc8ce5a322081fc6c39d2dc59c6 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 28 Mar 2018 20:29:20 +0200 Subject: Parenthesize && expressions within || expressions This is redundant from an evaluation perspective, as && has higher precedence than ||, but is easier to read. A && B || C && D is now rendered as "(A && B) || (C && D)". --- tests/Kstr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/Kstr') diff --git a/tests/Kstr b/tests/Kstr index 2498a74..547da9c 100644 --- a/tests/Kstr +++ b/tests/Kstr @@ -30,7 +30,7 @@ config ADVANCED prompt "prompt 2" menuconfig ADVANCED - prompt "prompt 3" if DEP2 && (DEP3 || !DEP4 || !(DEP5 && DEP6)) + prompt "prompt 3" if DEP3 @@ -40,6 +40,8 @@ menu "foo" config ADVANCED help second help text + depends on A || !B || (C && D) || !(E && F) || G = H || \ + (I && !J && (K || L) && !(M || N) && O = P) endmenu -- cgit v1.2.3