diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | configure | 12 |
2 files changed, 18 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2011-12-10 Kaz Kylheku <kaz@kylheku.com> + * configure: add to config.h the type double_intptr_t, which + is twice the size of intptr_t. It may not be available, so + there is a HAVE_ macro to detect it. + +2011-12-10 Kaz Kylheku <kaz@kylheku.com> + * eval.c (eval_init): New functions added as intrinsics. * hash.c (hash_eql, hash_equal): New external functions. @@ -769,6 +769,18 @@ intptr_max_expr="((((($intptr) 1 << $((SIZEOF_PTR * 8 - 2))) - 1) << 1) + 1)" printf "#define INT_PTR_MAX %s\n" "$intptr_max_expr" >> config.h printf "#define INT_PTR_MIN (-INT_PTR_MAX)\n" >> config.h +if [ -n "$longlong" ] && [ $SIZEOF_LONGLONG_T -eq $(( 2 * $SIZEOF_PTR )) ] +then + printf "#define HAVE_DOUBLE_INTPTR_T 1\n" >> config.h + printf "typedef longlong_t double_intptr_t;\n" >> config.h +elif [ -n "$superlong" ] && [ $SIZEOF_SUPERLONG_T -eq $(( 2 * $SIZEOF_PTR )) ] +then + printf "#define HAVE_DOUBLE_INTPTR_T 1\n" >> config.h + printf "typedef superlong_t double_intptr_t;\n" >> config.h +fi + +#if HAVE_LONGLONG_T && + # # Alignment of wchar_t # |