diff options
author | Andy Wingo <wingo@pobox.com> | 2018-06-20 15:02:49 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-06-20 15:02:49 +0200 |
commit | 51c164a7bc94816eb543bc5d4c42c8a501bbf6cb (patch) | |
tree | 32c1db22a16928b7a10a9957f2a55a6462ff4e24 /libguile/deprecated.h | |
parent | 55317a5dd31aaceee4ddf2f6ec1b15b14e32e2e8 (diff) | |
download | guile-51c164a7bc94816eb543bc5d4c42c8a501bbf6cb.tar.gz |
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.
Diffstat (limited to 'libguile/deprecated.h')
-rw-r--r-- | libguile/deprecated.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libguile/deprecated.h b/libguile/deprecated.h index 43c31d8c5..de6e07163 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 |