Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/indent Fix obvious contraction spelling mistakes by ...
details: https://anonhg.NetBSD.org/src/rev/567e95b1a29b
branches: trunk
changeset: 343762:567e95b1a29b
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Thu Feb 25 13:23:27 2016 +0000
description:
Fix obvious contraction spelling mistakes by adding missing apostrophes.
diffstat:
usr.bin/indent/indent.c | 34 +++++++++++++++++-----------------
usr.bin/indent/io.c | 10 +++++-----
usr.bin/indent/pr_comment.c | 12 ++++++------
3 files changed, 28 insertions(+), 28 deletions(-)
diffs (225 lines):
diff -r 6c4633b6647d -r 567e95b1a29b usr.bin/indent/indent.c
--- a/usr.bin/indent/indent.c Thu Feb 25 12:36:36 2016 +0000
+++ b/usr.bin/indent/indent.c Thu Feb 25 13:23:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: indent.c,v 1.21 2016/02/22 22:01:48 ginsbach Exp $ */
+/* $NetBSD: indent.c,v 1.22 2016/02/25 13:23:27 ginsbach Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -75,7 +75,7 @@
#if 0
static char sccsid[] = "@(#)indent.c 5.17 (Berkeley) 6/7/93";
#else
-__RCSID("$NetBSD: indent.c,v 1.21 2016/02/22 22:01:48 ginsbach Exp $");
+__RCSID("$NetBSD: indent.c,v 1.22 2016/02/25 13:23:27 ginsbach Exp $");
#endif
#endif /* not lint */
@@ -260,7 +260,7 @@
}
}
if (ps.com_ind <= 1)
- ps.com_ind = 2; /* dont put normal comments before column 2 */
+ ps.com_ind = 2; /* don't put normal comments before column 2 */
if (troff) {
if (bodyf.font[0] == 0)
parsefont(&bodyf, "R");
@@ -355,7 +355,7 @@
case lbrace: /* this is a brace that starts the
* compound stmt */
if (sc_end == 0) { /* ignore buffering if a
- * comment wasnt stored
+ * comment wasn't stored
* up */
ps.search_brace = false;
goto check_type;
@@ -420,7 +420,7 @@
force_nl = false;
if (sc_end == 0) { /* ignore buffering if
- * comment wasnt saved
+ * comment wasn't saved
* up */
ps.search_brace = false;
goto check_type;
@@ -503,7 +503,7 @@
diag(0, "Line broken");
flushed_nl = false;
dump_line();
- ps.want_blank = false; /* dont insert blank at
+ ps.want_blank = false; /* don't insert blank at
* line start */
force_nl = false;
}
@@ -623,7 +623,7 @@
ps.last_u_d = true; /* inform lexi that a
* following operator is
* unary */
- ps.in_stmt = false; /* dont use stmt
+ ps.in_stmt = false; /* don't use stmt
* continuation
* indentation */
@@ -785,8 +785,8 @@
ps.in_decl = (ps.dec_nest > 0); /* if we were in a first
* level structure
- * declaration, we arent
- * any more */
+ * declaration, we
+ * aren't any more */
if ((!sp_sw || hd_type != forstmt) && ps.p_l_follow > 0) {
@@ -801,8 +801,8 @@
* while, etc. with unbalanced
* parens */
sp_sw = false;
- parse(hd_type); /* dont lose the if, or
- * whatever */
+ parse(hd_type); /* don't lose the if,
+ * or whatever */
}
}
*e_code++ = ';';
@@ -819,7 +819,7 @@
break;
case lbrace: /* got a '{' */
- ps.in_stmt = false; /* dont indent the {} */
+ ps.in_stmt = false; /* don't indent the {} */
if (!ps.block_init)
force_nl = true; /* force other stuff on
* same line as '{' onto
@@ -856,7 +856,7 @@
}
}
if (s_code == e_code)
- ps.ind_stmt = false; /* dont put extra
+ ps.ind_stmt = false; /* don't put extra
* indentation on line
* with '{' */
if (ps.in_decl && ps.in_or_st) { /* this is either a
@@ -865,9 +865,9 @@
di_stack[ps.dec_nest++] = dec_ind;
/* ? dec_ind = 0; */
} else {
- ps.decl_on_line = false; /* we cant be in the
+ ps.decl_on_line = false; /* we can't be in the
* middle of a
- * declaration, so dont
+ * declaration, so don't
* do special
* indentation of
* comments */
@@ -1088,7 +1088,7 @@
case period: /* treat a period kind of like a binary
* operation */
*e_code++ = '.'; /* move the period into line */
- ps.want_blank = false; /* dont put a blank after a
+ ps.want_blank = false; /* don't put a blank after a
* period */
break;
@@ -1256,7 +1256,7 @@
* line here */
flushed_nl = false;
dump_line();
- ps.want_blank = false; /* dont insert blank at
+ ps.want_blank = false; /* don't insert blank at
* line start */
force_nl = false;
}
diff -r 6c4633b6647d -r 567e95b1a29b usr.bin/indent/io.c
--- a/usr.bin/indent/io.c Thu Feb 25 12:36:36 2016 +0000
+++ b/usr.bin/indent/io.c Thu Feb 25 13:23:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.16 2016/02/22 19:04:18 ginsbach Exp $ */
+/* $NetBSD: io.c,v 1.17 2016/02/25 13:23:27 ginsbach Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: io.c,v 1.16 2016/02/22 19:04:18 ginsbach Exp $");
+__RCSID("$NetBSD: io.c,v 1.17 2016/02/25 13:23:27 ginsbach Exp $");
#endif
#endif /* not lint */
@@ -130,7 +130,7 @@
n_real_blanklines = 0;
if (ps.ind_level == 0)
ps.ind_stmt = 0; /* this is a class A
- * kludge. dont do
+ * kludge. don't do
* additional statement
* indentation if we are
* at bracket level 0 */
@@ -265,7 +265,7 @@
target = ((target - 1) & ~7) + 9, com_st++;
else
target = 1;
- if (cur_col > target) { /* if comment cant fit
+ if (cur_col > target) { /* if comment can't fit
* on this line, put it
* on next line */
putc('\n', output);
@@ -393,7 +393,7 @@
char *n;
if (bp_save != 0) { /* there is a partly filled input buffer left */
- buf_ptr = bp_save; /* dont read anything, just switch
+ buf_ptr = bp_save; /* don't read anything, just switch
* buffers */
buf_end = be_save;
bp_save = be_save = 0;
diff -r 6c4633b6647d -r 567e95b1a29b usr.bin/indent/pr_comment.c
--- a/usr.bin/indent/pr_comment.c Thu Feb 25 12:36:36 2016 +0000
+++ b/usr.bin/indent/pr_comment.c Thu Feb 25 13:23:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pr_comment.c,v 1.9 2003/08/07 11:14:09 agc Exp $ */
+/* $NetBSD: pr_comment.c,v 1.10 2016/02/25 13:23:27 ginsbach Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)pr_comment.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: pr_comment.c,v 1.9 2003/08/07 11:14:09 agc Exp $");
+__RCSID("$NetBSD: pr_comment.c,v 1.10 2016/02/25 13:23:27 ginsbach Exp $");
#endif
#endif /* not lint */
@@ -126,7 +126,7 @@
int l_just_saw_decl = ps.just_saw_decl;
/*
* int ps.last_nl = 0; / * true iff the last significant thing
- * weve seen is a newline
+ * we've seen is a newline
*/
int one_liner = 1; /* true iff this comment is a one-liner */
adj_max_col = max_col;
@@ -159,8 +159,8 @@
if ( /* ps.bl_line && */ (s_lab == e_lab) && (s_code == e_code)) {
/* klg: check only if this line is blank */
/*
- * If this (*and previous lines are*) blank, dont put comment way
- * out at left
+ * If this (*and previous lines are*) blank, don't
+ * put comment way out at left
*/
ps.com_col = (ps.ind_level - ps.unindent_displace) * ps.ind_size + 1;
adj_max_col = block_comment_max_col;
@@ -243,7 +243,7 @@
}
one_liner = 0;
if (ps.box_com || ps.last_nl) { /* if this is a boxed
- * comment, we dont
+ * comment, we don't
* ignore the newline */
if (s_com == e_com) {
*e_com++ = ' ';
Home |
Main Index |
Thread Index |
Old Index