svn commit: trunk/busybox/scripts/kconfig
aldot at busybox.net
aldot at busybox.net
Thu Jul 17 01:02:30 PDT 2008
Author: aldot
Date: 2008-07-17 01:02:28 -0700 (Thu, 17 Jul 2008)
New Revision: 22852
Log:
- warn about overlong lines in help-texts
I initially bailed out with an error, but then that's a bit rough. Just warn to trick somebody into fixing them..
Modified:
trunk/busybox/scripts/kconfig/lex.zconf.c_shipped
trunk/busybox/scripts/kconfig/zconf.l
Changeset:
Modified: trunk/busybox/scripts/kconfig/lex.zconf.c_shipped
===================================================================
--- trunk/busybox/scripts/kconfig/lex.zconf.c_shipped 2008-07-17 08:00:58 UTC (rev 22851)
+++ trunk/busybox/scripts/kconfig/lex.zconf.c_shipped 2008-07-17 08:02:28 UTC (rev 22852)
@@ -784,6 +784,11 @@
void append_string(const char *str, int size)
{
int new_size = text_size + size + 1;
+ if (size > 70) {
+ fprintf (stderr, "%s:%d error: Overlong line\n",
+ current_file->name, current_file->lineno);
+ }
+
if (new_size > text_asize) {
new_size += START_STRSIZE - 1;
new_size &= -START_STRSIZE;
Modified: trunk/busybox/scripts/kconfig/zconf.l
===================================================================
--- trunk/busybox/scripts/kconfig/zconf.l 2008-07-17 08:00:58 UTC (rev 22851)
+++ trunk/busybox/scripts/kconfig/zconf.l 2008-07-17 08:02:28 UTC (rev 22852)
@@ -49,6 +49,10 @@
void append_string(const char *str, int size)
{
int new_size = text_size + size + 1;
+ if (size > 70) {
+ fprintf (stderr, "%s:%d error: Overlong line\n",
+ current_file->name, current_file->lineno);
+ }
if (new_size > text_asize) {
new_size += START_STRSIZE - 1;
new_size &= -START_STRSIZE;
More information about the busybox-cvs
mailing list