Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: properly name C99 in message about...



details:   https://anonhg.NetBSD.org/src/rev/805d3ca32f09
branches:  trunk
changeset: 953769:805d3ca32f09
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Mar 20 14:17:56 2021 +0000

description:
lint: properly name C99 in message about declaration after statement

Now that C99 has been released and published, there is no reason anymore
to refer to it as C9X.

diffstat:

 tests/usr.bin/xlint/lint1/msg_327.c   |  4 ++--
 tests/usr.bin/xlint/lint1/msg_327.exp |  4 ++--
 usr.bin/xlint/lint1/cgram.y           |  6 +++---
 usr.bin/xlint/lint1/err.c             |  6 +++---
 4 files changed, 10 insertions(+), 10 deletions(-)

diffs (78 lines):

diff -r 4aa16046c714 -r 805d3ca32f09 tests/usr.bin/xlint/lint1/msg_327.c
--- a/tests/usr.bin/xlint/lint1/msg_327.c       Sat Mar 20 14:13:51 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_327.c       Sat Mar 20 14:17:56 2021 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: msg_327.c,v 1.3 2021/03/20 14:13:51 rillig Exp $       */
+/*     $NetBSD: msg_327.c,v 1.4 2021/03/20 14:17:56 rillig Exp $       */
 # 3 "msg_327.c"
 
-/* Test for message: declarations after statements is a C9X feature [327] */
+/* Test for message: declarations after statements is a C99 feature [327] */
 
 /* lint1-flags: -w */
 
diff -r 4aa16046c714 -r 805d3ca32f09 tests/usr.bin/xlint/lint1/msg_327.exp
--- a/tests/usr.bin/xlint/lint1/msg_327.exp     Sat Mar 20 14:13:51 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_327.exp     Sat Mar 20 14:17:56 2021 +0000
@@ -1,4 +1,4 @@
-msg_327.c(17): warning: declarations after statements is a C9X feature [327]
-msg_327.c(19): warning: declarations after statements is a C9X feature [327]
+msg_327.c(17): warning: declarations after statements is a C99 feature [327]
+msg_327.c(19): warning: declarations after statements is a C99 feature [327]
 msg_327.c(20): syntax error '}' [249]
 msg_327.c(23): cannot recover from previous errors [224]
diff -r 4aa16046c714 -r 805d3ca32f09 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Sat Mar 20 14:13:51 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Sat Mar 20 14:17:56 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.183 2021/03/20 13:53:28 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.184 2021/03/20 14:17:56 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.183 2021/03/20 13:53:28 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.184 2021/03/20 14:17:56 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1514,7 +1514,7 @@
          statement_list
        | statement_d_list declaration_list statement_list {
                if (!Sflag)
-                       /* declarations after statements is a C9X feature */
+                       /* declarations after statements is a C99 feature */
                        c99ism(327);
          }
        ;
diff -r 4aa16046c714 -r 805d3ca32f09 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sat Mar 20 14:13:51 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Sat Mar 20 14:17:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.88 2021/03/18 21:26:56 rillig Exp $  */
+/*     $NetBSD: err.c,v 1.89 2021/03/20 14:17:56 rillig Exp $  */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.88 2021/03/18 21:26:56 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.89 2021/03/20 14:17:56 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -386,7 +386,7 @@
        "suggest cast from '%s' to '%s' on op %s to avoid overflow",  /* 324 */
        "variable declaration in for loop",                           /* 325 */
        "%s attribute ignored for %s",                                /* 326 */
-       "declarations after statements is a C9X feature",             /* 327 */
+       "declarations after statements is a C99 feature",             /* 327 */
        "union cast is a C9X feature",                                /* 328 */
        "type '%s' is not a member of '%s'",                          /* 329 */
        "operand of '%s' must be bool, not '%s'",                     /* 330 */



Home | Main Index | Thread Index | Old Index