[Buildroot] svn commit: trunk/buildroot/package/config

jacmet at uclibc.org jacmet at uclibc.org
Thu Oct 16 19:28:24 UTC 2008


Author: jacmet
Date: 2008-10-16 12:28:23 -0700 (Thu, 16 Oct 2008)
New Revision: 23697

Log:
kconfig: only warn about long help lines, not other types of lines

We have some pretty long depends / default y|n lines in BR, which it
shouldn't complain about.

Modified:
   trunk/buildroot/package/config/lex.zconf.c_shipped
   trunk/buildroot/package/config/zconf.l


Changeset:
Modified: trunk/buildroot/package/config/lex.zconf.c_shipped
===================================================================
--- trunk/buildroot/package/config/lex.zconf.c_shipped	2008-10-16 13:29:13 UTC (rev 23696)
+++ trunk/buildroot/package/config/lex.zconf.c_shipped	2008-10-16 19:28:23 UTC (rev 23697)
@@ -815,7 +815,8 @@
 void append_string(const char *str, int size)
 {
 	int new_size = text_size + size + 1;
-	if (size > 70) {
+
+	if ((YY_START == 2 /* HELP */) && (size > 70)) {
 		fprintf (stderr, "%s:%d warning: Overlong line\n",
 		current_file->name, current_file->lineno);
 	}

Modified: trunk/buildroot/package/config/zconf.l
===================================================================
--- trunk/buildroot/package/config/zconf.l	2008-10-16 13:29:13 UTC (rev 23696)
+++ trunk/buildroot/package/config/zconf.l	2008-10-16 19:28:23 UTC (rev 23697)
@@ -49,7 +49,8 @@
 void append_string(const char *str, int size)
 {
 	int new_size = text_size + size + 1;
-	if (size > 70) {
+
+	if ((YY_START == 2 /* HELP */) && (size > 70)) {
 	        fprintf (stderr, "%s:%d warning: Overlong line\n",
 			 current_file->name, current_file->lineno);
 	}




More information about the buildroot mailing list