summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1998-09-11 16:43:26 +0000
committerBruce Momjian1998-09-11 16:43:26 +0000
commit28834b7226f496898c3e69d7e9a1164ae3c54d2a (patch)
tree20ff96cfc6f1f510dbff03254b61eb440c98944c
parent13b6f724c188a07213739ef5f499eb8b8a858441 (diff)
Remove %qd.
-rw-r--r--src/configure.in37
-rw-r--r--src/include/config.h.in1
-rw-r--r--src/include/utils/int8.h9
3 files changed, 1 insertions, 46 deletions
diff --git a/src/configure.in b/src/configure.in
index ea495621059..a893083c320 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -610,43 +610,6 @@ main() {
AC_MSG_RESULT(no),
AC_MSG_RESULT(assuming not on target machine))
-AC_MSG_CHECKING(whether 'long long int' is 64 bits using %qd)
-AC_TRY_RUN([#include <stdio.h>
-typedef long long int int64;
-#define INT64_FORMAT "%qd"
-
-int64 a = 20000001;
-int64 b = 40000005;
-
-int does_int64_work()
-{
- int64 c,d,e;
- char buf[100];
-
- if (sizeof(int64) != 8)
- return 0; /* doesn't look like the right size */
-
- /* we do perfunctory checks on multiply, divide, sprintf, sscanf */
- c = a * b;
- sprintf(buf, INT64_FORMAT, c);
- if (strcmp(buf, "800000140000005") != 0)
- return 0; /* either multiply or sprintf is busted */
- if (sscanf(buf, INT64_FORMAT, &d) != 1)
- return 0;
- if (d != c)
- return 0;
- e = d / b;
- if (e != a)
- return 0;
- return 1;
-}
-main() {
- exit(! does_int64_work());
-}],
- [AC_DEFINE(HAVE_LONG_LONG_INT_64_qd) AC_MSG_RESULT(yes)],
- AC_MSG_RESULT(no),
- AC_MSG_RESULT(assuming not on target machine))
-
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
diff --git a/src/include/config.h.in b/src/include/config.h.in
index c4d118d6b4b..f34baf62797 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -224,7 +224,6 @@ extern void srandom(int seed);
/* Set to 1 if type "long long int" works and is 64 bits */
#undef HAVE_LONG_LONG_INT_64_lld
-#undef HAVE_LONG_LONG_INT_64_qd
/*
* Code below this point should not require changes
diff --git a/src/include/utils/int8.h b/src/include/utils/int8.h
index 24177bee82b..211a6efd5ae 100644
--- a/src/include/utils/int8.h
+++ b/src/include/utils/int8.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: int8.h,v 1.6 1998/09/10 05:36:00 momjian Exp $
+ * $Id: int8.h,v 1.7 1998/09/11 16:43:26 momjian Exp $
*
* NOTES
* These data types are supported on all 64-bit architectures, and may
@@ -35,12 +35,6 @@ typedef long long int int64;
#define INT64_FORMAT "%lld"
#else
-#ifdef HAVE_LONG_LONG_INT_64_qd
-/* We have working support for "long long int", use that */
-typedef long long int int64;
-
-#define INT64_FORMAT "%qd"
-#else
/* Won't actually work, but fall back to long int so that int8.c compiles */
typedef long int int64;
@@ -48,7 +42,6 @@ typedef long int int64;
#define INT64_IS_BUSTED
#endif
#endif
-#endif
extern int64 *int8in(char *str);
extern char *int8out(int64 * val);