Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh NFC: Whitespace cleanups



details:   https://anonhg.NetBSD.org/src/rev/06230a6256b3
branches:  trunk
changeset: 324827:06230a6256b3
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Jul 22 21:16:58 2018 +0000

description:
NFC: Whitespace cleanups

diffstat:

 bin/sh/expand.c |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (124 lines):

diff -r 14466de34548 -r 06230a6256b3 bin/sh/expand.c
--- a/bin/sh/expand.c   Sun Jul 22 20:43:58 2018 +0000
+++ b/bin/sh/expand.c   Sun Jul 22 21:16:58 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: expand.c,v 1.125 2018/07/22 20:38:06 kre Exp $ */
+/*     $NetBSD: expand.c,v 1.126 2018/07/22 21:16:58 kre Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)expand.c   8.5 (Berkeley) 5/15/95";
 #else
-__RCSID("$NetBSD: expand.c,v 1.125 2018/07/22 20:38:06 kre Exp $");
+__RCSID("$NetBSD: expand.c,v 1.126 2018/07/22 21:16:58 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -107,7 +107,7 @@
 STATIC int varisset(const char *, int);
 STATIC void varvalue(const char *, int, int, int);
 STATIC void recordregion(int, int, int);
-STATIC void removerecordregions(int); 
+STATIC void removerecordregions(int);
 STATIC void ifsbreakup(char *, struct arglist *);
 STATIC void ifsfree(void);
 STATIC void expandmeta(struct strlist *, int);
@@ -250,7 +250,7 @@
                case CTLENDARI: /* end of a $(( )) string */
                        NULLTERM_4_TRACE(expdest);
                        VTRACE(DBG_EXPAND, ("argstr returning at \"%.6s\"..."
-                           " after %2.2X; added \"%s\" to expdest\n", 
+                           " after %2.2X; added \"%s\" to expdest\n",
                            p, (c&0xff), stackblock()));
                        return p;
                case CTLQUOTEMARK:
@@ -288,7 +288,7 @@
                        p = evalvar(p, (flag & ~EXP_IFS_SPLIT) | (flag & ifs_split));
                        NULLTERM_4_TRACE(expdest);
                        VTRACE(DBG_EXPAND, ("argstr evalvar "
-                          "added \"%s\" to expdest\n", 
+                          "added \"%s\" to expdest\n",
                           stackblock() + pos));
                        break;
                }
@@ -435,7 +435,7 @@
 }
 
 
-STATIC void 
+STATIC void
 removerecordregions(int endoff)
 {
 
@@ -759,7 +759,7 @@
                                goto recordleft;
                        *loc = c;
                        if (quotes && *loc == CTLESC)
-                               loc++;
+                               loc++;
                }
                return 0;
 
@@ -783,12 +783,12 @@
                return 0;
 
        case VSTRIMRIGHT:
-               for (loc = str - 1; loc >= startp;) {
+               for (loc = str - 1; loc >= startp;) {
                        if (patmatch(str, loc, quotes))
                                goto recordright;
                        loc--;
                        if (quotes && loc > startp &&
-                           *(loc - 1) == CTLESC) { 
+                           *(loc - 1) == CTLESC) {
                                for (q = startp; q < loc; q++)
                                        if (*q == CTLESC)
                                                q++;
@@ -803,7 +803,7 @@
                        if (patmatch(str, loc, quotes))
                                goto recordright;
                        if (quotes && *loc == CTLESC)
-                               loc++;
+                               loc++;
                }
                return 0;
 
@@ -965,7 +965,7 @@
                /* FALLTHROUGH */
        case VSMINUS:
                if (!set) {
-                       argstr(p, flag | (apply_ifs ? EXP_IFS_SPLIT : 0));
+                       argstr(p, flag | (apply_ifs ? EXP_IFS_SPLIT : 0));
                        /*
                         * ${x-a b c} doesn't get split, but removing the
                         * 'apply_ifs = 0' apparently breaks ${1+"$@"}..
@@ -1009,9 +1009,9 @@
                        /* if subevalvar() returns, it always returns 1 */
 
                        varflags &= ~VSNUL;
-                       /* 
-                        * Remove any recorded regions beyond 
-                        * start of variable 
+                       /*
+                        * Remove any recorded regions beyond
+                        * start of variable
                         */
                        removerecordregions(startloc);
                        goto again;
@@ -1836,12 +1836,12 @@
                                goto backtrack;
                        break;
                }
-dft:           default:
+  dft:         default:
                        if (squoted && *q == CTLESC)
                                q++;
                        if (*q++ == c)
                                break;
-backtrack:
+  backtrack:
                        /*
                         * If we have a mismatch (other than hitting the end
                         * of the string), go back to the last '*' seen and



Home | Main Index | Thread Index | Old Index