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 comments
details: https://anonhg.NetBSD.org/src/rev/21e29caf84fb
branches: trunk
changeset: 1017537:21e29caf84fb
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Dec 30 11:56:10 2020 +0000
description:
lint: spell check comments
diffstat:
usr.bin/xlint/lint1/decl.c | 16 ++++++++--------
usr.bin/xlint/lint1/func.c | 8 ++++----
usr.bin/xlint/lint1/scan.l | 8 ++++----
usr.bin/xlint/lint1/tree.c | 26 +++++++++++++-------------
4 files changed, 29 insertions(+), 29 deletions(-)
diffs (239 lines):
diff -r a6aa94311b08 -r 21e29caf84fb usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Wed Dec 30 11:47:15 2020 +0000
+++ b/usr.bin/xlint/lint1/decl.c Wed Dec 30 11:56:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.85 2020/12/30 11:39:55 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.86 2020/12/30 11:56:10 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.85 2020/12/30 11:39:55 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.86 2020/12/30 11:56:10 rillig Exp $");
#endif
#include <sys/param.h>
@@ -473,7 +473,7 @@
* or enum tag if the typedef name is the first defined for this tag.
*
* If the tag is unnamed, the typdef name is used for identification
- * of this tag in lint2. Although its possible that more than one typedef
+ * of this tag in lint2. Although it's possible that more than one typedef
* name is defined for one tag, the first name defined should be unique
* if the tag is unnamed.
*/
@@ -1172,7 +1172,7 @@
/*
* bit-fields of length 0 are not warned about because length()
* does not return the length of the bit-field but the length
- * of the type the bit-field is packed in (its ok)
+ * of the type the bit-field is packed in (it's ok)
*/
if ((sz = length(dsym->s_type, dsym->s_name)) == 0) {
if (t == ARRAY && dsym->s_type->t_dim == 0) {
@@ -1460,7 +1460,7 @@
decl->s_type == dcs->d_next->d_type) {
/*
* We assume that this becomes a function definition. If
- * we are wrong, its corrected in check_function_definition().
+ * we are wrong, it's corrected in check_function_definition().
*/
if (args != NULL) {
decl->s_osdef = 1;
@@ -1475,7 +1475,7 @@
/*
* Lists of Identifiers in functions declarations are allowed only if
- * its also a function definition. If this is not the case, print a
+ * it's also a function definition. If this is not the case, print a
* error message.
*/
void
@@ -2072,7 +2072,7 @@
return(0);
}
/*
- * Now its on of:
+ * Now it's one of:
* "static a; int a;", "static a; int a = 1;", "static a = 1; int a;"
*/
/* redeclaration of %s; ANSI C requires "static" */
@@ -2646,7 +2646,7 @@
} else if (dcs->d_rdcsym->s_blklev == blklev) {
- /* no hflag, because its illegal! */
+ /* no hflag, because it's illegal! */
if (dcs->d_rdcsym->s_arg) {
/*
* if !tflag, a "redeclaration of %s" error
diff -r a6aa94311b08 -r 21e29caf84fb usr.bin/xlint/lint1/func.c
--- a/usr.bin/xlint/lint1/func.c Wed Dec 30 11:47:15 2020 +0000
+++ b/usr.bin/xlint/lint1/func.c Wed Dec 30 11:56:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: func.c,v 1.36 2020/12/30 11:39:55 rillig Exp $ */
+/* $NetBSD: func.c,v 1.37 2020/12/30 11:56:10 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: func.c,v 1.36 2020/12/30 11:39:55 rillig Exp $");
+__RCSID("$NetBSD: func.c,v 1.37 2020/12/30 11:56:10 rillig Exp $");
#endif
#include <stdlib.h>
@@ -597,8 +597,8 @@
}
/*
- * Remember the type of the expression. Because its possible
- * that (*tp) is allocated on tree memory the type must be
+ * Remember the type of the expression. Because it's possible
+ * that (*tp) is allocated on tree memory, the type must be
* duplicated. This is not too complicated because it is
* only an integer type.
*/
diff -r a6aa94311b08 -r 21e29caf84fb usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l Wed Dec 30 11:47:15 2020 +0000
+++ b/usr.bin/xlint/lint1/scan.l Wed Dec 30 11:56:10 2020 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.104 2020/12/30 11:14:03 rillig Exp $ */
+/* $NetBSD: scan.l,v 1.105 2020/12/30 11:56:10 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: scan.l,v 1.104 2020/12/30 11:14:03 rillig Exp $");
+__RCSID("$NetBSD: scan.l,v 1.105 2020/12/30 11:56:10 rillig Exp $");
#endif
#include <ctype.h>
@@ -51,7 +51,7 @@
#define CHAR_MASK ((int)(~(~0U << CHAR_BIT)))
-/* Current position (its also updated when an included file is parsed) */
+/* Current position (it's also updated when an included file is parsed) */
pos_t curr_pos = { 1, "", 0 };
/*
@@ -799,7 +799,7 @@
}
/*
- * Convert a string representing a floating point value into its interal
+ * Convert a string representing a floating point value into its integral
* representation. Type and value are returned in yylval. fcon()
* (and yylex()) returns T_CON.
* XXX Currently it is not possible to convert constants of type
diff -r a6aa94311b08 -r 21e29caf84fb usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Wed Dec 30 11:47:15 2020 +0000
+++ b/usr.bin/xlint/lint1/tree.c Wed Dec 30 11:56:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.105 2020/12/30 11:04:48 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.106 2020/12/30 11:56:10 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.105 2020/12/30 11:04:48 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.106 2020/12/30 11:56:10 rillig Exp $");
#endif
#include <float.h>
@@ -480,7 +480,7 @@
/*
* Apply class conversions to the left operand, but only if its
- * value is needed or it is compaired with null.
+ * value is needed or it is compared with null.
*/
if (mp->m_vctx || mp->m_tctx)
ln = cconv(ln);
@@ -537,7 +537,7 @@
/*
* Check types for compatibility with the operation and mutual
- * compatibility. Return if there are serios problems.
+ * compatibility. Return if there are serious problems.
*/
if (!typeok(op, 0, ln, rn))
return NULL;
@@ -775,7 +775,7 @@
if (lt != PTR && !(tflag && tspec_is_int(lt))) {
/* Without tflag we got already an error */
if (tflag)
- /* unacceptabel operand of %s */
+ /* unacceptable operand of %s */
error(111, mp->m_name);
return 0;
}
@@ -908,15 +908,15 @@
/*
* ANSI C does not perform balancing for shift operations,
* but traditional C does. If the width of the right operand
- * is greather than the width of the left operand, than in
- * traditional C the left operand would be extendet to the
+ * is greater than the width of the left operand, than in
+ * traditional C the left operand would be extended to the
* width of the right operand. For SHL this may result in
* different results.
*/
if (psize(lt) < psize(rt)) {
/*
- * XXX If both operands are constant make sure
- * that there is really a differencs between
+ * XXX If both operands are constant, make sure
+ * that there is really a difference between
* ANSI C and traditional C.
*/
if (hflag)
@@ -2589,7 +2589,7 @@
LERROR("build_colon()");
/*
* XXX For now we simply take the left type. This is
- * probably wrong, if one type contains a functionprototype
+ * probably wrong, if one type contains a function prototype
* and the other one, at the same place, only an old style
* declaration.
*/
@@ -3199,7 +3199,7 @@
if (nt == VOID) {
/*
- * XXX ANSI C requires scalar types or void (Plauger&Brodie).
+ * XXX ANSI C requires scalar types or void (Plauger & Brodie).
* But this seams really questionable.
*/
} else if (nt == UNION) {
@@ -3362,7 +3362,7 @@
for (i = narg, arg = args; i > n; i--, arg = arg->tn_right)
continue;
- /* some things which are always not allowd */
+ /* some things which are always not allowed */
if ((at = arg->tn_left->tn_type->t_tspec) == VOID) {
/* void expressions may not be arguments, arg #%d */
error(151, n);
@@ -3809,7 +3809,7 @@
/*
* Checks the range of array indices, if possible.
* amper is set if only the address of the element is used. This
- * means that the index is allowd to refere to the first element
+ * means that the index is allowed to refer to the first element
* after the array.
*/
static void
Home |
Main Index |
Thread Index |
Old Index