mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: EGRY Gabor <gaboregry1@t-online.hu>
To: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-kernel@zh-kernel.org
Subject: [PATCH 10/10] kconfig: whitespace removing
Date: Fri, 11 Jan 2008 23:55:20 +0100	[thread overview]
Message-ID: <1200092120.10603.54.camel@localhost.localdomain> (raw)


This patch removes the unnecessary whitespaces from end of help lines of Kconfig files.

Signed-off-by: Egry Gabor <gaboregry1@t-online.hu>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
---

 kbuild-szilard/scripts/kconfig/lex.zconf.c_shipped |    5 +++++
 kbuild-szilard/scripts/kconfig/zconf.l             |    5 +++++
 2 files changed, 10 insertions(+)

diff -puN scripts/kconfig/zconf.l~kconfig-i18n-18-whitespace-fix scripts/kconfig/zconf.l
--- kbuild/scripts/kconfig/zconf.l~kconfig-i18n-18-whitespace-fix	2008-01-11 22:27:19.000000000 +0100
+++ kbuild-szilard/scripts/kconfig/zconf.l	2008-01-11 22:27:19.000000000 +0100
@@ -217,6 +217,11 @@ n	[A-Za-z0-9_]
 		append_string("\n", 1);
 	}
 	[^ \t\n].* {
+		while (yyleng) {
+			if ((yytext[yyleng-1] != ' ') && (yytext[yyleng-1] != '\t'))
+				break;
+			yyleng--;
+		}
 		append_string(yytext, yyleng);
 		if (!first_ts)
 			first_ts = last_ts;
diff -puN scripts/kconfig/lex.zconf.c_shipped~kconfig-i18n-18-whitespace-fix scripts/kconfig/lex.zconf.c_shipped
--- kbuild/scripts/kconfig/lex.zconf.c_shipped~kconfig-i18n-18-whitespace-fix	2008-01-11 22:27:19.000000000 +0100
+++ kbuild-szilard/scripts/kconfig/lex.zconf.c_shipped	2008-01-11 22:27:19.000000000 +0100
@@ -1275,6 +1275,11 @@ YY_RULE_SETUP
 case 32:
 YY_RULE_SETUP
 {
+		while (zconfleng) {
+			if ((zconftext[zconfleng-1] != ' ') && (zconftext[zconfleng-1] != '\t'))
+				break;
+			zconfleng--;
+		}
 		append_string(zconftext, zconfleng);
 		if (!first_ts)
 			first_ts = last_ts;
_


                 reply	other threads:[~2008-01-11 22:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1200092120.10603.54.camel@localhost.localdomain \
    --to=gaboregry1@t-online.hu \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kernel@zh-kernel.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®