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: spell check
details: https://anonhg.NetBSD.org/src/rev/1bc71822d01a
branches: trunk
changeset: 948703:1bc71822d01a
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Dec 29 11:54:56 2020 +0000
description:
lint: spell check
diffstat:
usr.bin/xlint/lint1/lint1.h | 14 +++++++-------
usr.bin/xlint/lint1/tree.c | 7 +++----
2 files changed, 10 insertions(+), 11 deletions(-)
diffs (78 lines):
diff -r 0d68eec32f30 -r 1bc71822d01a usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h Tue Dec 29 11:35:11 2020 +0000
+++ b/usr.bin/xlint/lint1/lint1.h Tue Dec 29 11:54:56 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.32 2020/12/28 12:56:33 rillig Exp $ */
+/* $NetBSD: lint1.h,v 1.33 2020/12/29 11:54:56 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -204,7 +204,7 @@
ENUMTAG,
MOS, /* member of struct */
MOU, /* member of union */
- ENUMCON, /* enumerator */
+ ENUMCON, /* enumerator, enum constant */
ABSTRACT, /* abstract symbol (sizeof, casts, unnamed argument) */
ARG, /* argument */
PARG, /* used in declaration stack during prototype
@@ -216,7 +216,7 @@
* symbol table entry
*/
typedef struct sym {
- const char *s_name; /* name */
+ const char *s_name;
const char *s_rename; /* renamed symbol's given name */
pos_t s_dpos; /* position of last (prototype)definition,
prototypedeclaration, no-prototype-def.,
@@ -235,18 +235,18 @@
definition */
u_int s_rimpl : 1; /* return value of function implicit decl. */
u_int s_osdef : 1; /* symbol stems from old style function def. */
- u_int s_inline : 1; /* true if this is a inline function */
+ u_int s_inline : 1; /* true if this is an inline function */
struct sym *s_xsym; /* for local declared external symbols pointer
to external symbol with same name */
def_t s_def; /* declared, tentative defined, defined */
scl_t s_scl; /* storage class */
int s_blklev; /* level of declaration, -1 if not in symbol
table */
- type_t *s_type; /* type */
- val_t s_value; /* value (if enumcon) */
+ type_t *s_type;
+ val_t s_value; /* value (if enum constant) */
union {
str_t *_s_st; /* tag, if it is a struct/union member */
- tenum_t *_s_et; /* tag, if it is a enumerator */
+ tenum_t *_s_et; /* tag, if it is an enumerator */
tspec_t _s_tsp; /* type (only for keywords) */
tqual_t _s_tqu; /* qualifier (only for keywords) */
struct sym *_s_args; /* arguments in old style function
diff -r 0d68eec32f30 -r 1bc71822d01a usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Tue Dec 29 11:35:11 2020 +0000
+++ b/usr.bin/xlint/lint1/tree.c Tue Dec 29 11:54:56 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.95 2020/12/29 11:35:11 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.96 2020/12/29 11:54:56 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.95 2020/12/29 11:35:11 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.96 2020/12/29 11:54:56 rillig Exp $");
#endif
#include <float.h>
@@ -1780,8 +1780,7 @@
}
/*
- * Print warnings for conversions of integer types which my cause
- * problems.
+ * Print warnings for conversions of integer types which may cause problems.
*/
/* ARGSUSED */
static void
Home |
Main Index |
Thread Index |
Old Index