Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 28834b7

Browse files
committed
Remove %qd.
1 parent 13b6f72 commit 28834b7

File tree

3 files changed

+1
-46
lines changed

3 files changed

+1
-46
lines changed

src/configure.in

-37
Original file line numberDiff line numberDiff line change
@@ -610,43 +610,6 @@ main() {
610610
AC_MSG_RESULT(no),
611611
AC_MSG_RESULT(assuming not on target machine))
612612

613-
AC_MSG_CHECKING(whether 'long long int' is 64 bits using %qd)
614-
AC_TRY_RUN([#include <stdio.h>
615-
typedef long long int int64;
616-
#define INT64_FORMAT "%qd"
617-
618-
int64 a = 20000001;
619-
int64 b = 40000005;
620-
621-
int does_int64_work()
622-
{
623-
int64 c,d,e;
624-
char buf[100];
625-
626-
if (sizeof(int64) != 8)
627-
return 0; /* doesn't look like the right size */
628-
629-
/* we do perfunctory checks on multiply, divide, sprintf, sscanf */
630-
c = a * b;
631-
sprintf(buf, INT64_FORMAT, c);
632-
if (strcmp(buf, "800000140000005") != 0)
633-
return 0; /* either multiply or sprintf is busted */
634-
if (sscanf(buf, INT64_FORMAT, &d) != 1)
635-
return 0;
636-
if (d != c)
637-
return 0;
638-
e = d / b;
639-
if (e != a)
640-
return 0;
641-
return 1;
642-
}
643-
main() {
644-
exit(! does_int64_work());
645-
}],
646-
[AC_DEFINE(HAVE_LONG_LONG_INT_64_qd) AC_MSG_RESULT(yes)],
647-
AC_MSG_RESULT(no),
648-
AC_MSG_RESULT(assuming not on target machine))
649-
650613
dnl Checks for library functions.
651614
AC_PROG_GCC_TRADITIONAL
652615
AC_FUNC_MEMCMP

src/include/config.h.in

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ extern void srandom(int seed);
224224

225225
/* Set to 1 if type "long long int" works and is 64 bits */
226226
#undef HAVE_LONG_LONG_INT_64_lld
227-
#undef HAVE_LONG_LONG_INT_64_qd
228227

229228
/*
230229
* Code below this point should not require changes

src/include/utils/int8.h

+1-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: int8.h,v 1.6 1998/09/10 05:36:00 momjian Exp $
9+
* $Id: int8.h,v 1.7 1998/09/11 16:43:26 momjian Exp $
1010
*
1111
* NOTES
1212
* These data types are supported on all 64-bit architectures, and may
@@ -35,20 +35,13 @@ typedef long long int int64;
3535

3636
#define INT64_FORMAT "%lld"
3737
#else
38-
#ifdef HAVE_LONG_LONG_INT_64_qd
39-
/* We have working support for "long long int", use that */
40-
typedef long long int int64;
41-
42-
#define INT64_FORMAT "%qd"
43-
#else
4438
/* Won't actually work, but fall back to long int so that int8.c compiles */
4539
typedef long int int64;
4640

4741
#define INT64_FORMAT "%ld"
4842
#define INT64_IS_BUSTED
4943
#endif
5044
#endif
51-
#endif
5245

5346
extern int64 *int8in(char *str);
5447
extern char *int8out(int64 * val);

0 commit comments

Comments
 (0)