Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Whitespace consistency fixes.



details:   https://anonhg.NetBSD.org/src/rev/5066350c9133
branches:  trunk
changeset: 580926:5066350c9133
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon May 16 11:40:16 2005 +0000

description:
Whitespace consistency fixes.

diffstat:

 lib/libc/gen/unvis.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (62 lines):

diff -r 69dc487a5cdb -r 5066350c9133 lib/libc/gen/unvis.c
--- a/lib/libc/gen/unvis.c      Mon May 16 11:16:18 2005 +0000
+++ b/lib/libc/gen/unvis.c      Mon May 16 11:40:16 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unvis.c,v 1.25 2005/04/19 16:33:53 rillig Exp $        */
+/*     $NetBSD: unvis.c,v 1.26 2005/05/16 11:40:16 lukem Exp $ */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)unvis.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: unvis.c,v 1.25 2005/04/19 16:33:53 rillig Exp $");
+__RCSID("$NetBSD: unvis.c,v 1.26 2005/05/16 11:40:16 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -69,8 +69,8 @@
 #define        S_CTRL          4       /* control char started (^) */
 #define        S_OCTAL2        5       /* octal digit 2 */
 #define        S_OCTAL3        6       /* octal digit 3 */
-#define S_HEX1         7       /* hex digit */
-#define S_HEX2         8       /* hex digit 2 */
+#define        S_HEX1          7       /* hex digit */
+#define        S_HEX2          8       /* hex digit 2 */
 
 #define        isoctal(c)      (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
 #define xtod(c)                (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10))
@@ -241,6 +241,7 @@
                 * we were done, push back passed char
                 */
                return (UNVIS_VALIDPUSH);
+
        case S_HEX1:
                if (isxdigit(uc)) {
                        *cp = xtod(uc);
@@ -252,6 +253,7 @@
                 */
                *astate = S_GROUND;
                return (UNVIS_VALIDPUSH);
+
        case S_HEX2:
                 *astate = S_GROUND;
                 if (isxdigit(uc)) {
@@ -259,6 +261,7 @@
                        return (UNVIS_VALID);
                }
                 return (UNVIS_VALIDPUSH);
+
        default:        
                /* 
                 * decoder in unknown state - (probably uninitialized) 
@@ -289,7 +292,7 @@
        _DIAGASSERT(dst != NULL);
 
        while ((c = *src++) != '\0') {
-       again:
+ again:
                switch (__unvis13(dst, c, &state, flag)) {
                case UNVIS_VALID:
                        dst++;



Home | Main Index | Thread Index | Old Index