Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/include Add WCHAR_MIN and WCHAR_MAX.



details:   https://anonhg.NetBSD.org/src/rev/722966b05b30
branches:  trunk
changeset: 783520:722966b05b30
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Dec 27 07:14:24 2012 +0000

description:
Add WCHAR_MIN and WCHAR_MAX.
Why don't we use the compiler supplied __WCHAR_MIN__ and __WCHAR_MAX__ for
this?

diffstat:

 sys/arch/ia64/include/wchar_limits.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r f7898ed4f65c -r 722966b05b30 sys/arch/ia64/include/wchar_limits.h
--- a/sys/arch/ia64/include/wchar_limits.h      Thu Dec 27 07:09:45 2012 +0000
+++ b/sys/arch/ia64/include/wchar_limits.h      Thu Dec 27 07:14:24 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wchar_limits.h,v 1.2 2008/04/28 20:23:25 martin Exp $  */
+/*     $NetBSD: wchar_limits.h,v 1.3 2012/12/27 07:14:24 martin Exp $  */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -32,4 +32,16 @@
 #ifndef _IA64_WCHAR_LIMITS_H_
 #define _IA64_WCHAR_LIMITS_H_
 
+/*
+ * 7.18.3 Limits of other integer types
+ */
+
+/* limits of wchar_t */
+#define        WCHAR_MIN       (-0x7fffffff-1)                 /* wchar_t        */
+#define        WCHAR_MAX       0x7fffffff                      /* wchar_t        */
+
+/* limits of wint_t */
+#define        WINT_MIN        (-0x7fffffff-1)                 /* wint_t         */
+#define        WINT_MAX        0x7fffffff                      /* wint_t         */
+
 #endif /* !_IA64_WCHAR_LIMITS_H_ */



Home | Main Index | Thread Index | Old Index