OLD | NEW |
1 /* | 1 /* |
2 ** 2008 June 13 | 2 ** 2008 June 13 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
11 ************************************************************************* | 11 ************************************************************************* |
12 ** | 12 ** |
13 ** This file contains definitions of global variables and contants. | 13 ** This file contains definitions of global variables and constants. |
14 */ | 14 */ |
15 #include "sqliteInt.h" | 15 #include "sqliteInt.h" |
16 | 16 |
17 /* An array to map all upper-case characters into their corresponding | 17 /* An array to map all upper-case characters into their corresponding |
18 ** lower-case character. | 18 ** lower-case character. |
19 ** | 19 ** |
20 ** SQLite only considers US-ASCII (or EBCDIC) characters. We do not | 20 ** SQLite only considers US-ASCII (or EBCDIC) characters. We do not |
21 ** handle case conversions for the UTF character set since the tables | 21 ** handle case conversions for the UTF character set since the tables |
22 ** involved are nearly as big or bigger than SQLite itself. | 22 ** involved are nearly as big or bigger than SQLite itself. |
23 */ | 23 */ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* c8..cf ........ */ | 122 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* c8..cf ........ */ |
123 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* d0..d7 ........ */ | 123 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* d0..d7 ........ */ |
124 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* d8..df ........ */ | 124 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* d8..df ........ */ |
125 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* e0..e7 ........ */ | 125 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* e0..e7 ........ */ |
126 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* e8..ef ........ */ | 126 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* e8..ef ........ */ |
127 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* f0..f7 ........ */ | 127 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, /* f0..f7 ........ */ |
128 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 /* f8..ff ........ */ | 128 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 /* f8..ff ........ */ |
129 }; | 129 }; |
130 #endif | 130 #endif |
131 | 131 |
| 132 /* EVIDENCE-OF: R-02982-34736 In order to maintain full backwards |
| 133 ** compatibility for legacy applications, the URI filename capability is |
| 134 ** disabled by default. |
| 135 ** |
| 136 ** EVIDENCE-OF: R-38799-08373 URI filenames can be enabled or disabled |
| 137 ** using the SQLITE_USE_URI=1 or SQLITE_USE_URI=0 compile-time options. |
| 138 */ |
| 139 #ifndef SQLITE_USE_URI |
| 140 # define SQLITE_USE_URI 0 |
| 141 #endif |
132 | 142 |
| 143 #ifndef SQLITE_ALLOW_COVERING_INDEX_SCAN |
| 144 # define SQLITE_ALLOW_COVERING_INDEX_SCAN 1 |
| 145 #endif |
133 | 146 |
134 /* | 147 /* |
135 ** The following singleton contains the global configuration for | 148 ** The following singleton contains the global configuration for |
136 ** the SQLite library. | 149 ** the SQLite library. |
137 */ | 150 */ |
138 SQLITE_WSD struct Sqlite3Config sqlite3Config = { | 151 SQLITE_WSD struct Sqlite3Config sqlite3Config = { |
139 SQLITE_DEFAULT_MEMSTATUS, /* bMemstat */ | 152 SQLITE_DEFAULT_MEMSTATUS, /* bMemstat */ |
140 1, /* bCoreMutex */ | 153 1, /* bCoreMutex */ |
141 SQLITE_THREADSAFE==1, /* bFullMutex */ | 154 SQLITE_THREADSAFE==1, /* bFullMutex */ |
| 155 SQLITE_USE_URI, /* bOpenUri */ |
| 156 SQLITE_ALLOW_COVERING_INDEX_SCAN, /* bUseCis */ |
142 0x7ffffffe, /* mxStrlen */ | 157 0x7ffffffe, /* mxStrlen */ |
143 100, /* szLookaside */ | 158 0, /* neverCorrupt */ |
| 159 128, /* szLookaside */ |
144 500, /* nLookaside */ | 160 500, /* nLookaside */ |
145 {0,0,0,0,0,0,0,0}, /* m */ | 161 {0,0,0,0,0,0,0,0}, /* m */ |
146 {0,0,0,0,0,0,0,0,0}, /* mutex */ | 162 {0,0,0,0,0,0,0,0,0}, /* mutex */ |
147 {0,0,0,0,0,0,0,0,0,0,0}, /* pcache */ | 163 {0,0,0,0,0,0,0,0,0,0,0,0,0},/* pcache2 */ |
148 (void*)0, /* pHeap */ | 164 (void*)0, /* pHeap */ |
149 0, /* nHeap */ | 165 0, /* nHeap */ |
150 0, 0, /* mnHeap, mxHeap */ | 166 0, 0, /* mnHeap, mxHeap */ |
| 167 SQLITE_DEFAULT_MMAP_SIZE, /* szMmap */ |
| 168 SQLITE_MAX_MMAP_SIZE, /* mxMmap */ |
151 (void*)0, /* pScratch */ | 169 (void*)0, /* pScratch */ |
152 0, /* szScratch */ | 170 0, /* szScratch */ |
153 0, /* nScratch */ | 171 0, /* nScratch */ |
154 (void*)0, /* pPage */ | 172 (void*)0, /* pPage */ |
155 0, /* szPage */ | 173 0, /* szPage */ |
156 0, /* nPage */ | 174 0, /* nPage */ |
157 0, /* mxParserStack */ | 175 0, /* mxParserStack */ |
158 0, /* sharedCacheEnabled */ | 176 0, /* sharedCacheEnabled */ |
159 /* All the rest should always be initialized to zero */ | 177 /* All the rest should always be initialized to zero */ |
160 0, /* isInit */ | 178 0, /* isInit */ |
161 0, /* inProgress */ | 179 0, /* inProgress */ |
162 0, /* isMutexInit */ | 180 0, /* isMutexInit */ |
163 0, /* isMallocInit */ | 181 0, /* isMallocInit */ |
164 0, /* isPCacheInit */ | 182 0, /* isPCacheInit */ |
| 183 0, /* nRefInitMutex */ |
165 0, /* pInitMutex */ | 184 0, /* pInitMutex */ |
166 0, /* nRefInitMutex */ | |
167 0, /* xLog */ | 185 0, /* xLog */ |
168 0, /* pLogArg */ | 186 0, /* pLogArg */ |
| 187 #ifdef SQLITE_ENABLE_SQLLOG |
| 188 0, /* xSqllog */ |
| 189 0, /* pSqllogArg */ |
| 190 #endif |
| 191 #ifdef SQLITE_VDBE_COVERAGE |
| 192 0, /* xVdbeBranch */ |
| 193 0, /* pVbeBranchArg */ |
| 194 #endif |
| 195 #ifndef SQLITE_OMIT_BUILTIN_TEST |
| 196 0, /* xTestCallback */ |
| 197 #endif |
| 198 0 /* bLocaltimeFault */ |
169 }; | 199 }; |
170 | 200 |
171 | |
172 /* | 201 /* |
173 ** Hash table for global functions - functions common to all | 202 ** Hash table for global functions - functions common to all |
174 ** database connections. After initialization, this table is | 203 ** database connections. After initialization, this table is |
175 ** read-only. | 204 ** read-only. |
176 */ | 205 */ |
177 SQLITE_WSD FuncDefHash sqlite3GlobalFunctions; | 206 SQLITE_WSD FuncDefHash sqlite3GlobalFunctions; |
178 | 207 |
179 /* | 208 /* |
180 ** Constant tokens for values 0 and 1. | 209 ** Constant tokens for values 0 and 1. |
181 */ | 210 */ |
(...skipping 26 matching lines...) Expand all Loading... |
208 #endif | 237 #endif |
209 | 238 |
210 #include "opcodes.h" | 239 #include "opcodes.h" |
211 /* | 240 /* |
212 ** Properties of opcodes. The OPFLG_INITIALIZER macro is | 241 ** Properties of opcodes. The OPFLG_INITIALIZER macro is |
213 ** created by mkopcodeh.awk during compilation. Data is obtained | 242 ** created by mkopcodeh.awk during compilation. Data is obtained |
214 ** from the comments following the "case OP_xxxx:" statements in | 243 ** from the comments following the "case OP_xxxx:" statements in |
215 ** the vdbe.c file. | 244 ** the vdbe.c file. |
216 */ | 245 */ |
217 const unsigned char sqlite3OpcodeProperty[] = OPFLG_INITIALIZER; | 246 const unsigned char sqlite3OpcodeProperty[] = OPFLG_INITIALIZER; |
OLD | NEW |