Fossil SCM

Update the built-in SQLite to a new version that includes proper "LL" suffixes on all 64-bit integer literals.

drh 2023-07-08 18:11 trunk
Commit 06fb3f8104ed7fed41431aca2ee22a0d9bda51cd8486b45e2136d4c06fb9a311
2 files changed +8 -8 +1 -1
--- extsrc/sqlite3.c
+++ extsrc/sqlite3.c
@@ -16,11 +16,11 @@
1616
** if you want a wrapper to interface SQLite with your choice of programming
1717
** language. The code for the "sqlite3" command-line shell is also in a
1818
** separate file. This file contains only code for the core SQLite library.
1919
**
2020
** The content in this amalgamation comes from Fossil check-in
21
-** eab3c98639be531744e60440223bb9ee76b.
21
+** 7d95ed60f0a17ea13b4bc19c2ab2ec9052f.
2222
*/
2323
#define SQLITE_CORE 1
2424
#define SQLITE_AMALGAMATION 1
2525
#ifndef SQLITE_PRIVATE
2626
# define SQLITE_PRIVATE static
@@ -459,11 +459,11 @@
459459
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
460460
** [sqlite_version()] and [sqlite_source_id()].
461461
*/
462462
#define SQLITE_VERSION "3.43.0"
463463
#define SQLITE_VERSION_NUMBER 3043000
464
-#define SQLITE_SOURCE_ID "2023-07-08 14:27:55 beab3c98639be531744e60440223bb9ee76bc15234aff05e5efb273c8241dfd8"
464
+#define SQLITE_SOURCE_ID "2023-07-08 17:42:24 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7"
465465
466466
/*
467467
** CAPI3REF: Run-Time Library Version Numbers
468468
** KEYWORDS: sqlite3_version sqlite3_sourceid
469469
**
@@ -34386,15 +34386,15 @@
3438634386
*/
3438734387
volatile double tx, ty, p, q, c, cc;
3438834388
double hx, hy;
3438934389
u64 m;
3439034390
memcpy(&m, (void*)&x[0], 8);
34391
- m &= 0xfffffffffc000000L;
34391
+ m &= 0xfffffffffc000000LL;
3439234392
memcpy(&hx, &m, 8);
3439334393
tx = x[0] - hx;
3439434394
memcpy(&m, &y, 8);
34395
- m &= 0xfffffffffc000000L;
34395
+ m &= 0xfffffffffc000000LL;
3439634396
memcpy(&hy, &m, 8);
3439734397
ty = y - hy;
3439834398
p = hx*hy;
3439934399
q = hx*ty + tx*hy;
3440034400
c = p+q;
@@ -34944,11 +34944,11 @@
3494434944
p->sign = '+';
3494534945
}
3494634946
memcpy(&v,&r,8);
3494734947
e = v>>52;
3494834948
if( (e&0x7ff)==0x7ff ){
34949
- p->isSpecial = 1 + (v!=0x7ff0000000000000L);
34949
+ p->isSpecial = 1 + (v!=0x7ff0000000000000LL);
3495034950
p->n = 0;
3495134951
p->iDP = 0;
3495234952
return;
3495334953
}
3495434954
@@ -127545,11 +127545,11 @@
127545127545
127546127546
/*
127547127547
** Add a (possibly large) integer to the running sum.
127548127548
*/
127549127549
static void kahanBabuskaNeumaierStepInt64(volatile SumCtx *pSum, i64 iVal){
127550
- if( iVal<=-4503599627370496 || iVal>=+4503599627370496 ){
127550
+ if( iVal<=-4503599627370496LL || iVal>=+4503599627370496LL ){
127551127551
i64 iBig, iSm;
127552127552
iSm = iVal % 16384;
127553127553
iBig = iVal - iSm;
127554127554
kahanBabuskaNeumaierStep(pSum, iBig);
127555127555
kahanBabuskaNeumaierStep(pSum, iSm);
@@ -127563,11 +127563,11 @@
127563127563
*/
127564127564
static void kahanBabuskaNeumaierInit(
127565127565
volatile SumCtx *p,
127566127566
i64 iVal
127567127567
){
127568
- if( iVal<=-4503599627370496 || iVal>=+4503599627370496 ){
127568
+ if( iVal<=-4503599627370496LL || iVal>=+4503599627370496LL ){
127569127569
i64 iSm = iVal % 16384;
127570127570
p->rSum = (double)(iVal - iSm);
127571127571
p->rErr = (double)iSm;
127572127572
}else{
127573127573
p->rSum = (double)iVal;
@@ -243299,11 +243299,11 @@
243299243299
int nArg, /* Number of args */
243300243300
sqlite3_value **apUnused /* Function arguments */
243301243301
){
243302243302
assert( nArg==0 );
243303243303
UNUSED_PARAM2(nArg, apUnused);
243304
- sqlite3_result_text(pCtx, "fts5: 2023-07-08 14:27:55 beab3c98639be531744e60440223bb9ee76bc15234aff05e5efb273c8241dfd8", -1, SQLITE_TRANSIENT);
243304
+ sqlite3_result_text(pCtx, "fts5: 2023-07-08 17:42:24 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7", -1, SQLITE_TRANSIENT);
243305243305
}
243306243306
243307243307
/*
243308243308
** Return true if zName is the extension on one of the shadow tables used
243309243309
** by this module.
243310243310
--- extsrc/sqlite3.c
+++ extsrc/sqlite3.c
@@ -16,11 +16,11 @@
16 ** if you want a wrapper to interface SQLite with your choice of programming
17 ** language. The code for the "sqlite3" command-line shell is also in a
18 ** separate file. This file contains only code for the core SQLite library.
19 **
20 ** The content in this amalgamation comes from Fossil check-in
21 ** eab3c98639be531744e60440223bb9ee76b.
22 */
23 #define SQLITE_CORE 1
24 #define SQLITE_AMALGAMATION 1
25 #ifndef SQLITE_PRIVATE
26 # define SQLITE_PRIVATE static
@@ -459,11 +459,11 @@
459 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
460 ** [sqlite_version()] and [sqlite_source_id()].
461 */
462 #define SQLITE_VERSION "3.43.0"
463 #define SQLITE_VERSION_NUMBER 3043000
464 #define SQLITE_SOURCE_ID "2023-07-08 14:27:55 beab3c98639be531744e60440223bb9ee76bc15234aff05e5efb273c8241dfd8"
465
466 /*
467 ** CAPI3REF: Run-Time Library Version Numbers
468 ** KEYWORDS: sqlite3_version sqlite3_sourceid
469 **
@@ -34386,15 +34386,15 @@
34386 */
34387 volatile double tx, ty, p, q, c, cc;
34388 double hx, hy;
34389 u64 m;
34390 memcpy(&m, (void*)&x[0], 8);
34391 m &= 0xfffffffffc000000L;
34392 memcpy(&hx, &m, 8);
34393 tx = x[0] - hx;
34394 memcpy(&m, &y, 8);
34395 m &= 0xfffffffffc000000L;
34396 memcpy(&hy, &m, 8);
34397 ty = y - hy;
34398 p = hx*hy;
34399 q = hx*ty + tx*hy;
34400 c = p+q;
@@ -34944,11 +34944,11 @@
34944 p->sign = '+';
34945 }
34946 memcpy(&v,&r,8);
34947 e = v>>52;
34948 if( (e&0x7ff)==0x7ff ){
34949 p->isSpecial = 1 + (v!=0x7ff0000000000000L);
34950 p->n = 0;
34951 p->iDP = 0;
34952 return;
34953 }
34954
@@ -127545,11 +127545,11 @@
127545
127546 /*
127547 ** Add a (possibly large) integer to the running sum.
127548 */
127549 static void kahanBabuskaNeumaierStepInt64(volatile SumCtx *pSum, i64 iVal){
127550 if( iVal<=-4503599627370496 || iVal>=+4503599627370496 ){
127551 i64 iBig, iSm;
127552 iSm = iVal % 16384;
127553 iBig = iVal - iSm;
127554 kahanBabuskaNeumaierStep(pSum, iBig);
127555 kahanBabuskaNeumaierStep(pSum, iSm);
@@ -127563,11 +127563,11 @@
127563 */
127564 static void kahanBabuskaNeumaierInit(
127565 volatile SumCtx *p,
127566 i64 iVal
127567 ){
127568 if( iVal<=-4503599627370496 || iVal>=+4503599627370496 ){
127569 i64 iSm = iVal % 16384;
127570 p->rSum = (double)(iVal - iSm);
127571 p->rErr = (double)iSm;
127572 }else{
127573 p->rSum = (double)iVal;
@@ -243299,11 +243299,11 @@
243299 int nArg, /* Number of args */
243300 sqlite3_value **apUnused /* Function arguments */
243301 ){
243302 assert( nArg==0 );
243303 UNUSED_PARAM2(nArg, apUnused);
243304 sqlite3_result_text(pCtx, "fts5: 2023-07-08 14:27:55 beab3c98639be531744e60440223bb9ee76bc15234aff05e5efb273c8241dfd8", -1, SQLITE_TRANSIENT);
243305 }
243306
243307 /*
243308 ** Return true if zName is the extension on one of the shadow tables used
243309 ** by this module.
243310
--- extsrc/sqlite3.c
+++ extsrc/sqlite3.c
@@ -16,11 +16,11 @@
16 ** if you want a wrapper to interface SQLite with your choice of programming
17 ** language. The code for the "sqlite3" command-line shell is also in a
18 ** separate file. This file contains only code for the core SQLite library.
19 **
20 ** The content in this amalgamation comes from Fossil check-in
21 ** 7d95ed60f0a17ea13b4bc19c2ab2ec9052f.
22 */
23 #define SQLITE_CORE 1
24 #define SQLITE_AMALGAMATION 1
25 #ifndef SQLITE_PRIVATE
26 # define SQLITE_PRIVATE static
@@ -459,11 +459,11 @@
459 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
460 ** [sqlite_version()] and [sqlite_source_id()].
461 */
462 #define SQLITE_VERSION "3.43.0"
463 #define SQLITE_VERSION_NUMBER 3043000
464 #define SQLITE_SOURCE_ID "2023-07-08 17:42:24 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7"
465
466 /*
467 ** CAPI3REF: Run-Time Library Version Numbers
468 ** KEYWORDS: sqlite3_version sqlite3_sourceid
469 **
@@ -34386,15 +34386,15 @@
34386 */
34387 volatile double tx, ty, p, q, c, cc;
34388 double hx, hy;
34389 u64 m;
34390 memcpy(&m, (void*)&x[0], 8);
34391 m &= 0xfffffffffc000000LL;
34392 memcpy(&hx, &m, 8);
34393 tx = x[0] - hx;
34394 memcpy(&m, &y, 8);
34395 m &= 0xfffffffffc000000LL;
34396 memcpy(&hy, &m, 8);
34397 ty = y - hy;
34398 p = hx*hy;
34399 q = hx*ty + tx*hy;
34400 c = p+q;
@@ -34944,11 +34944,11 @@
34944 p->sign = '+';
34945 }
34946 memcpy(&v,&r,8);
34947 e = v>>52;
34948 if( (e&0x7ff)==0x7ff ){
34949 p->isSpecial = 1 + (v!=0x7ff0000000000000LL);
34950 p->n = 0;
34951 p->iDP = 0;
34952 return;
34953 }
34954
@@ -127545,11 +127545,11 @@
127545
127546 /*
127547 ** Add a (possibly large) integer to the running sum.
127548 */
127549 static void kahanBabuskaNeumaierStepInt64(volatile SumCtx *pSum, i64 iVal){
127550 if( iVal<=-4503599627370496LL || iVal>=+4503599627370496LL ){
127551 i64 iBig, iSm;
127552 iSm = iVal % 16384;
127553 iBig = iVal - iSm;
127554 kahanBabuskaNeumaierStep(pSum, iBig);
127555 kahanBabuskaNeumaierStep(pSum, iSm);
@@ -127563,11 +127563,11 @@
127563 */
127564 static void kahanBabuskaNeumaierInit(
127565 volatile SumCtx *p,
127566 i64 iVal
127567 ){
127568 if( iVal<=-4503599627370496LL || iVal>=+4503599627370496LL ){
127569 i64 iSm = iVal % 16384;
127570 p->rSum = (double)(iVal - iSm);
127571 p->rErr = (double)iSm;
127572 }else{
127573 p->rSum = (double)iVal;
@@ -243299,11 +243299,11 @@
243299 int nArg, /* Number of args */
243300 sqlite3_value **apUnused /* Function arguments */
243301 ){
243302 assert( nArg==0 );
243303 UNUSED_PARAM2(nArg, apUnused);
243304 sqlite3_result_text(pCtx, "fts5: 2023-07-08 17:42:24 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7", -1, SQLITE_TRANSIENT);
243305 }
243306
243307 /*
243308 ** Return true if zName is the extension on one of the shadow tables used
243309 ** by this module.
243310
--- extsrc/sqlite3.h
+++ extsrc/sqlite3.h
@@ -146,11 +146,11 @@
146146
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
147147
** [sqlite_version()] and [sqlite_source_id()].
148148
*/
149149
#define SQLITE_VERSION "3.43.0"
150150
#define SQLITE_VERSION_NUMBER 3043000
151
-#define SQLITE_SOURCE_ID "2023-07-08 14:27:55 beab3c98639be531744e60440223bb9ee76bc15234aff05e5efb273c8241dfd8"
151
+#define SQLITE_SOURCE_ID "2023-07-08 17:42:24 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7"
152152
153153
/*
154154
** CAPI3REF: Run-Time Library Version Numbers
155155
** KEYWORDS: sqlite3_version sqlite3_sourceid
156156
**
157157
--- extsrc/sqlite3.h
+++ extsrc/sqlite3.h
@@ -146,11 +146,11 @@
146 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
147 ** [sqlite_version()] and [sqlite_source_id()].
148 */
149 #define SQLITE_VERSION "3.43.0"
150 #define SQLITE_VERSION_NUMBER 3043000
151 #define SQLITE_SOURCE_ID "2023-07-08 14:27:55 beab3c98639be531744e60440223bb9ee76bc15234aff05e5efb273c8241dfd8"
152
153 /*
154 ** CAPI3REF: Run-Time Library Version Numbers
155 ** KEYWORDS: sqlite3_version sqlite3_sourceid
156 **
157
--- extsrc/sqlite3.h
+++ extsrc/sqlite3.h
@@ -146,11 +146,11 @@
146 ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
147 ** [sqlite_version()] and [sqlite_source_id()].
148 */
149 #define SQLITE_VERSION "3.43.0"
150 #define SQLITE_VERSION_NUMBER 3043000
151 #define SQLITE_SOURCE_ID "2023-07-08 17:42:24 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7"
152
153 /*
154 ** CAPI3REF: Run-Time Library Version Numbers
155 ** KEYWORDS: sqlite3_version sqlite3_sourceid
156 **
157

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button