Module Name: src
Committed By: rillig
Date: Sat Mar 20 14:17:56 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_327.c msg_327.exp
src/usr.bin/xlint/lint1: cgram.y err.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_327.c
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_327.exp
cvs rdiff -u -r1.183 -r1.184 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.88 -r1.89 src/usr.bin/xlint/lint1/err.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/msg_327.c
diff -u src/tests/usr.bin/xlint/lint1/msg_327.c:1.3 src/tests/usr.bin/xlint/lint1/msg_327.c:1.4
--- src/tests/usr.bin/xlint/lint1/msg_327.c:1.3 Sat Mar 20 14:13:51 2021
+++ src/tests/usr.bin/xlint/lint1/msg_327.c Sat Mar 20 14:17:56 2021
@@ -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 */
Index: src/tests/usr.bin/xlint/lint1/msg_327.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_327.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_327.exp:1.3
--- src/tests/usr.bin/xlint/lint1/msg_327.exp:1.2 Sat Mar 20 14:13:51 2021
+++ src/tests/usr.bin/xlint/lint1/msg_327.exp Sat Mar 20 14:17:56 2021
@@ -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]
Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.183 src/usr.bin/xlint/lint1/cgram.y:1.184
--- src/usr.bin/xlint/lint1/cgram.y:1.183 Sat Mar 20 13:53:28 2021
+++ src/usr.bin/xlint/lint1/cgram.y Sat Mar 20 14:17:56 2021
@@ -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_d_list:
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);
}
;
Index: src/usr.bin/xlint/lint1/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.88 src/usr.bin/xlint/lint1/err.c:1.89
--- src/usr.bin/xlint/lint1/err.c:1.88 Thu Mar 18 21:26:56 2021
+++ src/usr.bin/xlint/lint1/err.c Sat Mar 20 14:17:56 2021
@@ -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 @@ const char *msgs[] = {
"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 */