[lkml]   [2003]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject2.6 bug: kconfig implementation doesn't match the spec
Hi Roman,

the implementation of the !-operator doesn't match the spec in

kconfig-language.txt says:

<-- snip -->

'!' <expr> (5)
(5) Returns the result of (2-/expr/).
An expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2
respectively for calculations). A menu entry becomes visible when it's
expression evaluates to 'm' or 'y'.

<-- snip -->

The current implementation evaluates !m to 0 instead of 1.

An example:

config FOO
default m

config BAR
default y if !FOO
default n

According to the kconfig spec BAR should be y, but the implementation in
2.6.0-mm5 sets BAR to n.

The semantics of the implemention seems to be a bit less surprising
than the semantics of the spec.



"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.082 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site