Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Replace (sizeof (char) << 3) with a less silly-looki...
details: https://anonhg.NetBSD.org/src/rev/7bf47e544f36
branches: trunk
changeset: 508689:7bf47e544f36
user: kleink <kleink%NetBSD.org@localhost>
date: Tue Apr 17 20:09:50 2001 +0000
description:
Replace (sizeof (char) << 3) with a less silly-looking CHAR_BIT;
from Peter Seebach in PR standards/9333.
diffstat:
include/ctype.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 57d62033073f -r 7bf47e544f36 include/ctype.h
--- a/include/ctype.h Tue Apr 17 18:49:26 2001 +0000
+++ b/include/ctype.h Tue Apr 17 20:09:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ctype.h,v 1.19 2001/01/21 10:44:15 itojun Exp $ */
+/* $NetBSD: ctype.h,v 1.20 2001/04/17 20:09:50 kleink Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -124,7 +124,7 @@
#endif
#ifdef _CTYPE_PRIVATE
-#define _CTYPE_NUM_CHARS (1<<(sizeof(char)<<3))
+#define _CTYPE_NUM_CHARS (1 << CHAR_BIT)
#define _CTYPE_ID "BSDCTYPE"
#define _CTYPE_REV 2
Home |
Main Index |
Thread Index |
Old Index