From ba88fc458a6035cb369aafc8667bade7da573b6b Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Mon, 26 Dec 2022 19:16:05 +0000 Subject: spelling fixes; from paul tagliamonte amendments to his diff are noted on tech --- usr.bin/indent/indent.1 | 6 +++--- usr.bin/indent/indent.c | 4 ++-- usr.bin/indent/indent_globs.h | 4 ++-- usr.bin/indent/lexi.c | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'usr.bin/indent') diff --git a/usr.bin/indent/indent.1 b/usr.bin/indent/indent.1 index 4a0e812b4ea..998e3cb8b9b 100644 --- a/usr.bin/indent/indent.1 +++ b/usr.bin/indent/indent.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: indent.1,v 1.24 2022/03/31 17:27:25 naddy Exp $ +.\" $OpenBSD: indent.1,v 1.25 2022/12/26 19:16:01 jmc Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. @@ -32,7 +32,7 @@ .\" .\" from: @(#)indent.1 8.1 (Berkeley) 7/1/93 .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: December 26 2022 $ .Dt INDENT 1 .Os .Sh NAME @@ -488,7 +488,7 @@ has a .Dq forgiving parser. It attempts to cope with the usual sorts of -incomplete and misformed syntax. +incomplete and malformed syntax. In particular, the use of macros like: .Pp .Dl #define forever for(;;) diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index adb77a3dbcb..8679c11bd48 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: indent.c,v 1.32 2021/01/26 18:21:25 deraadt Exp $ */ +/* $OpenBSD: indent.c,v 1.33 2022/12/26 19:16:01 jmc Exp $ */ /* * Copyright (c) 1980, 1993 @@ -474,7 +474,7 @@ main(int argc, char **argv) fill_buffer(); break; } - default: /* it is the start of a normal statment */ + default: /* it is the start of a normal statement */ if (flushed_nl) /* if we flushed a newline, make sure it is * put back */ force_nl = true; diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h index 3ed911f43be..09b1f88cd80 100644 --- a/usr.bin/indent/indent_globs.h +++ b/usr.bin/indent/indent_globs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: indent_globs.h,v 1.15 2021/01/26 18:21:25 deraadt Exp $ */ +/* $OpenBSD: indent_globs.h,v 1.16 2022/12/26 19:16:01 jmc Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. * Copyright (c) 1980, 1993 @@ -249,7 +249,7 @@ extern struct parser_state { int col_1; /* set to true if the last token started in * column 1 */ int com_col; /* this is the column in which the current - * coment should start */ + * comment should start */ int com_ind; /* the column in which comments to the right * of code should start */ int com_lines; /* the number of lines with comments, set by diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c index 31cf53a3060..19b11057bb3 100644 --- a/usr.bin/indent/lexi.c +++ b/usr.bin/indent/lexi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lexi.c,v 1.20 2016/06/06 06:43:03 tobiasu Exp $ */ +/* $OpenBSD: lexi.c,v 1.21 2022/12/26 19:16:01 jmc Exp $ */ /* * Copyright (c) 1980, 1993 @@ -324,7 +324,7 @@ lexi(void) ps.last_u_d = true; /* will make "int a -1" work */ last_code = ident; return (ident); /* the ident is not in the list */ - } /* end of procesing for alpanum character */ + } /* end of processing for alpanum character */ /* Scan a non-alphanumeric token */ @@ -341,7 +341,7 @@ lexi(void) code = (had_eof ? 0 : newline); /* - * if data has been exausted, the newline is a dummy, and we should + * if data has been exhausted, the newline is a dummy, and we should * return code to stop */ break; -- cgit v1.2.3