Module Name: src Committed By: rillig Date: Tue Dec 29 21:32:46 UTC 2020
Modified Files: src/usr.bin/xlint/lint1: decl.c emit1.c lint1.h tree.c src/usr.bin/xlint/lint2: lint2.h Log Message: lint: fix typo in comments To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/lint1/emit1.c cvs rdiff -u -r1.34 -r1.35 src/usr.bin/xlint/lint1/lint1.h cvs rdiff -u -r1.98 -r1.99 src/usr.bin/xlint/lint1/tree.c cvs rdiff -u -r1.8 -r1.9 src/usr.bin/xlint/lint2/lint2.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/decl.c diff -u src/usr.bin/xlint/lint1/decl.c:1.78 src/usr.bin/xlint/lint1/decl.c:1.79 --- src/usr.bin/xlint/lint1/decl.c:1.78 Tue Dec 29 17:29:31 2020 +++ src/usr.bin/xlint/lint1/decl.c Tue Dec 29 21:32:46 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.78 2020/12/29 17:29:31 rillig Exp $ */ +/* $NetBSD: decl.c,v 1.79 2020/12/29 21:32:46 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.78 2020/12/29 17:29:31 rillig Exp $"); +__RCSID("$NetBSD: decl.c,v 1.79 2020/12/29 21:32:46 rillig Exp $"); #endif #include <sys/param.h> @@ -1259,10 +1259,10 @@ bitfield(sym_t *dsym, int len) } /* - * Collect informations about a sequence of asterisks and qualifiers - * in a list of type pqinf_t. - * Qualifiers refer always to the left asterisk. The rightmost asterisk - * will be at the top of the list. + * Collect information about a sequence of asterisks and qualifiers in a + * list of type pqinf_t. + * Qualifiers always refer to the left asterisk. + * The rightmost asterisk will be at the top of the list. */ pqinf_t * merge_pointers_and_qualifiers(pqinf_t *p1, pqinf_t *p2) @@ -1969,8 +1969,8 @@ decl1ext(sym_t *dsym, int initflg) } /* - * Copy informations about usage of the name into - * the new symbol. + * Copy usage information of the name into the new + * symbol. */ copy_usage_info(dsym, rdsym); Index: src/usr.bin/xlint/lint1/emit1.c diff -u src/usr.bin/xlint/lint1/emit1.c:1.24 src/usr.bin/xlint/lint1/emit1.c:1.25 --- src/usr.bin/xlint/lint1/emit1.c:1.24 Tue Dec 29 11:35:11 2020 +++ src/usr.bin/xlint/lint1/emit1.c Tue Dec 29 21:32:46 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: emit1.c,v 1.24 2020/12/29 11:35:11 rillig Exp $ */ +/* $NetBSD: emit1.c,v 1.25 2020/12/29 21:32:46 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: emit1.c,v 1.24 2020/12/29 11:35:11 rillig Exp $"); +__RCSID("$NetBSD: emit1.c,v 1.25 2020/12/29 21:32:46 rillig Exp $"); #endif #include <ctype.h> @@ -435,7 +435,7 @@ outcall(tnode_t *tn, int rvused, int rvd args = tn->tn_right; for (arg = args; arg != NULL; arg = arg->tn_right) narg++; - /* informations about arguments */ + /* information about arguments */ for (n = 1; n <= narg; n++) { /* the last argument is the top one in the tree */ for (i = narg, arg = args; i > n; i--, arg = arg->tn_right) Index: src/usr.bin/xlint/lint1/lint1.h diff -u src/usr.bin/xlint/lint1/lint1.h:1.34 src/usr.bin/xlint/lint1/lint1.h:1.35 --- src/usr.bin/xlint/lint1/lint1.h:1.34 Tue Dec 29 12:18:42 2020 +++ src/usr.bin/xlint/lint1/lint1.h Tue Dec 29 21:32:46 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: lint1.h,v 1.34 2020/12/29 12:18:42 rillig Exp $ */ +/* $NetBSD: lint1.h,v 1.35 2020/12/29 21:32:46 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -266,7 +266,7 @@ typedef struct sym { #define s_args u._s_args /* - * Used to keep some informations about symbols before they are entered + * Used to keep some information about symbols before they are entered * into the symbol table. */ typedef struct sbuf { @@ -388,7 +388,7 @@ typedef struct clst { } clst_t; /* - * Used to keep informations about nested control statements. + * Used to keep information about nested control statements. */ typedef struct cstk { int c_env; /* type of statement (T_IF, ...) */ Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.98 src/usr.bin/xlint/lint1/tree.c:1.99 --- src/usr.bin/xlint/lint1/tree.c:1.98 Tue Dec 29 13:33:03 2020 +++ src/usr.bin/xlint/lint1/tree.c Tue Dec 29 21:32:46 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.98 2020/12/29 13:33:03 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.99 2020/12/29 21:32:46 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.98 2020/12/29 13:33:03 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.99 2020/12/29 21:32:46 rillig Exp $"); #endif #include <float.h> @@ -683,7 +683,7 @@ cconv(tnode_t *tn) /* * Perform most type checks. First the types are checked using - * informations from modtab[]. After that it is done by hand for + * the information from modtab[]. After that it is done by hand for * more complicated operators and type combinations. * * If the types are ok, typeok() returns 1, otherwise 0. Index: src/usr.bin/xlint/lint2/lint2.h diff -u src/usr.bin/xlint/lint2/lint2.h:1.8 src/usr.bin/xlint/lint2/lint2.h:1.9 --- src/usr.bin/xlint/lint2/lint2.h:1.8 Tue Dec 26 17:02:19 2017 +++ src/usr.bin/xlint/lint2/lint2.h Tue Dec 29 21:32:46 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: lint2.h,v 1.8 2017/12/26 17:02:19 christos Exp $ */ +/* $NetBSD: lint2.h,v 1.9 2020/12/29 21:32:46 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -146,7 +146,7 @@ typedef struct sym { #define s_nxt s_s.s_nxt /* - * Used to store informations about function calls. + * Used to store information about function calls. */ typedef struct fcall { pos_t f_pos; /* position of call */