[PATCH] Allow 'n' as a symbol value in the .config file.

Petr Baudis (pasky@ucw.cz)
Tue, 5 Nov 2002 19:55:11 +0100


Hello,

this patch (against 2.5.46) enabled recognition of 'n' tristate/boolean
symbol value in the .config file. This allows more convenient manual editing of
the .config file. Please apply.

confdata.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)

Kind regards,
Petr Baudis

--- linux/scripts/kconfig/confdata.c Fri Nov 1 22:22:07 2002
+++ linux+pasky/scripts/kconfig/confdata.c Tue Nov 5 19:54:12 2002
@@ -1,6 +1,9 @@
/*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
+ *
+ * Allow 'n' as a symbol value.
+ * 2002-11-05 Petr Baudis <pasky@ucw.cz>
*/

#include <ctype.h>
@@ -146,13 +149,13 @@
break;
}
switch (sym->type) {
- case S_BOOLEAN:
- sym->def = symbol_yes.curr;
- sym->flags &= ~SYMBOL_NEW;
- break;
case S_TRISTATE:
if (p[0] == 'm')
sym->def = symbol_mod.curr;
+ else
+ case S_BOOLEAN:
+ if (p[0] == 'n')
+ sym->def = symbol_no.curr;
else
sym->def = symbol_yes.curr;
sym->flags &= ~SYMBOL_NEW;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/