Update includes to use .inc extension

These dependencies can't be individually compiled as .h files
This commit is contained in:
Paul Kulchenko 2022-11-23 22:56:01 -08:00
parent f4e6b93bd2
commit 87852b2214
31 changed files with 26 additions and 26 deletions

View file

@ -19,7 +19,7 @@
#ifndef SQLITE_OMIT_FLOATING_POINT #ifndef SQLITE_OMIT_FLOATING_POINT
#include "libc/math.h" #include "libc/math.h"
#endif #endif
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* clang-format off */ /* clang-format off */
/* /*

View file

@ -39,7 +39,7 @@
** hwtime.h contains inline assembler code for implementing ** hwtime.h contains inline assembler code for implementing
** high-performance timing routines. ** high-performance timing routines.
*/ */
#include "third_party/sqlite3/hwtime.h" #include "third_party/sqlite3/hwtime.inc"
static sqlite_uint64 g_start; static sqlite_uint64 g_start;
static sqlite_uint64 g_elapsed; static sqlite_uint64 g_elapsed;

View file

@ -28,7 +28,7 @@
** lexicographical order to facility a binary search of the pragma name. ** lexicographical order to facility a binary search of the pragma name.
** Do not edit pragma.h directly. Edit and rerun the script in at ** Do not edit pragma.h directly. Edit and rerun the script in at
** ../tool/mkpragmatab.tcl. */ ** ../tool/mkpragmatab.tcl. */
#include "third_party/sqlite3/pragma.h" #include "third_party/sqlite3/pragma.inc"
/* /*
** Interpret the given string as a safety level. Return 0 for OFF, ** Interpret the given string as a safety level. Return 0 for OFF,

View file

@ -11,7 +11,7 @@
#ifndef SQLITE_AMALGAMATION #ifndef SQLITE_AMALGAMATION
# include "third_party/sqlite3/sqliteInt.h" # include "third_party/sqlite3/sqliteInt.h"
# include "third_party/sqlite3/vdbeInt.h" # include "third_party/sqlite3/vdbeInt.inc"
#endif #endif
typedef struct SessionTable SessionTable; typedef struct SessionTable SessionTable;

View file

@ -1269,12 +1269,12 @@ typedef int VList;
** "BusyHandler" typedefs. vdbe.h also requires a few of the opaque ** "BusyHandler" typedefs. vdbe.h also requires a few of the opaque
** pointer types (i.e. FuncDef) defined above. ** pointer types (i.e. FuncDef) defined above.
*/ */
#include "third_party/sqlite3/os.h" #include "third_party/sqlite3/os.inc"
#include "third_party/sqlite3/pager.h" #include "third_party/sqlite3/pager.inc"
#include "third_party/sqlite3/btree.h" #include "third_party/sqlite3/btree.inc"
#include "third_party/sqlite3/vdbe.h" #include "third_party/sqlite3/vdbe.inc"
#include "third_party/sqlite3/pcache.h" #include "third_party/sqlite3/pcache.inc"
#include "third_party/sqlite3/mutex.h" #include "third_party/sqlite3/mutex.inc"
/* The SQLITE_EXTRA_DURABLE compile-time option used to set the default /* The SQLITE_EXTRA_DURABLE compile-time option used to set the default
** synchronous setting to EXTRA. It is no longer supported. ** synchronous setting to EXTRA. It is no longer supported.

View file

@ -14,7 +14,7 @@
** functionality. ** functionality.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* /*
** Variables in which to record status information. ** Variables in which to record status information.

View file

@ -145,7 +145,7 @@ const unsigned char ebcdicToAscii[] = {
** named keywordhash.h and then included into this source file by ** named keywordhash.h and then included into this source file by
** the #include below. ** the #include below.
*/ */
#include "third_party/sqlite3/keywordhash.h" #include "third_party/sqlite3/keywordhash.inc"
/* /*
** If X is a character that can be used in an identifier then ** If X is a character that can be used in an identifier then

View file

@ -35,7 +35,7 @@
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "libc/assert.h" #include "libc/assert.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
#if !defined(SQLITE_AMALGAMATION) && SQLITE_BYTEORDER==0 #if !defined(SQLITE_AMALGAMATION) && SQLITE_BYTEORDER==0
/* /*

View file

@ -15,7 +15,7 @@
** SQLITE_OMIT_VACUUM macro. ** SQLITE_OMIT_VACUUM macro.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
#if !defined(SQLITE_OMIT_VACUUM) && !defined(SQLITE_OMIT_ATTACH) #if !defined(SQLITE_OMIT_VACUUM) && !defined(SQLITE_OMIT_ATTACH)

View file

@ -19,7 +19,7 @@
** commenting and indentation practices when changing or adding code. ** commenting and indentation practices when changing or adding code.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* /*
** Invoke this macro on memory cells just prior to changing the ** Invoke this macro on memory cells just prior to changing the
@ -624,7 +624,7 @@ void sqlite3VdbeRegisterDump(Vdbe *v){
** hwtime.h contains inline assembler code for implementing ** hwtime.h contains inline assembler code for implementing
** high-performance timing routines. ** high-performance timing routines.
*/ */
#include "third_party/sqlite3/hwtime.h" #include "third_party/sqlite3/hwtime.inc"
#endif #endif

View file

@ -14,7 +14,7 @@
** VDBE. ** VDBE.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
#ifndef SQLITE_OMIT_DEPRECATED #ifndef SQLITE_OMIT_DEPRECATED
/* /*

View file

@ -13,7 +13,7 @@
** a VDBE (or an "sqlite3_stmt" as it is known to the outside world.) ** a VDBE (or an "sqlite3_stmt" as it is known to the outside world.)
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* Forward references */ /* Forward references */
static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef); static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef);

View file

@ -14,7 +14,7 @@
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
#ifndef SQLITE_OMIT_INCRBLOB #ifndef SQLITE_OMIT_INCRBLOB

View file

@ -16,7 +16,7 @@
** name sqlite_value ** name sqlite_value
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* True if X is a power of two. 0 is considered a power of two here. /* True if X is a power of two. 0 is considered a power of two here.
** In other words, return true if X has at most one bit set. ** In other words, return true if X has at most one bit set.

View file

@ -136,7 +136,7 @@
** the main thread to read from. ** the main thread to read from.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* /*
** If SQLITE_DEBUG_SORTER_THREADS is defined, this module outputs various ** If SQLITE_DEBUG_SORTER_THREADS is defined, this module outputs various

View file

@ -16,7 +16,7 @@
** The Vdbe parse-tree explainer is also found here. ** The Vdbe parse-tree explainer is also found here.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
#ifndef SQLITE_OMIT_TRACE #ifndef SQLITE_OMIT_TRACE

View file

@ -15,7 +15,7 @@
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#if defined(SQLITE_ENABLE_BYTECODE_VTAB) && !defined(SQLITE_OMIT_VIRTUALTABLE) #if defined(SQLITE_ENABLE_BYTECODE_VTAB) && !defined(SQLITE_OMIT_VIRTUALTABLE)
#include "third_party/sqlite3/vdbeInt.h" #include "third_party/sqlite3/vdbeInt.inc"
/* An instance of the bytecode() table-valued function. /* An instance of the bytecode() table-valued function.
*/ */

View file

@ -17,7 +17,7 @@
** indices, you might also think of this module as the "query optimizer". ** indices, you might also think of this module as the "query optimizer".
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/whereInt.h" #include "third_party/sqlite3/whereInt.inc"
#if __GNUC__ >= 11 #if __GNUC__ >= 11
#pragma GCC diagnostic ignored "-Wmisleading-indentation" #pragma GCC diagnostic ignored "-Wmisleading-indentation"

View file

@ -18,7 +18,7 @@
** file retains the code that does query planning and analysis. ** file retains the code that does query planning and analysis.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/whereInt.h" #include "third_party/sqlite3/whereInt.inc"
#ifndef SQLITE_OMIT_EXPLAIN #ifndef SQLITE_OMIT_EXPLAIN

View file

@ -17,7 +17,7 @@
** analyzing Expr objects in the WHERE clause. ** analyzing Expr objects in the WHERE clause.
*/ */
#include "third_party/sqlite3/sqliteInt.h" #include "third_party/sqlite3/sqliteInt.h"
#include "third_party/sqlite3/whereInt.h" #include "third_party/sqlite3/whereInt.inc"
/* Forward declarations */ /* Forward declarations */
static void exprAnalyze(SrcList*, WhereClause*, int); static void exprAnalyze(SrcList*, WhereClause*, int);