Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh whitespace fixes
details: https://anonhg.NetBSD.org/src/rev/6cdccc8dd5ad
branches: trunk
changeset: 792373:6cdccc8dd5ad
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 01 19:50:44 2014 +0000
description:
whitespace fixes
diffstat:
bin/sh/parser.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diffs (64 lines):
diff -r cc5e1569f0a0 -r 6cdccc8dd5ad bin/sh/parser.c
--- a/bin/sh/parser.c Wed Jan 01 19:06:45 2014 +0000
+++ b/bin/sh/parser.c Wed Jan 01 19:50:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.c,v 1.89 2014/01/01 19:06:45 christos Exp $ */
+/* $NetBSD: parser.c,v 1.90 2014/01/01 19:50:44 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
#else
-__RCSID("$NetBSD: parser.c,v 1.89 2014/01/01 19:06:45 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.90 2014/01/01 19:50:44 christos Exp $");
#endif
#endif /* not lint */
@@ -688,7 +688,8 @@
if (heredoclist == NULL)
heredoclist = here;
else {
- for (p = heredoclist ; p->next ; p = p->next);
+ for (p = heredoclist ; p->next ; p = p->next)
+ continue;
p->next = here;
}
} else if (n->type == NTOFD || n->type == NFROMFD) {
@@ -772,13 +773,13 @@
for (pp = parsekwd; *pp; pp++) {
if (**pp == *wordtext && equal(*pp, wordtext))
{
- lasttoken = t = pp -
+ lasttoken = t = pp -
parsekwd + KWDOFFSET;
TRACE(("keyword %s recognized\n", tokname[t]));
goto out;
}
}
- if(!noalias &&
+ if (!noalias &&
(ap = lookupalias(wordtext, 1)) != NULL) {
pushstring(ap->val, strlen(ap->val), ap);
checkkwd = savecheckkwd;
@@ -833,7 +834,8 @@
case ' ': case '\t':
continue;
case '#':
- while ((c = pgetc()) != '\n' && c != PEOF);
+ while ((c = pgetc()) != '\n' && c != PEOF)
+ continue;
pungetc();
continue;
case '\\':
@@ -1183,7 +1185,8 @@
char *p, *q;
p = line;
- for (q = eofmark + 1 ; *q && *p == *q ; p++, q++);
+ for (q = eofmark + 1 ; *q && *p == *q ; p++, q++)
+ continue;
if ((*p == '\0' || *p == '\n') && *q == '\0') {
c = PEOF;
plinno++;
Home |
Main Index |
Thread Index |
Old Index