mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@ucw.cz>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jens Axboe <axboe@suse.de>, Arjan van de Ven <arjanv@redhat.com>,
	Jeff Garzik <jgarzik@pobox.com>,
	zippel@linux-m68k.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] Allow 'n' as a symbol value in the .config file.
Date: Tue, 5 Nov 2002 19:55:11 +0100	[thread overview]
Message-ID: <20021105185511.GR2502@pasky.ji.cz> (raw)
In-Reply-To: <1036520436.4791.114.camel@irongate.swansea.linux.org.uk>

  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;

  parent reply	other threads:[~2002-11-05 18:48 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-05 16:50 2.5 vi .config ; make oldconfig not working Jens Axboe
2002-11-05 17:08 ` Jeff Garzik
2002-11-05 17:13   ` Dave Jones
2002-11-05 17:16     ` Jens Axboe
2002-11-05 17:21     ` Jeff Garzik
2002-11-05 17:14   ` Jens Axboe
2002-11-05 17:19     ` Jeff Garzik
2002-11-05 17:21       ` Jens Axboe
2002-11-05 18:14         ` Joel Becker
2002-11-05 18:15           ` Jens Axboe
2002-11-06 14:06         ` Roman Zippel
2002-11-06 14:13           ` Jens Axboe
2002-11-05 17:23     ` Randy.Dunlap
2002-11-05 17:26     ` Arjan van de Ven
2002-11-05 17:26       ` Jens Axboe
2002-11-05 17:27         ` Jens Axboe
2002-11-05 18:20         ` Alan Cox
2002-11-05 18:14           ` Jens Axboe
2002-11-05 19:30             ` Sam Ravnborg
2002-11-05 19:42               ` Petr Baudis
2002-11-05 20:51                 ` Sam Ravnborg
2002-11-05 20:16             ` Peter H. Ruegg
2002-11-05 18:55           ` Petr Baudis [this message]
2002-11-05 18:59             ` [PATCH] Allow 'n' as a symbol value in the .config file Jens Axboe
2002-11-06 19:39         ` 2.5 vi .config ; make oldconfig not working Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021105185511.GR2502@pasky.ji.cz \
    --to=pasky@ucw.cz \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=arjanv@redhat.com \
    --cc=axboe@suse.de \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zippel@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®