summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-07-17 08:02:28 +0000
committerBernhard Reutner-Fischer2008-07-17 08:02:28 +0000
commit627052e75d6657a029a328cffd0832cb581b82fd (patch)
tree0488824b9fdb2f6dc11e8a459a90805ecdf0208e /scripts
parentc185e290eec2aec779dce5f1bc5e540451167707 (diff)
downloadbusybox-627052e75d6657a029a328cffd0832cb581b82fd.zip
busybox-627052e75d6657a029a328cffd0832cb581b82fd.tar.gz
- 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..
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped5
-rw-r--r--scripts/kconfig/zconf.l4
2 files changed, 9 insertions, 0 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
index b4792d3..5fc323d 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -784,6 +784,11 @@ void new_string(void)
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;
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index cfa4607..d839577 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -49,6 +49,10 @@ void new_string(void)
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;