All of lore.kernel.org
 help / color / mirror / Atom feed
From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/config
Date: Sat, 29 Sep 2007 13:21:39 -0700 (PDT)	[thread overview]
Message-ID: <20070929202139.8729830043@busybox.net> (raw)

Author: aldot
Date: 2007-09-29 13:21:38 -0700 (Sat, 29 Sep 2007)
New Revision: 20125

Log:
- pull "kconfig: oldconfig shall not set symbols if it does not need to"


Modified:
   trunk/buildroot/package/config/conf.c


Changeset:
Modified: trunk/buildroot/package/config/conf.c
===================================================================
--- trunk/buildroot/package/config/conf.c	2007-09-29 20:08:22 UTC (rev 20124)
+++ trunk/buildroot/package/config/conf.c	2007-09-29 20:21:38 UTC (rev 20125)
@@ -64,7 +64,7 @@
 	}
 }
 
-static void conf_askvalue(struct symbol *sym, const char *def)
+static int conf_askvalue(struct symbol *sym, const char *def)
 {
 	enum symbol_type type = sym_get_type(sym);
 	tristate val;
@@ -79,7 +79,7 @@
 		printf("%s\n", def);
 		line[0] = '\n';
 		line[1] = 0;
-		return;
+		return 0;
 	}
 
 	switch (input_mode) {
@@ -89,23 +89,23 @@
 	case set_random:
 		if (sym_has_value(sym)) {
 			printf("%s\n", def);
-			return;
+			return 0;
 		}
 		break;
 	case ask_new:
 	case ask_silent:
 		if (sym_has_value(sym)) {
 			printf("%s\n", def);
-			return;
+			return 0;
 		}
 		check_stdin();
 	case ask_all:
 		fflush(stdout);
 		fgets(line, 128, stdin);
-		return;
+		return 1;
 	case set_default:
 		printf("%s\n", def);
-		return;
+		return 1;
 	default:
 		break;
 	}
@@ -115,7 +115,7 @@
 	case S_HEX:
 	case S_STRING:
 		printf("%s\n", def);
-		return;
+		return 1;
 	default:
 		;
 	}
@@ -166,6 +166,7 @@
 		break;
 	}
 	printf("%s", line);
+	return 1;
 }
 
 int conf_string(struct menu *menu)
@@ -179,7 +180,8 @@
 		def = sym_get_string_value(sym);
 		if (sym_get_string_value(sym))
 			printf("[%s] ", def);
-		conf_askvalue(sym, def);
+		if (!conf_askvalue(sym, def))
+			return 0;
 		switch (line[0]) {
 		case '\n':
 			break;
@@ -236,7 +238,8 @@
 		if (sym->help)
 			printf("/?");
 		printf("] ");
-		conf_askvalue(sym, sym_get_string_value(sym));
+		if (!conf_askvalue(sym, sym_get_string_value(sym)))
+			return 0;
 		strip(line);
 
 		switch (line[0]) {

             reply	other threads:[~2007-09-29 20:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-29 20:21 aldot at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-13 11:52 [Buildroot] svn commit: trunk/buildroot/package/config jacmet at uclibc.org
2008-10-16 19:28 jacmet at uclibc.org
2008-08-27 20:18 jacmet at uclibc.org
2008-06-19 19:06 jacmet at uclibc.org
2008-06-19  8:11 jacmet at uclibc.org
2008-06-19 16:44 ` hartleys
2008-06-19 18:18   ` Fathi Boudra
2008-06-19 19:07     ` Peter Korsgaard
2008-06-19 19:06   ` Peter Korsgaard
2007-09-29 20:08 aldot at uclibc.org
2007-09-23 20:46 aldot at uclibc.org
2007-09-23 20:28 aldot at uclibc.org
2007-09-23 14:12 aldot at uclibc.org
2007-07-24 18:20 aldot at uclibc.org
2007-07-20  7:47 ulf at uclibc.org
2007-07-11 14:47 ulf at uclibc.org
2007-07-08  0:18 aldot at uclibc.org
2007-07-07 18:17 aldot at uclibc.org
2007-07-06  4:58 sjhill at uclibc.org
2007-07-02 14:35 aldot at uclibc.org
2007-06-28 22:38 aldot at uclibc.org
2007-06-28 12:11 aldot at uclibc.org
2007-06-28 11:54 aldot at uclibc.org

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=20070929202139.8729830043@busybox.net \
    --to=aldot@uclibc.org \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.