Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f7a4b4cdc26846a0ac5b3023cb1b97dc632dfd35
Commit:     f7a4b4cdc26846a0ac5b3023cb1b97dc632dfd35
Parent:     1020026f99069976001816b8198bc04ee342cd2e
Author:     EGRY Gabor <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 11 23:55:20 2008 +0100
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 23:14:38 2008 +0100

    kconfig: whitespace removing
    
    This patch removes the unnecessary whitespaces from
    end of help lines of Kconfig files.
    
    Signed-off-by: Egry Gabor <[EMAIL PROTECTED]>
    Reviewed-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Cc: Roman Zippel <[EMAIL PROTECTED]>
---
 scripts/kconfig/lex.zconf.c_shipped |    5 +++++
 scripts/kconfig/zconf.l             |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/lex.zconf.c_shipped 
b/scripts/kconfig/lex.zconf.c_shipped
index a065d5a..bed0f4e 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -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;
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index 187d38c..4cea5c8 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to