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: add quotes to messages 1 and 19
details: https://anonhg.NetBSD.org/src/rev/0782dff71424
branches: trunk
changeset: 950791:0782dff71424
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jan 31 11:23:01 2021 +0000
description:
lint: add quotes to messages 1 and 19
diffstat:
tests/usr.bin/xlint/lint1/msg_001.c | 4 ++--
tests/usr.bin/xlint/lint1/msg_001.exp | 2 +-
tests/usr.bin/xlint/lint1/msg_019.c | 4 ++--
tests/usr.bin/xlint/lint1/msg_019.exp | 6 +++---
tests/usr.bin/xlint/lint1/msg_035.exp | 2 +-
usr.bin/xlint/lint1/cgram.y | 8 ++++----
usr.bin/xlint/lint1/decl.c | 6 +++---
usr.bin/xlint/lint1/err.c | 8 ++++----
8 files changed, 20 insertions(+), 20 deletions(-)
diffs (152 lines):
diff -r 1c6f3e0c77e5 -r 0782dff71424 tests/usr.bin/xlint/lint1/msg_001.c
--- a/tests/usr.bin/xlint/lint1/msg_001.c Sun Jan 31 11:12:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_001.c Sun Jan 31 11:23:01 2021 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_001.c,v 1.3 2021/01/31 11:12:07 rillig Exp $ */
+/* $NetBSD: msg_001.c,v 1.4 2021/01/31 11:23:01 rillig Exp $ */
# 3 "msg_001.c"
-// Test for message: old style declaration; add int [1]
+// Test for message: old style declaration; add 'int' [1]
old_style = 1; /* expect: [1] */
diff -r 1c6f3e0c77e5 -r 0782dff71424 tests/usr.bin/xlint/lint1/msg_001.exp
--- a/tests/usr.bin/xlint/lint1/msg_001.exp Sun Jan 31 11:12:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_001.exp Sun Jan 31 11:23:01 2021 +0000
@@ -1,1 +1,1 @@
-msg_001.c(6): warning: old style declaration; add int [1]
+msg_001.c(6): warning: old style declaration; add 'int' [1]
diff -r 1c6f3e0c77e5 -r 0782dff71424 tests/usr.bin/xlint/lint1/msg_019.c
--- a/tests/usr.bin/xlint/lint1/msg_019.c Sun Jan 31 11:12:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_019.c Sun Jan 31 11:23:01 2021 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_019.c,v 1.2 2021/01/31 09:48:47 rillig Exp $ */
+/* $NetBSD: msg_019.c,v 1.3 2021/01/31 11:23:01 rillig Exp $ */
# 3 "msg_019.c"
-// Test for message: void type for %s [19]
+// Test for message: void type for '%s' [19]
void global_variable; /* expect: 19 */
diff -r 1c6f3e0c77e5 -r 0782dff71424 tests/usr.bin/xlint/lint1/msg_019.exp
--- a/tests/usr.bin/xlint/lint1/msg_019.exp Sun Jan 31 11:12:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_019.exp Sun Jan 31 11:23:01 2021 +0000
@@ -1,6 +1,6 @@
-msg_019.c(6): void type for global_variable [19]
-msg_019.c(8): void type for unit_variable [19]
+msg_019.c(6): void type for 'global_variable' [19]
+msg_019.c(8): void type for 'unit_variable' [19]
msg_019.c(11): void parameter cannot have name: parameter [61]
-msg_019.c(13): void type for local_variable [19]
+msg_019.c(13): void type for 'local_variable' [19]
msg_019.c(11): warning: argument parameter unused in function function [231]
msg_019.c(8): warning: static variable unit_variable unused [226]
diff -r 1c6f3e0c77e5 -r 0782dff71424 tests/usr.bin/xlint/lint1/msg_035.exp
--- a/tests/usr.bin/xlint/lint1/msg_035.exp Sun Jan 31 11:12:07 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_035.exp Sun Jan 31 11:23:01 2021 +0000
@@ -5,7 +5,7 @@
msg_035.c(47): warning: illegal bit-field type [35]
msg_035.c(48): warning: illegal bit-field type [35]
msg_035.c(49): warning: illegal bit-field type [35]
-msg_035.c(50): void type for void_flag [19]
+msg_035.c(50): void type for 'void_flag' [19]
msg_035.c(50): zero size bit-field [37]
msg_035.c(51): warning: illegal bit-field type [35]
msg_035.c(52): warning: illegal bit-field type [35]
diff -r 1c6f3e0c77e5 -r 0782dff71424 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sun Jan 31 11:12:07 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sun Jan 31 11:23:01 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.158 2021/01/31 09:26:27 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.159 2021/01/31 11:23:01 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.158 2021/01/31 09:26:27 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.159 2021/01/31 11:23:01 rillig Exp $");
#endif
#include <limits.h>
@@ -376,10 +376,10 @@
}
| clrtyp deftyp notype_init_decls T_SEMI {
if (sflag) {
- /* old style declaration; add int */
+ /* old style declaration; add 'int' */
error(1);
} else if (!tflag) {
- /* old style declaration; add int */
+ /* old style declaration; add 'int' */
warning(1);
}
}
diff -r 1c6f3e0c77e5 -r 0782dff71424 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Sun Jan 31 11:12:07 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Sun Jan 31 11:23:01 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.132 2021/01/30 18:16:45 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.133 2021/01/31 11:23:01 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.132 2021/01/30 18:16:45 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.133 2021/01/31 11:23:01 rillig Exp $");
#endif
#include <sys/param.h>
@@ -1056,7 +1056,7 @@
} else if (dcs->d_ctx == ABSTRACT) {
/* ok */
} else if (sym->s_scl != TYPEDEF) {
- /* void type for %s */
+ /* void type for '%s' */
error(19, sym->s_name);
*tpp = gettyp(INT);
}
diff -r 1c6f3e0c77e5 -r 0782dff71424 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sun Jan 31 11:12:07 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Sun Jan 31 11:23:01 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.73 2021/01/31 09:26:27 rillig Exp $ */
+/* $NetBSD: err.c,v 1.74 2021/01/31 11:23:01 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.73 2021/01/31 09:26:27 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.74 2021/01/31 11:23:01 rillig Exp $");
#endif
#include <sys/types.h>
@@ -60,7 +60,7 @@
const char *msgs[] = {
"empty declaration", /* 0 */
- "old style declaration; add int", /* 1 */
+ "old style declaration; add 'int'", /* 1 */
"empty declaration", /* 2 */
"'%s' declared in argument declaration list", /* 3 */
"illegal type combination", /* 4 */
@@ -78,7 +78,7 @@
"array of function is illegal", /* 16 */
"null dimension", /* 17 */
"illegal use of 'void'", /* 18 */
- "void type for %s", /* 19 */
+ "void type for '%s'", /* 19 */
"negative array dimension (%d)", /* 20 */
"redeclaration of formal parameter %s", /* 21 */
"incomplete or misplaced function definition", /* 22 */
Home |
Main Index |
Thread Index |
Old Index