Module Name:    src
Committed By:   martin
Date:           Thu Dec 27 07:14:25 UTC 2012

Modified Files:
        src/sys/arch/ia64/include: wchar_limits.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/wchar_limits.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ia64/include/wchar_limits.h
diff -u src/sys/arch/ia64/include/wchar_limits.h:1.2 src/sys/arch/ia64/include/wchar_limits.h:1.3
--- src/sys/arch/ia64/include/wchar_limits.h:1.2	Mon Apr 28 20:23:25 2008
+++ src/sys/arch/ia64/include/wchar_limits.h	Thu Dec 27 07:14:24 2012
@@ -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_ */

Reply via email to