[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile/guile-core/libguile tags.h
From: |
Marius Vollmer |
Subject: |
guile/guile-core/libguile tags.h |
Date: |
Sat, 06 Oct 2001 15:57:44 -0400 |
CVSROOT: /cvs
Module name: guile
Changes by: Marius Vollmer <address@hidden> 01/10/06 15:57:44
Modified files:
guile-core/libguile: tags.h
Log message:
* tags.h (SCM_T_BITS_MAX, SCM_T_SIGNED_BITS_MAX,
SCM_T_SIGNED_BITS_MIN): New.
* numbers.h (SCM_MOST_POSITIVE_FIXNUM, SCM_MOST_NEGATIVE_FIXNUM):
Use them to make these macros computable by the preprocessor.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/libguile/tags.h.diff?cvsroot=OldCVS&tr1=1.87&tr2=1.88&r1=text&r2=text
Patches:
Index: guile/guile-core/libguile/tags.h
diff -u guile/guile-core/libguile/tags.h:1.87
guile/guile-core/libguile/tags.h:1.88
--- guile/guile-core/libguile/tags.h:1.87 Fri Aug 31 10:42:31 2001
+++ guile/guile-core/libguile/tags.h Sat Oct 6 15:57:44 2001
@@ -65,9 +65,15 @@
#ifdef HAVE_UINTPTR_T
typedef uintptr_t scm_t_bits;
typedef intptr_t scm_t_signed_bits;
+#define SCM_T_BITS_MAX UINTPTR_MAX
+#define SCM_T_SIGNED_BITS_MAX INTPTR_MAX
+#define SCM_T_SIGNED_BITS_MIN INTPTR_MIN
#else
typedef unsigned long scm_t_bits;
typedef signed long scm_t_signed_bits;
+#define SCM_T_BITS_MAX ULONG_MAX
+#define SCM_T_SIGNED_BITS_MAX LONG_MAX
+#define SCM_T_SIGNED_BITS_MIN LONG_MIN
#endif
/* But as external interface, we use SCM, which may, according to the desired
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- guile/guile-core/libguile tags.h,
Marius Vollmer <=