]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Avoid depending on HAVE_STDINT_H and SQLITE_PTRSIZE and other things in non-amalgamat...
authordan <Dan Kennedy>
Thu, 14 Aug 2025 19:36:59 +0000 (19:36 +0000)
committerdan <Dan Kennedy>
Thu, 14 Aug 2025 19:36:59 +0000 (19:36 +0000)
FossilOrigin-Name: 309fdd496673bf58984fb16aef3d4cc2ad8c9f6dad7687509f4d708fed5ba41b

ext/fts5/fts5Int.h
manifest
manifest.uuid

index dbab6546ce5883c8fd6cea06cebf7f2c4183f977..ff65039a5b5ffc18a77a12f4880acf4d3e2a383d 100644 (file)
@@ -60,21 +60,14 @@ typedef sqlite3_uint64 u64;
 # define LARGEST_INT64  (0xffffffff|(((i64)0x7fffffff)<<32))
 # define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
 
-/* The uptr type is an unsigned integer large enough to hold a pointer
+/*
+** This macro is used in a single assert() within fts5 to check that an
+** allocation is aligned to an 8-byte boundary. But it is a complicated
+** macro to get right for multiple platforms without generating warnings.
+** So instead of reproducing the entire definition from sqliteInt.h, we
+** just do without this assert() for the rare non-amalgamation builds.
 */
-#if defined(HAVE_STDINT_H)
-  typedef uintptr_t uptr;
-#elif SQLITE_PTRSIZE==4
-  typedef u32 uptr;
-#else
-  typedef u64 uptr;
-#endif
-
-#ifdef SQLITE_4_BYTE_ALIGNED_MALLOC
-# define EIGHT_BYTE_ALIGNMENT(X)   ((((uptr)(X) - (uptr)0)&3)==0)
-#else
-# define EIGHT_BYTE_ALIGNMENT(X)   ((((uptr)(X) - (uptr)0)&7)==0)
-#endif
+#define EIGHT_BYTE_ALIGNMENT(x) 1
 
 /*
 ** Macros needed to provide flexible arrays in a portable way
index 1f635bd8990c5d8c30b30ed060c969bab04d4e84..5ac71781df4594afbe1fced0a0f465f5046b090a 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Minor\sinternal\scleanups\sin\sthe\sconfigure\sscript.\sNo\sbehavioral\schanges.
-D 2025-08-13T19:59:37.600
+C Avoid\sdepending\son\sHAVE_STDINT_H\sand\sSQLITE_PTRSIZE\sand\sother\sthings\sin\snon-amalgamation\sbuilds\sof\sfts5.
+D 2025-08-14T19:36:59.997
 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
@@ -107,7 +107,7 @@ F ext/fts3/unicode/mkunicode.tcl cbf5f7b5c8ce8014bad731f246f2e520eece908465de477
 F ext/fts3/unicode/parseunicode.tcl a981bd6466d12dd17967515801c3ff23f74a281be1a03cf1e6f52a6959fc77eb
 F ext/fts5/extract_api_docs.tcl 009cf59c77afa86d137b0cca3e3b1a5efbe2264faa2df233f9a7aa8563926d15
 F ext/fts5/fts5.h ff5d3cc88b29e41612bfb29eb723e29e38973de62ca75ba3e8f94ccb67f5b5f2
-F ext/fts5/fts5Int.h cc1e6ed28e1fbde71e4427ba6d15b0c73a4f8f119adeb4f7bcc97e3336fbbeac
+F ext/fts5/fts5Int.h 97f373ecedf024fa7bf23989c3e529132225c169e440fe1f48e9b28dfed05ddc
 F ext/fts5/fts5_aux.c da4a7a9a11ec15c6df0699d908915a209bcde48f0b04101461316b59f71abffb
 F ext/fts5/fts5_buffer.c f1e6d0324d7c55329d340673befc26681a372a4d36086caa8d1ec7d7c53066c7
 F ext/fts5/fts5_config.c e7d8dd062b44a66cd77e5a0f74f23a2354cd1f3f8575afb967b2773c3384f7f8
@@ -2169,8 +2169,8 @@ F tool/version-info.c 3b36468a90faf1bbd59c65fd0eb66522d9f941eedd364fabccd7227350
 F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7
 F tool/warnings.sh 1ad0169b022b280bcaaf94a7fa231591be96b514230ab5c98fbf15cd7df842dd
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P e3bd1feccaee8ff2f68b7b863769dd739e8a434fd32fed73deeeec885628311c
-R 2c28c08a4556fb45eadedd8aaf45163d
-U stephan
-Z 39cd47253f80814b5b6a2012d224171f
+P c42269e5ce3688fccee16cf35e1101f36afc3ccc19bef57b177d46c84db2435a
+R bb354e50187c94f5a16b3def751bd582
+U dan
+Z c951f603dce3b316aeb76e69c04be775
 # Remove this line to create a well-formed Fossil manifest.
index c13671911f97646a1fcd7616b5804e829d570519..0ed6acf06c7cfb0194783a8a61ac8197b76c0e37 100644 (file)
@@ -1 +1 @@
-c42269e5ce3688fccee16cf35e1101f36afc3ccc19bef57b177d46c84db2435a
+309fdd496673bf58984fb16aef3d4cc2ad8c9f6dad7687509f4d708fed5ba41b