guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 73/86: Deprecate pre-stdint.h limit macros


From: Andy Wingo
Subject: [Guile-commits] 73/86: Deprecate pre-stdint.h limit macros
Date: Wed, 20 Jun 2018 14:09:44 -0400 (EDT)

wingo pushed a commit to branch master
in repository guile.

commit 51c164a7bc94816eb543bc5d4c42c8a501bbf6cb
Author: Andy Wingo <address@hidden>
Date:   Wed Jun 20 15:02:49 2018 +0200

    Deprecate pre-stdint.h limit macros
    
    * libguile/__scm.h:
    * libguile/deprecated.h:
      (SCM_T_UINT8_MAX, SCM_T_INT8_MIN, SCM_T_INT8_MAX, SCM_T_UINT16_MAX)
      (SCM_T_INT16_MIN, SCM_T_INT16_MAX, SCM_T_UINT32_MAX, SCM_T_INT32_MIN)
      (SCM_T_INT32_MAX, SCM_T_UINT64_MAX, SCM_T_INT64_MIN, SCM_T_INT64_MAX)
      (SCM_T_UINTMAX_MAX, SCM_T_INTMAX_MIN, SCM_T_INTMAX_MAX)
      (SCM_T_UINTPTR_MAX, SCM_T_INTPTR_MIN, SCM_T_INTPTR_MAX): Deprecate.
---
 libguile/__scm.h      | 28 ----------------------------
 libguile/deprecated.h | 28 ++++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/libguile/__scm.h b/libguile/__scm.h
index bd81cb0..e8ebb15 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -287,34 +287,6 @@
 # define SCM_LONG_BIT (SCM_SIZEOF_LONG * 8)
 #endif
 
-#define SCM_I_UTYPE_MAX(type)      ((type)-1)
-#define SCM_I_TYPE_MAX(type,umax)  ((type)((umax)/2))
-#define SCM_I_TYPE_MIN(type,umax)  (-((type)((umax)/2))-1)
-
-#define SCM_T_UINT8_MAX   UINT8_MAX
-#define SCM_T_INT8_MIN    INT8_MIN
-#define SCM_T_INT8_MAX    INT8_MAX
-
-#define SCM_T_UINT16_MAX  UINT16_MAX
-#define SCM_T_INT16_MIN   INT16_MIN
-#define SCM_T_INT16_MAX   INT16_MAX
-
-#define SCM_T_UINT32_MAX  UINT32_MAX
-#define SCM_T_INT32_MIN   INT32_MIN
-#define SCM_T_INT32_MAX   INT32_MAX
-
-#define SCM_T_UINT64_MAX  UINT64_MAX
-#define SCM_T_INT64_MIN   INT64_MIN
-#define SCM_T_INT64_MAX   INT64_MAX
-
-#define SCM_T_UINTMAX_MAX UINTMAX_MAX
-#define SCM_T_INTMAX_MIN  INTMAX_MIN
-#define SCM_T_INTMAX_MAX  INTMAX_MAX
-
-#define SCM_T_UINTPTR_MAX UINTPTR_MAX
-#define SCM_T_INTPTR_MIN  INTPTR_MIN
-#define SCM_T_INTPTR_MAX  INTPTR_MAX
-
 
 
 #include "libguile/tags.h"
diff --git a/libguile/deprecated.h b/libguile/deprecated.h
index 43c31d8..de6e071 100644
--- a/libguile/deprecated.h
+++ b/libguile/deprecated.h
@@ -56,6 +56,34 @@
 
 #define scm_gc_running_p  0
 
+#define SCM_I_UTYPE_MAX(type)      ((type)-1)
+#define SCM_I_TYPE_MAX(type,umax)  ((type)((umax)/2))
+#define SCM_I_TYPE_MIN(type,umax)  (-((type)((umax)/2))-1)
+
+#define SCM_T_UINT8_MAX   UINT8_MAX
+#define SCM_T_INT8_MIN    INT8_MIN
+#define SCM_T_INT8_MAX    INT8_MAX
+
+#define SCM_T_UINT16_MAX  UINT16_MAX
+#define SCM_T_INT16_MIN   INT16_MIN
+#define SCM_T_INT16_MAX   INT16_MAX
+
+#define SCM_T_UINT32_MAX  UINT32_MAX
+#define SCM_T_INT32_MIN   INT32_MIN
+#define SCM_T_INT32_MAX   INT32_MAX
+
+#define SCM_T_UINT64_MAX  UINT64_MAX
+#define SCM_T_INT64_MIN   INT64_MIN
+#define SCM_T_INT64_MAX   INT64_MAX
+
+#define SCM_T_UINTMAX_MAX UINTMAX_MAX
+#define SCM_T_INTMAX_MIN  INTMAX_MIN
+#define SCM_T_INTMAX_MAX  INTMAX_MAX
+
+#define SCM_T_UINTPTR_MAX UINTPTR_MAX
+#define SCM_T_INTPTR_MIN  INTPTR_MIN
+#define SCM_T_INTPTR_MAX  INTPTR_MAX
+
 void scm_i_init_deprecated (void);
 
 #endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]