Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/xlint lint: add hyphen to adjective 'old-style'



details:   https://anonhg.NetBSD.org/src/rev/cedd7b9e3cfb
branches:  trunk
changeset: 371242:cedd7b9e3cfb
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 01 09:42:40 2022 +0000

description:
lint: add hyphen to adjective 'old-style'

diffstat:

 tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.c |   2 +-
 tests/usr.bin/xlint/lint1/d_lint_assert.c              |   4 +-
 tests/usr.bin/xlint/lint1/decl.c                       |  10 ++--
 tests/usr.bin/xlint/lint1/emit.c                       |   4 +-
 tests/usr.bin/xlint/lint1/msg_001.c                    |  12 +++---
 tests/usr.bin/xlint/lint1/msg_001_c90.c                |   6 +-
 tests/usr.bin/xlint/lint1/msg_007.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_022.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_030.c                    |   8 ++--
 tests/usr.bin/xlint/lint1/msg_032.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_053.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_062.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_072.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_216.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_250.c                    |   4 +-
 tests/usr.bin/xlint/lint1/msg_299.c                    |   6 +-
 tests/usr.bin/xlint/lint1/msg_300.c                    |   8 ++--
 usr.bin/xlint/lint1/cgram.y                            |  14 +++---
 usr.bin/xlint/lint1/decl.c                             |  32 +++++++++---------
 usr.bin/xlint/lint1/emit1.c                            |   6 +-
 usr.bin/xlint/lint1/err.c                              |  10 ++--
 usr.bin/xlint/lint1/func.c                             |  12 +++---
 usr.bin/xlint/lint1/lint1.h                            |   6 +-
 usr.bin/xlint/lint1/tree.c                             |   6 +-
 usr.bin/xlint/lint2/chk.c                              |  20 +++++-----
 usr.bin/xlint/xlint/lint.1                             |   4 +-
 26 files changed, 101 insertions(+), 101 deletions(-)

diffs (truncated from 787 to 300 lines):

diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.c
--- a/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.c    Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.c    Sat Oct 01 09:42:40 2022 +0000
@@ -1,7 +1,7 @@
 # 2 "d_decl_old_style_arguments.c"
 
 /*
- * A function is declared with a prototype, followed by an old style definition
+ * A function is declared with a prototype, followed by an old-style definition
  * that is completely different.
  */
 
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/d_lint_assert.c
--- a/tests/usr.bin/xlint/lint1/d_lint_assert.c Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/d_lint_assert.c Sat Oct 01 09:42:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_lint_assert.c,v 1.5 2022/01/15 14:22:03 rillig Exp $ */
+/*     $NetBSD: d_lint_assert.c,v 1.6 2022/10/01 09:42:40 rillig Exp $ */
 # 3 "d_lint_assert.c"
 
 /*
@@ -19,5 +19,5 @@
  * Before decl.c 1.196 from 2021-07-10, lint ran into an assertion failure
  * for 'sym->s_type != NULL' in declare_argument.
  */
-/* expect+1: warning: old style declaration; add 'int' [1] */
+/* expect+1: warning: old-style declaration; add 'int' [1] */
 c(void());
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/decl.c
--- a/tests/usr.bin/xlint/lint1/decl.c  Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/decl.c  Sat Oct 01 09:42:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: decl.c,v 1.19 2022/08/28 08:41:06 rillig Exp $ */
+/*     $NetBSD: decl.c,v 1.20 2022/10/01 09:42:40 rillig Exp $ */
 # 3 "decl.c"
 
 /*
@@ -104,7 +104,7 @@
 declaration_without_type_specifier(void)
 {
        const i = 3;
-       /* expect-1: error: old style declaration; add 'int' [1] */
+       /* expect-1: error: old-style declaration; add 'int' [1] */
        return i;
 }
 
@@ -159,15 +159,15 @@
     sizeof(const typeof(unsigned_long)) +
     sizeof(const typeof(unnamed_struct));
 
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 /* expect+1: error: syntax error 'int' [249] */
 thread int thread_int;
 __thread int thread_int;
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 /* expect+1: error: syntax error 'int' [249] */
 __thread__ int thread_int;
 
-/* expect+4: error: old style declaration; add 'int' [1] */
+/* expect+4: error: old-style declaration; add 'int' [1] */
 /* expect+2: warning: static function 'cover_func_declarator' unused [236] */
 static
 cover_func_declarator(void)
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/emit.c
--- a/tests/usr.bin/xlint/lint1/emit.c  Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/emit.c  Sat Oct 01 09:42:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emit.c,v 1.13 2022/06/22 19:23:18 rillig Exp $ */
+/*     $NetBSD: emit.c,v 1.14 2022/10/01 09:42:40 rillig Exp $ */
 # 3 "emit.c"
 
 /*
@@ -121,7 +121,7 @@
 
 extern void return_void_unknown_parameters();
 extern /* implicit int */ return_implicit_int_unknown_parameters();
-/* expect-1: error: old style declaration; add 'int' [1] */
+/* expect-1: error: old-style declaration; add 'int' [1] */
 /* For function declarations, the keyword 'extern' is optional. */
 extern void extern_return_void_no_parameters(void);
 /* implicit extern */ void return_void_no_parameters(void);
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_001.c
--- a/tests/usr.bin/xlint/lint1/msg_001.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_001.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,26 +1,26 @@
-/*     $NetBSD: msg_001.c,v 1.7 2022/06/11 11:52:13 rillig Exp $       */
+/*     $NetBSD: msg_001.c,v 1.8 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_001.c"
 
-// Test for message: old style declaration; add 'int' [1]
+// Test for message: old-style declaration; add 'int' [1]
 
-/* expect+1: warning: old style declaration; add 'int' [1] */
+/* expect+1: warning: old-style declaration; add 'int' [1] */
 old_style = 1;
 
 int new_style = 1;
 
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 /* expect+1: warning: static variable 'static_old_style' unused [226] */
 static static_old_style = 1;
 
 /* expect+1: warning: static variable 'static_new_style' unused [226] */
 static int static_new_style = 1;
 
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 extern_implicit_int(void)
 {
 }
 
-/* expect+4: error: old style declaration; add 'int' [1] */
+/* expect+4: error: old-style declaration; add 'int' [1] */
 /* expect+2: warning: static function 'static_implicit_int' unused [236] */
 static
 static_implicit_int(void)
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_001_c90.c
--- a/tests/usr.bin/xlint/lint1/msg_001_c90.c   Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_001_c90.c   Sat Oct 01 09:42:40 2022 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: msg_001_c90.c,v 1.1 2021/07/08 05:18:49 rillig Exp $   */
+/*     $NetBSD: msg_001_c90.c,v 1.2 2022/10/01 09:42:40 rillig Exp $   */
 # 3 "msg_001_c90.c"
 
 /*
- * Test for message: old style declaration; add 'int' [1]
+ * Test for message: old-style declaration; add 'int' [1]
  *
  * In strict C90 mode, an old-style declaration is an error, not merely a
  * warning.
@@ -10,5 +10,5 @@
 
 /* lint1-flags: -s */
 
-/* expect+1: error: old style declaration; add 'int' [1] */
+/* expect+1: error: old-style declaration; add 'int' [1] */
 implicit_global_variable;
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_007.c
--- a/tests/usr.bin/xlint/lint1/msg_007.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_007.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_007.c,v 1.4 2022/04/24 19:21:01 rillig Exp $       */
+/*     $NetBSD: msg_007.c,v 1.5 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_007.c"
 
 // Test for message: only one storage class allowed [7]
@@ -6,5 +6,5 @@
 /* expect+1: error: only one storage class allowed [7] */
 extern static void example(void);
 
-/* expect+1: error: old style declaration; add 'int' [1] */
+/* expect+1: error: old-style declaration; add 'int' [1] */
 extern extern_function(void);
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_022.c
--- a/tests/usr.bin/xlint/lint1/msg_022.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_022.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_022.c,v 1.4 2022/04/05 23:09:19 rillig Exp $       */
+/*     $NetBSD: msg_022.c,v 1.5 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_022.c"
 
 // Test for message: incomplete or misplaced function definition [22]
@@ -26,5 +26,5 @@
 ;
 
 /* expect+2: error: incomplete or misplaced function definition [22] */
-/* expect+1: warning: old style declaration; add 'int' [1] */
+/* expect+1: warning: old-style declaration; add 'int' [1] */
 old_style(arg);
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_030.c
--- a/tests/usr.bin/xlint/lint1/msg_030.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_030.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,21 +1,21 @@
-/*     $NetBSD: msg_030.c,v 1.5 2022/06/11 12:24:00 rillig Exp $       */
+/*     $NetBSD: msg_030.c,v 1.6 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_030.c"
 
 /* Test for message: redeclaration of '%s'; ANSI C requires static [30] */
 
 /* lint1-flags: -sw */
 
-/* expect+1: error: old style declaration; add 'int' [1] */
+/* expect+1: error: old-style declaration; add 'int' [1] */
 static a;
 /* expect+1: warning: redeclaration of 'a'; ANSI C requires static [30] */
 int a;
 
-/* expect+1: error: old style declaration; add 'int' [1] */
+/* expect+1: error: old-style declaration; add 'int' [1] */
 static b;
 /* expect+1: warning: redeclaration of 'b'; ANSI C requires static [30] */
 int b = 1;
 
-/* expect+1: error: old style declaration; add 'int' [1] */
+/* expect+1: error: old-style declaration; add 'int' [1] */
 static c = 1;
 /* expect+1: warning: redeclaration of 'c'; ANSI C requires static [30] */
 int c;
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_032.c
--- a/tests/usr.bin/xlint/lint1/msg_032.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_032.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: msg_032.c,v 1.5 2022/06/20 21:13:36 rillig Exp $       */
+/*     $NetBSD: msg_032.c,v 1.6 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_032.c"
 
 // Test for message: type of argument '%s' defaults to 'int' [32]
 
-/* expect+5: error: old style declaration; add 'int' [1] */
+/* expect+5: error: old-style declaration; add 'int' [1] */
 add(a, b, c)
 /* expect+3: warning: type of argument 'a' defaults to 'int' [32] */
 /* expect+2: warning: type of argument 'b' defaults to 'int' [32] */
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_053.c
--- a/tests/usr.bin/xlint/lint1/msg_053.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_053.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: msg_053.c,v 1.5 2022/06/20 21:13:36 rillig Exp $       */
+/*     $NetBSD: msg_053.c,v 1.6 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_053.c"
 
 // Test for message: declared argument '%s' is missing [53]
 
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 oldstyle(argument)
        int argument;
        /* expect+1: error: declared argument 'extra_argument' is missing [53] */
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_062.c
--- a/tests/usr.bin/xlint/lint1/msg_062.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_062.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: msg_062.c,v 1.5 2022/06/21 21:18:30 rillig Exp $       */
+/*     $NetBSD: msg_062.c,v 1.6 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_062.c"
 
 // Test for message: function prototype parameters must have types [62]
 
-/* expect+1: error: old style declaration; add 'int' [1] */
+/* expect+1: error: old-style declaration; add 'int' [1] */
 outer() {
        /* expect+2: warning: function prototype parameters must have types [62] */
        /* expect+1: warning: dubious static function 'inner' at block level [93] */
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_072.c
--- a/tests/usr.bin/xlint/lint1/msg_072.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_072.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_072.c,v 1.6 2022/04/24 19:21:01 rillig Exp $       */
+/*     $NetBSD: msg_072.c,v 1.7 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_072.c"
 
 // Test for message: typedef declares no type name [72]
@@ -30,6 +30,6 @@
        /* expect+1: error: syntax error 'missing base type for typedef' [249] */
        typedef not_a_type;
 
-       /* expect+1: error: old style declaration; add 'int' [1] */
+       /* expect+1: error: old-style declaration; add 'int' [1] */
        static missing_type;
 }
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_216.c
--- a/tests/usr.bin/xlint/lint1/msg_216.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_216.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: msg_216.c,v 1.5 2022/06/22 19:23:18 rillig Exp $       */
+/*     $NetBSD: msg_216.c,v 1.6 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_216.c"
 
 // Test for message: function '%s' has 'return expr' and 'return' [216]
 
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 random(int n)
 {
        if (n < 0)
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_250.c
--- a/tests/usr.bin/xlint/lint1/msg_250.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_250.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: msg_250.c,v 1.5 2022/06/17 18:54:53 rillig Exp $       */
+/*     $NetBSD: msg_250.c,v 1.6 2022/10/01 09:42:40 rillig Exp $       */
 # 3 "msg_250.c"
 
 // Test for message: unknown character \%o [250]
 
 /* expect+1: error: unknown character \100 [250] */
 @deprecated
-/* expect+2: error: old style declaration; add 'int' [1] */
+/* expect+2: error: old-style declaration; add 'int' [1] */
 /* expect+1: error: syntax error 'char' [249] */
 char *gets(void);
diff -r 13d42eb1323d -r cedd7b9e3cfb tests/usr.bin/xlint/lint1/msg_299.c
--- a/tests/usr.bin/xlint/lint1/msg_299.c       Sat Oct 01 09:27:45 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_299.c       Sat Oct 01 09:42:40 2022 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_299.c,v 1.3 2022/06/16 21:24:41 rillig Exp $       */
+/*     $NetBSD: msg_299.c,v 1.4 2022/10/01 09:42:40 rillig Exp $       */



Home | Main Index | Thread Index | Old Index