diff options
author | danielk1977 <danielk1977@noemail.net> | 2005-03-29 03:10:59 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2005-03-29 03:10:59 +0000 |
commit | 53c0f7480b0722ee2a1580fb834a56b44a8aec3b (patch) | |
tree | 6eb349401f88b758feab772fbaa4af70372dd47d /src/sqliteInt.h | |
parent | 50f059b8713dda40c7e5b29cb93d8019ffd5cec2 (diff) | |
download | sqlite-53c0f7480b0722ee2a1580fb834a56b44a8aec3b.tar.gz sqlite-53c0f7480b0722ee2a1580fb834a56b44a8aec3b.zip |
Add the SQLITE_OMIT_TEMPDB compile time macro. (CVS 2427)
FossilOrigin-Name: c41d55443c2dd532147962b87f542fb7d37075fd
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 3934a6b63..2cd0e9595 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.374 2005/03/21 04:04:03 danielk1977 Exp $ +** @(#) $Id: sqliteInt.h,v 1.375 2005/03/29 03:10:59 danielk1977 Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -68,6 +68,17 @@ #endif /* +** OMIT_TEMPDB is set to 1 if SQLITE_OMIT_TEMPDB is defined, or 0 +** afterward. Having this macro allows us to cause the C compiler +** to omit code used by TEMP tables without messy #ifndef statements. +*/ +#ifdef SQLITE_OMIT_TEMPDB +#define OMIT_TEMPDB 1 +#else +#define OMIT_TEMPDB 0 +#endif + +/* ** If the following macro is set to 1, then NULL values are considered ** distinct for the SELECT DISTINCT statement and for UNION or EXCEPT ** compound queries. No other SQL database engine (among those tested) @@ -292,7 +303,7 @@ extern int sqlite3_iMallocReset; /* Set iMallocFail to this when it reaches 0 */ /* ** The name of the schema table. */ -#define SCHEMA_TABLE(x) (x==1?TEMP_MASTER_NAME:MASTER_NAME) +#define SCHEMA_TABLE(x) ((!OMIT_TEMPDB)&&(x==1)?TEMP_MASTER_NAME:MASTER_NAME) /* ** A convenience macro that returns the number of elements in |