diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-17 08:02:28 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-17 08:02:28 +0000 |
commit | 627052e75d6657a029a328cffd0832cb581b82fd (patch) | |
tree | 0488824b9fdb2f6dc11e8a459a90805ecdf0208e | |
parent | c185e290eec2aec779dce5f1bc5e540451167707 (diff) | |
download | busybox-w32-627052e75d6657a029a328cffd0832cb581b82fd.tar.gz busybox-w32-627052e75d6657a029a328cffd0832cb581b82fd.tar.bz2 busybox-w32-627052e75d6657a029a328cffd0832cb581b82fd.zip |
- 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..
-rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 5 | ||||
-rw-r--r-- | scripts/kconfig/zconf.l | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped index b4792d344..5fc323de3 100644 --- a/scripts/kconfig/lex.zconf.c_shipped +++ b/scripts/kconfig/lex.zconf.c_shipped | |||
@@ -784,6 +784,11 @@ void new_string(void) | |||
784 | void append_string(const char *str, int size) | 784 | void append_string(const char *str, int size) |
785 | { | 785 | { |
786 | int new_size = text_size + size + 1; | 786 | int new_size = text_size + size + 1; |
787 | if (size > 70) { | ||
788 | fprintf (stderr, "%s:%d error: Overlong line\n", | ||
789 | current_file->name, current_file->lineno); | ||
790 | } | ||
791 | |||
787 | if (new_size > text_asize) { | 792 | if (new_size > text_asize) { |
788 | new_size += START_STRSIZE - 1; | 793 | new_size += START_STRSIZE - 1; |
789 | new_size &= -START_STRSIZE; | 794 | new_size &= -START_STRSIZE; |
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index cfa46077c..d839577ca 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l | |||
@@ -49,6 +49,10 @@ void new_string(void) | |||
49 | void append_string(const char *str, int size) | 49 | void append_string(const char *str, int size) |
50 | { | 50 | { |
51 | int new_size = text_size + size + 1; | 51 | int new_size = text_size + size + 1; |
52 | if (size > 70) { | ||
53 | fprintf (stderr, "%s:%d error: Overlong line\n", | ||
54 | current_file->name, current_file->lineno); | ||
55 | } | ||
52 | if (new_size > text_asize) { | 56 | if (new_size > text_asize) { |
53 | new_size += START_STRSIZE - 1; | 57 | new_size += START_STRSIZE - 1; |
54 | new_size &= -START_STRSIZE; | 58 | new_size &= -START_STRSIZE; |