소스 검색

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.
Peter Korsgaard 17 년 전
부모
커밋
50548330b4
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      package/config/lex.zconf.c_shipped
  2. 2 1
      package/config/zconf.l

+ 2 - 1
package/config/lex.zconf.c_shipped

@@ -815,7 +815,8 @@ void new_string(void)
 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);
 	}

+ 2 - 1
package/config/zconf.l

@@ -49,7 +49,8 @@ void new_string(void)
 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);
 	}