Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
28834b72
Commit
28834b72
authored
26 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Remove %qd.
parent
13b6f724
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/configure.in
+0
-37
0 additions, 37 deletions
src/configure.in
src/include/config.h.in
+0
-1
0 additions, 1 deletion
src/include/config.h.in
src/include/utils/int8.h
+1
-8
1 addition, 8 deletions
src/include/utils/int8.h
with
1 addition
and
46 deletions
src/configure.in
+
0
−
37
View file @
28834b72
...
@@ -610,43 +610,6 @@ main() {
...
@@ -610,43 +610,6 @@ main() {
AC_MSG_RESULT(no),
AC_MSG_RESULT(no),
AC_MSG_RESULT(assuming not on target machine))
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.
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_FUNC_MEMCMP
...
...
This diff is collapsed.
Click to expand it.
src/include/config.h.in
+
0
−
1
View file @
28834b72
...
@@ -224,7 +224,6 @@ extern void srandom(int seed);
...
@@ -224,7 +224,6 @@ extern void srandom(int seed);
/* Set to 1 if type "long long int" works and is 64 bits */
/* 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_lld
#undef HAVE_LONG_LONG_INT_64_qd
/*
/*
* Code below this point should not require changes
* Code below this point should not require changes
...
...
This diff is collapsed.
Click to expand it.
src/include/utils/int8.h
+
1
−
8
View file @
28834b72
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: int8.h,v 1.
6
1998/09/1
0 05:36:00
momjian Exp $
* $Id: int8.h,v 1.
7
1998/09/1
1 16:43:26
momjian Exp $
*
*
* NOTES
* NOTES
* These data types are supported on all 64-bit architectures, and may
* These data types are supported on all 64-bit architectures, and may
...
@@ -35,12 +35,6 @@ typedef long long int int64;
...
@@ -35,12 +35,6 @@ typedef long long int int64;
#define INT64_FORMAT "%lld"
#define INT64_FORMAT "%lld"
#else
#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 */
/* Won't actually work, but fall back to long int so that int8.c compiles */
typedef
long
int
int64
;
typedef
long
int
int64
;
...
@@ -48,7 +42,6 @@ typedef long int int64;
...
@@ -48,7 +42,6 @@ typedef long int int64;
#define INT64_IS_BUSTED
#define INT64_IS_BUSTED
#endif
#endif
#endif
#endif
#endif
extern
int64
*
int8in
(
char
*
str
);
extern
int64
*
int8in
(
char
*
str
);
extern
char
*
int8out
(
int64
*
val
);
extern
char
*
int8out
(
int64
*
val
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment