Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Fix whitespace
details: https://anonhg.NetBSD.org/src/rev/a33f820dc5d2
branches: trunk
changeset: 785068:a33f820dc5d2
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 20 17:15:08 2013 +0000
description:
Fix whitespace
diffstat:
lib/libc/gen/vis.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (71 lines):
diff -r 6b884114923c -r a33f820dc5d2 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c Wed Feb 20 17:04:45 2013 +0000
+++ b/lib/libc/gen/vis.c Wed Feb 20 17:15:08 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.54 2013/02/20 17:01:15 christos Exp $ */
+/* $NetBSD: vis.c,v 1.55 2013/02/20 17:15:08 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.54 2013/02/20 17:01:15 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.55 2013/02/20 17:15:08 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef __FBSDID
__FBSDID("$FreeBSD$");
@@ -139,7 +139,7 @@
((iswspace(c) && (nextc == L'\r' || nextc == L'\n')) ||
/* Out of range */
(!iswspace(c) && (c < 33 || (c > 60 && c < 62) || c > 126)) ||
- /* Specific char to be escaped */
+ /* Specific char to be escaped */
wcschr(L"#$@[\\]^`{|}~", c) != NULL)) {
*dst++ = L'=';
*dst++ = XTOA(((unsigned int)c >> 4) & 0xf);
@@ -204,12 +204,12 @@
} else {
if ((flags & VIS_NOSLASH) == 0)
*dst++ = L'\\';
-
+
if (c & 0200) {
c &= 0177;
*dst++ = L'M';
}
-
+
if (iswcntrl(c)) {
*dst++ = L'^';
if (c == 0177)
@@ -304,8 +304,8 @@
*d++ = L'#';
}
- if (flags & VIS_SP) *d++ = L' ';
- if (flags & VIS_TAB) *d++ = L'\t';
+ if (flags & VIS_SP) *d++ = L' ';
+ if (flags & VIS_TAB) *d++ = L'\t';
if (flags & VIS_NL) *d++ = L'\n';
if ((flags & VIS_NOSLASH) == 0) *d++ = L'\\';
*d = L'\0';
@@ -397,7 +397,7 @@
/* Decrement input byte count. */
mbslength -= clen;
}
- len = src - psrc;
+ len = src - psrc;
src = psrc;
/*
* In the single character input case, we will have actually
@@ -455,7 +455,7 @@
/*
* Conversion error, process as a byte(s) instead.
* Examine each byte and higher-order bytes for
- * data. E.g.,
+ * data. E.g.,
* 0x0000a264 -> a2 64
* 0x1f00a264 -> 1f 00 a2 64
*/
Home |
Main Index |
Thread Index |
Old Index