Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/time More KNF style changes -- consistent use of wh...



details:   https://anonhg.NetBSD.org/src/rev/d2f45e5e93cd
branches:  trunk
changeset: 339434:d2f45e5e93cd
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Wed Jul 22 13:33:59 2015 +0000

description:
More KNF style changes -- consistent use of whitespace in #defines.

diffstat:

 lib/libc/time/strptime.c |  26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diffs (49 lines):

diff -r 3a5eff835737 -r d2f45e5e93cd lib/libc/time/strptime.c
--- a/lib/libc/time/strptime.c  Wed Jul 22 11:14:13 2015 +0000
+++ b/lib/libc/time/strptime.c  Wed Jul 22 13:33:59 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strptime.c,v 1.46 2015/07/20 14:37:11 ginsbach Exp $   */
+/*     $NetBSD: strptime.c,v 1.47 2015/07/22 13:33:59 ginsbach Exp $   */
 
 /*-
  * Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strptime.c,v 1.46 2015/07/20 14:37:11 ginsbach Exp $");
+__RCSID("$NetBSD: strptime.c,v 1.47 2015/07/22 13:33:59 ginsbach Exp $");
 #endif
 
 #include "namespace.h"
@@ -63,19 +63,19 @@
  */
 #define ALT_E                  0x01
 #define ALT_O                  0x02
-#define        LEGAL_ALT(x)            { if (alt_format & ~(x)) return NULL; }
+#define LEGAL_ALT(x)           { if (alt_format & ~(x)) return NULL; }
 
-#define        S_YEAR          (1 << 0)
-#define        S_MON           (1 << 1)
-#define        S_YDAY          (1 << 2)
-#define        S_MDAY          (1 << 3)
-#define        S_WDAY          (1 << 4)
+#define S_YEAR                 (1 << 0)
+#define S_MON                  (1 << 1)
+#define S_YDAY                 (1 << 2)
+#define S_MDAY                 (1 << 3)
+#define S_WDAY                 (1 << 4)
 
-#define HAVE_MDAY(s)   (s & S_MDAY)
-#define HAVE_MON(s)    (s & S_MON)
-#define HAVE_WDAY(s)   (s & S_WDAY)
-#define HAVE_YDAY(s)   (s & S_YDAY)
-#define HAVE_YEAR(s)   (s & S_YEAR)
+#define HAVE_MDAY(s)           (s & S_MDAY)
+#define HAVE_MON(s)            (s & S_MON)
+#define HAVE_WDAY(s)           (s & S_WDAY)
+#define HAVE_YDAY(s)           (s & S_YDAY)
+#define HAVE_YEAR(s)           (s & S_YEAR)
 
 static char gmt[] = { "GMT" };
 static char utc[] = { "UTC" };



Home | Main Index | Thread Index | Old Index