update version
[sqlcipher.git] / src / ctime.c
blob8b72542d23a5af4c3e47b706828e2601ff504540
1 /*
2 ** 2010 February 23
3 **
4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing:
6 **
7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give.
11 *************************************************************************
13 ** This file implements routines used to report what compile-time options
14 ** SQLite was built with.
17 #ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS /* IMP: R-16824-07538 */
20 ** Include the configuration header output by 'configure' if we're using the
21 ** autoconf-based build
23 #if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
24 #include "config.h"
25 #define SQLITECONFIG_H 1
26 #endif
28 /* These macros are provided to "stringify" the value of the define
29 ** for those options in which the value is meaningful. */
30 #define CTIMEOPT_VAL_(opt) #opt
31 #define CTIMEOPT_VAL(opt) CTIMEOPT_VAL_(opt)
33 /* Like CTIMEOPT_VAL, but especially for SQLITE_DEFAULT_LOOKASIDE. This
34 ** option requires a separate macro because legal values contain a single
35 ** comma. e.g. (-DSQLITE_DEFAULT_LOOKASIDE="100,100") */
36 #define CTIMEOPT_VAL2_(opt1,opt2) #opt1 "," #opt2
37 #define CTIMEOPT_VAL2(opt) CTIMEOPT_VAL2_(opt)
40 ** An array of names of all compile-time options. This array should
41 ** be sorted A-Z.
43 ** This array looks large, but in a typical installation actually uses
44 ** only a handful of compile-time options, so most times this array is usually
45 ** rather short and uses little memory space.
47 static const char * const sqlite3azCompileOpt[] = {
49 /*
50 ** BEGIN CODE GENERATED BY tool/mkctime.tcl
52 #if SQLITE_32BIT_ROWID
53 "32BIT_ROWID",
54 #endif
55 #if SQLITE_4_BYTE_ALIGNED_MALLOC
56 "4_BYTE_ALIGNED_MALLOC",
57 #endif
58 #if SQLITE_64BIT_STATS
59 "64BIT_STATS",
60 #endif
61 #ifdef SQLITE_ALLOW_COVERING_INDEX_SCAN
62 # if SQLITE_ALLOW_COVERING_INDEX_SCAN != 1
63 "ALLOW_COVERING_INDEX_SCAN=" CTIMEOPT_VAL(SQLITE_ALLOW_COVERING_INDEX_SCAN),
64 # endif
65 #endif
66 #if SQLITE_ALLOW_URI_AUTHORITY
67 "ALLOW_URI_AUTHORITY",
68 #endif
69 #ifdef SQLITE_BITMASK_TYPE
70 "BITMASK_TYPE=" CTIMEOPT_VAL(SQLITE_BITMASK_TYPE),
71 #endif
72 #if SQLITE_BUG_COMPATIBLE_20160819
73 "BUG_COMPATIBLE_20160819",
74 #endif
75 #if SQLITE_CASE_SENSITIVE_LIKE
76 "CASE_SENSITIVE_LIKE",
77 #endif
78 #if SQLITE_CHECK_PAGES
79 "CHECK_PAGES",
80 #endif
81 #if defined(__clang__) && defined(__clang_major__)
82 "COMPILER=clang-" CTIMEOPT_VAL(__clang_major__) "."
83 CTIMEOPT_VAL(__clang_minor__) "."
84 CTIMEOPT_VAL(__clang_patchlevel__),
85 #elif defined(_MSC_VER)
86 "COMPILER=msvc-" CTIMEOPT_VAL(_MSC_VER),
87 #elif defined(__GNUC__) && defined(__VERSION__)
88 "COMPILER=gcc-" __VERSION__,
89 #endif
90 #if SQLITE_COVERAGE_TEST
91 "COVERAGE_TEST",
92 #endif
93 #if SQLITE_DEBUG
94 "DEBUG",
95 #endif
96 #if SQLITE_DEFAULT_AUTOMATIC_INDEX
97 "DEFAULT_AUTOMATIC_INDEX",
98 #endif
99 #if SQLITE_DEFAULT_AUTOVACUUM
100 "DEFAULT_AUTOVACUUM",
101 #endif
102 #ifdef SQLITE_DEFAULT_CACHE_SIZE
103 "DEFAULT_CACHE_SIZE=" CTIMEOPT_VAL(SQLITE_DEFAULT_CACHE_SIZE),
104 #endif
105 #if SQLITE_DEFAULT_CKPTFULLFSYNC
106 "DEFAULT_CKPTFULLFSYNC",
107 #endif
108 #ifdef SQLITE_DEFAULT_FILE_FORMAT
109 "DEFAULT_FILE_FORMAT=" CTIMEOPT_VAL(SQLITE_DEFAULT_FILE_FORMAT),
110 #endif
111 #ifdef SQLITE_DEFAULT_FILE_PERMISSIONS
112 "DEFAULT_FILE_PERMISSIONS=" CTIMEOPT_VAL(SQLITE_DEFAULT_FILE_PERMISSIONS),
113 #endif
114 #if SQLITE_DEFAULT_FOREIGN_KEYS
115 "DEFAULT_FOREIGN_KEYS",
116 #endif
117 #ifdef SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT
118 "DEFAULT_JOURNAL_SIZE_LIMIT=" CTIMEOPT_VAL(SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT),
119 #endif
120 #ifdef SQLITE_DEFAULT_LOCKING_MODE
121 "DEFAULT_LOCKING_MODE=" CTIMEOPT_VAL(SQLITE_DEFAULT_LOCKING_MODE),
122 #endif
123 #ifdef SQLITE_DEFAULT_LOOKASIDE
124 "DEFAULT_LOOKASIDE=" CTIMEOPT_VAL2(SQLITE_DEFAULT_LOOKASIDE),
125 #endif
126 #ifdef SQLITE_DEFAULT_MEMSTATUS
127 # if SQLITE_DEFAULT_MEMSTATUS != 1
128 "DEFAULT_MEMSTATUS=" CTIMEOPT_VAL(SQLITE_DEFAULT_MEMSTATUS),
129 # endif
130 #endif
131 #ifdef SQLITE_DEFAULT_MMAP_SIZE
132 "DEFAULT_MMAP_SIZE=" CTIMEOPT_VAL(SQLITE_DEFAULT_MMAP_SIZE),
133 #endif
134 #ifdef SQLITE_DEFAULT_PAGE_SIZE
135 "DEFAULT_PAGE_SIZE=" CTIMEOPT_VAL(SQLITE_DEFAULT_PAGE_SIZE),
136 #endif
137 #ifdef SQLITE_DEFAULT_PCACHE_INITSZ
138 "DEFAULT_PCACHE_INITSZ=" CTIMEOPT_VAL(SQLITE_DEFAULT_PCACHE_INITSZ),
139 #endif
140 #ifdef SQLITE_DEFAULT_PROXYDIR_PERMISSIONS
141 "DEFAULT_PROXYDIR_PERMISSIONS=" CTIMEOPT_VAL(SQLITE_DEFAULT_PROXYDIR_PERMISSIONS),
142 #endif
143 #if SQLITE_DEFAULT_RECURSIVE_TRIGGERS
144 "DEFAULT_RECURSIVE_TRIGGERS",
145 #endif
146 #ifdef SQLITE_DEFAULT_ROWEST
147 "DEFAULT_ROWEST=" CTIMEOPT_VAL(SQLITE_DEFAULT_ROWEST),
148 #endif
149 #ifdef SQLITE_DEFAULT_SECTOR_SIZE
150 "DEFAULT_SECTOR_SIZE=" CTIMEOPT_VAL(SQLITE_DEFAULT_SECTOR_SIZE),
151 #endif
152 #ifdef SQLITE_DEFAULT_SYNCHRONOUS
153 "DEFAULT_SYNCHRONOUS=" CTIMEOPT_VAL(SQLITE_DEFAULT_SYNCHRONOUS),
154 #endif
155 #ifdef SQLITE_DEFAULT_WAL_AUTOCHECKPOINT
156 "DEFAULT_WAL_AUTOCHECKPOINT=" CTIMEOPT_VAL(SQLITE_DEFAULT_WAL_AUTOCHECKPOINT),
157 #endif
158 #ifdef SQLITE_DEFAULT_WAL_SYNCHRONOUS
159 "DEFAULT_WAL_SYNCHRONOUS=" CTIMEOPT_VAL(SQLITE_DEFAULT_WAL_SYNCHRONOUS),
160 #endif
161 #ifdef SQLITE_DEFAULT_WORKER_THREADS
162 "DEFAULT_WORKER_THREADS=" CTIMEOPT_VAL(SQLITE_DEFAULT_WORKER_THREADS),
163 #endif
164 #if SQLITE_DIRECT_OVERFLOW_READ
165 "DIRECT_OVERFLOW_READ",
166 #endif
167 #if SQLITE_DISABLE_DIRSYNC
168 "DISABLE_DIRSYNC",
169 #endif
170 #if SQLITE_DISABLE_FTS3_UNICODE
171 "DISABLE_FTS3_UNICODE",
172 #endif
173 #if SQLITE_DISABLE_FTS4_DEFERRED
174 "DISABLE_FTS4_DEFERRED",
175 #endif
176 #if SQLITE_DISABLE_INTRINSIC
177 "DISABLE_INTRINSIC",
178 #endif
179 #if SQLITE_DISABLE_LFS
180 "DISABLE_LFS",
181 #endif
182 #if SQLITE_DISABLE_PAGECACHE_OVERFLOW_STATS
183 "DISABLE_PAGECACHE_OVERFLOW_STATS",
184 #endif
185 #if SQLITE_DISABLE_SKIPAHEAD_DISTINCT
186 "DISABLE_SKIPAHEAD_DISTINCT",
187 #endif
188 #ifdef SQLITE_ENABLE_8_3_NAMES
189 "ENABLE_8_3_NAMES=" CTIMEOPT_VAL(SQLITE_ENABLE_8_3_NAMES),
190 #endif
191 #if SQLITE_ENABLE_API_ARMOR
192 "ENABLE_API_ARMOR",
193 #endif
194 #if SQLITE_ENABLE_ATOMIC_WRITE
195 "ENABLE_ATOMIC_WRITE",
196 #endif
197 #if SQLITE_ENABLE_BATCH_ATOMIC_WRITE
198 "ENABLE_BATCH_ATOMIC_WRITE",
199 #endif
200 #if SQLITE_ENABLE_BYTECODE_VTAB
201 "ENABLE_BYTECODE_VTAB",
202 #endif
203 #ifdef SQLITE_ENABLE_CEROD
204 "ENABLE_CEROD=" CTIMEOPT_VAL(SQLITE_ENABLE_CEROD),
205 #endif
206 #if SQLITE_ENABLE_COLUMN_METADATA
207 "ENABLE_COLUMN_METADATA",
208 #endif
209 #if SQLITE_ENABLE_COLUMN_USED_MASK
210 "ENABLE_COLUMN_USED_MASK",
211 #endif
212 #if SQLITE_ENABLE_COSTMULT
213 "ENABLE_COSTMULT",
214 #endif
215 #if SQLITE_ENABLE_CURSOR_HINTS
216 "ENABLE_CURSOR_HINTS",
217 #endif
218 #if SQLITE_ENABLE_DBPAGE_VTAB
219 "ENABLE_DBPAGE_VTAB",
220 #endif
221 #if SQLITE_ENABLE_DBSTAT_VTAB
222 "ENABLE_DBSTAT_VTAB",
223 #endif
224 #if SQLITE_ENABLE_EXPENSIVE_ASSERT
225 "ENABLE_EXPENSIVE_ASSERT",
226 #endif
227 #if SQLITE_ENABLE_EXPLAIN_COMMENTS
228 "ENABLE_EXPLAIN_COMMENTS",
229 #endif
230 #if SQLITE_ENABLE_FTS3
231 "ENABLE_FTS3",
232 #endif
233 #if SQLITE_ENABLE_FTS3_PARENTHESIS
234 "ENABLE_FTS3_PARENTHESIS",
235 #endif
236 #if SQLITE_ENABLE_FTS3_TOKENIZER
237 "ENABLE_FTS3_TOKENIZER",
238 #endif
239 #if SQLITE_ENABLE_FTS4
240 "ENABLE_FTS4",
241 #endif
242 #if SQLITE_ENABLE_FTS5
243 "ENABLE_FTS5",
244 #endif
245 #if SQLITE_ENABLE_GEOPOLY
246 "ENABLE_GEOPOLY",
247 #endif
248 #if SQLITE_ENABLE_HIDDEN_COLUMNS
249 "ENABLE_HIDDEN_COLUMNS",
250 #endif
251 #if SQLITE_ENABLE_ICU
252 "ENABLE_ICU",
253 #endif
254 #if SQLITE_ENABLE_IOTRACE
255 "ENABLE_IOTRACE",
256 #endif
257 #if SQLITE_ENABLE_JSON1
258 "ENABLE_JSON1",
259 #endif
260 #if SQLITE_ENABLE_LOAD_EXTENSION
261 "ENABLE_LOAD_EXTENSION",
262 #endif
263 #ifdef SQLITE_ENABLE_LOCKING_STYLE
264 "ENABLE_LOCKING_STYLE=" CTIMEOPT_VAL(SQLITE_ENABLE_LOCKING_STYLE),
265 #endif
266 #if SQLITE_ENABLE_MATH_FUNCTIONS
267 "ENABLE_MATH_FUNCTIONS",
268 #endif
269 #if SQLITE_ENABLE_MEMORY_MANAGEMENT
270 "ENABLE_MEMORY_MANAGEMENT",
271 #endif
272 #if SQLITE_ENABLE_MEMSYS3
273 "ENABLE_MEMSYS3",
274 #endif
275 #if SQLITE_ENABLE_MEMSYS5
276 "ENABLE_MEMSYS5",
277 #endif
278 #if SQLITE_ENABLE_MULTIPLEX
279 "ENABLE_MULTIPLEX",
280 #endif
281 #if SQLITE_ENABLE_NORMALIZE
282 "ENABLE_NORMALIZE",
283 #endif
284 #if SQLITE_ENABLE_NULL_TRIM
285 "ENABLE_NULL_TRIM",
286 #endif
287 #if SQLITE_ENABLE_OFFSET_SQL_FUNC
288 "ENABLE_OFFSET_SQL_FUNC",
289 #endif
290 #if SQLITE_ENABLE_OVERSIZE_CELL_CHECK
291 "ENABLE_OVERSIZE_CELL_CHECK",
292 #endif
293 #if SQLITE_ENABLE_PREUPDATE_HOOK
294 "ENABLE_PREUPDATE_HOOK",
295 #endif
296 #if SQLITE_ENABLE_QPSG
297 "ENABLE_QPSG",
298 #endif
299 #if SQLITE_ENABLE_RBU
300 "ENABLE_RBU",
301 #endif
302 #if SQLITE_ENABLE_RTREE
303 "ENABLE_RTREE",
304 #endif
305 #if SQLITE_ENABLE_SELECTTRACE
306 "ENABLE_SELECTTRACE",
307 #endif
308 #if SQLITE_ENABLE_SESSION
309 "ENABLE_SESSION",
310 #endif
311 #if SQLITE_ENABLE_SNAPSHOT
312 "ENABLE_SNAPSHOT",
313 #endif
314 #if SQLITE_ENABLE_SORTER_REFERENCES
315 "ENABLE_SORTER_REFERENCES",
316 #endif
317 #if SQLITE_ENABLE_SQLLOG
318 "ENABLE_SQLLOG",
319 #endif
320 #if SQLITE_ENABLE_STAT4
321 "ENABLE_STAT4",
322 #endif
323 #if SQLITE_ENABLE_STMTVTAB
324 "ENABLE_STMTVTAB",
325 #endif
326 #if SQLITE_ENABLE_STMT_SCANSTATUS
327 "ENABLE_STMT_SCANSTATUS",
328 #endif
329 #if SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
330 "ENABLE_UNKNOWN_SQL_FUNCTION",
331 #endif
332 #if SQLITE_ENABLE_UNLOCK_NOTIFY
333 "ENABLE_UNLOCK_NOTIFY",
334 #endif
335 #if SQLITE_ENABLE_UPDATE_DELETE_LIMIT
336 "ENABLE_UPDATE_DELETE_LIMIT",
337 #endif
338 #if SQLITE_ENABLE_URI_00_ERROR
339 "ENABLE_URI_00_ERROR",
340 #endif
341 #if SQLITE_ENABLE_VFSTRACE
342 "ENABLE_VFSTRACE",
343 #endif
344 #if SQLITE_ENABLE_WHERETRACE
345 "ENABLE_WHERETRACE",
346 #endif
347 #if SQLITE_ENABLE_ZIPVFS
348 "ENABLE_ZIPVFS",
349 #endif
350 #if SQLITE_EXPLAIN_ESTIMATED_ROWS
351 "EXPLAIN_ESTIMATED_ROWS",
352 #endif
353 #if SQLITE_EXTRA_IFNULLROW
354 "EXTRA_IFNULLROW",
355 #endif
356 #ifdef SQLITE_EXTRA_INIT
357 "EXTRA_INIT=" CTIMEOPT_VAL(SQLITE_EXTRA_INIT),
358 #endif
359 #ifdef SQLITE_EXTRA_SHUTDOWN
360 "EXTRA_SHUTDOWN=" CTIMEOPT_VAL(SQLITE_EXTRA_SHUTDOWN),
361 #endif
362 #ifdef SQLITE_FTS3_MAX_EXPR_DEPTH
363 "FTS3_MAX_EXPR_DEPTH=" CTIMEOPT_VAL(SQLITE_FTS3_MAX_EXPR_DEPTH),
364 #endif
365 #if SQLITE_FTS5_ENABLE_TEST_MI
366 "FTS5_ENABLE_TEST_MI",
367 #endif
368 #if SQLITE_FTS5_NO_WITHOUT_ROWID
369 "FTS5_NO_WITHOUT_ROWID",
370 #endif
371 /* BEGIN SQLCIPHER */
372 #if SQLITE_HAS_CODEC
373 "HAS_CODEC",
374 #endif
375 /* END SQLCIPHER */
376 #if HAVE_ISNAN || SQLITE_HAVE_ISNAN
377 "HAVE_ISNAN",
378 #endif
379 #ifdef SQLITE_HOMEGROWN_RECURSIVE_MUTEX
380 # if SQLITE_HOMEGROWN_RECURSIVE_MUTEX != 1
381 "HOMEGROWN_RECURSIVE_MUTEX=" CTIMEOPT_VAL(SQLITE_HOMEGROWN_RECURSIVE_MUTEX),
382 # endif
383 #endif
384 #if SQLITE_IGNORE_AFP_LOCK_ERRORS
385 "IGNORE_AFP_LOCK_ERRORS",
386 #endif
387 #if SQLITE_IGNORE_FLOCK_LOCK_ERRORS
388 "IGNORE_FLOCK_LOCK_ERRORS",
389 #endif
390 #if SQLITE_INLINE_MEMCPY
391 "INLINE_MEMCPY",
392 #endif
393 #if SQLITE_INT64_TYPE
394 "INT64_TYPE",
395 #endif
396 #ifdef SQLITE_INTEGRITY_CHECK_ERROR_MAX
397 "INTEGRITY_CHECK_ERROR_MAX=" CTIMEOPT_VAL(SQLITE_INTEGRITY_CHECK_ERROR_MAX),
398 #endif
399 #if SQLITE_LIKE_DOESNT_MATCH_BLOBS
400 "LIKE_DOESNT_MATCH_BLOBS",
401 #endif
402 #if SQLITE_LOCK_TRACE
403 "LOCK_TRACE",
404 #endif
405 #if SQLITE_LOG_CACHE_SPILL
406 "LOG_CACHE_SPILL",
407 #endif
408 #ifdef SQLITE_MALLOC_SOFT_LIMIT
409 "MALLOC_SOFT_LIMIT=" CTIMEOPT_VAL(SQLITE_MALLOC_SOFT_LIMIT),
410 #endif
411 #ifdef SQLITE_MAX_ATTACHED
412 "MAX_ATTACHED=" CTIMEOPT_VAL(SQLITE_MAX_ATTACHED),
413 #endif
414 #ifdef SQLITE_MAX_COLUMN
415 "MAX_COLUMN=" CTIMEOPT_VAL(SQLITE_MAX_COLUMN),
416 #endif
417 #ifdef SQLITE_MAX_COMPOUND_SELECT
418 "MAX_COMPOUND_SELECT=" CTIMEOPT_VAL(SQLITE_MAX_COMPOUND_SELECT),
419 #endif
420 #ifdef SQLITE_MAX_DEFAULT_PAGE_SIZE
421 "MAX_DEFAULT_PAGE_SIZE=" CTIMEOPT_VAL(SQLITE_MAX_DEFAULT_PAGE_SIZE),
422 #endif
423 #ifdef SQLITE_MAX_EXPR_DEPTH
424 "MAX_EXPR_DEPTH=" CTIMEOPT_VAL(SQLITE_MAX_EXPR_DEPTH),
425 #endif
426 #ifdef SQLITE_MAX_FUNCTION_ARG
427 "MAX_FUNCTION_ARG=" CTIMEOPT_VAL(SQLITE_MAX_FUNCTION_ARG),
428 #endif
429 #ifdef SQLITE_MAX_LENGTH
430 "MAX_LENGTH=" CTIMEOPT_VAL(SQLITE_MAX_LENGTH),
431 #endif
432 #ifdef SQLITE_MAX_LIKE_PATTERN_LENGTH
433 "MAX_LIKE_PATTERN_LENGTH=" CTIMEOPT_VAL(SQLITE_MAX_LIKE_PATTERN_LENGTH),
434 #endif
435 #ifdef SQLITE_MAX_MEMORY
436 "MAX_MEMORY=" CTIMEOPT_VAL(SQLITE_MAX_MEMORY),
437 #endif
438 #ifdef SQLITE_MAX_MMAP_SIZE
439 "MAX_MMAP_SIZE=" CTIMEOPT_VAL(SQLITE_MAX_MMAP_SIZE),
440 #endif
441 #ifdef SQLITE_MAX_MMAP_SIZE_
442 "MAX_MMAP_SIZE_=" CTIMEOPT_VAL(SQLITE_MAX_MMAP_SIZE_),
443 #endif
444 #ifdef SQLITE_MAX_PAGE_COUNT
445 "MAX_PAGE_COUNT=" CTIMEOPT_VAL(SQLITE_MAX_PAGE_COUNT),
446 #endif
447 #ifdef SQLITE_MAX_PAGE_SIZE
448 "MAX_PAGE_SIZE=" CTIMEOPT_VAL(SQLITE_MAX_PAGE_SIZE),
449 #endif
450 #ifdef SQLITE_MAX_SCHEMA_RETRY
451 "MAX_SCHEMA_RETRY=" CTIMEOPT_VAL(SQLITE_MAX_SCHEMA_RETRY),
452 #endif
453 #ifdef SQLITE_MAX_SQL_LENGTH
454 "MAX_SQL_LENGTH=" CTIMEOPT_VAL(SQLITE_MAX_SQL_LENGTH),
455 #endif
456 #ifdef SQLITE_MAX_TRIGGER_DEPTH
457 "MAX_TRIGGER_DEPTH=" CTIMEOPT_VAL(SQLITE_MAX_TRIGGER_DEPTH),
458 #endif
459 #ifdef SQLITE_MAX_VARIABLE_NUMBER
460 "MAX_VARIABLE_NUMBER=" CTIMEOPT_VAL(SQLITE_MAX_VARIABLE_NUMBER),
461 #endif
462 #ifdef SQLITE_MAX_VDBE_OP
463 "MAX_VDBE_OP=" CTIMEOPT_VAL(SQLITE_MAX_VDBE_OP),
464 #endif
465 #ifdef SQLITE_MAX_WORKER_THREADS
466 "MAX_WORKER_THREADS=" CTIMEOPT_VAL(SQLITE_MAX_WORKER_THREADS),
467 #endif
468 #if SQLITE_MEMDEBUG
469 "MEMDEBUG",
470 #endif
471 #if SQLITE_MIXED_ENDIAN_64BIT_FLOAT
472 "MIXED_ENDIAN_64BIT_FLOAT",
473 #endif
474 #if SQLITE_MMAP_READWRITE
475 "MMAP_READWRITE",
476 #endif
477 #if SQLITE_MUTEX_NOOP
478 "MUTEX_NOOP",
479 #endif
480 #if SQLITE_MUTEX_OMIT
481 "MUTEX_OMIT",
482 #endif
483 #if SQLITE_MUTEX_PTHREADS
484 "MUTEX_PTHREADS",
485 #endif
486 #if SQLITE_MUTEX_W32
487 "MUTEX_W32",
488 #endif
489 #if SQLITE_NEED_ERR_NAME
490 "NEED_ERR_NAME",
491 #endif
492 #if SQLITE_NOINLINE
493 "NOINLINE",
494 #endif
495 #if SQLITE_NO_SYNC
496 "NO_SYNC",
497 #endif
498 #if SQLITE_OMIT_ALTERTABLE
499 "OMIT_ALTERTABLE",
500 #endif
501 #if SQLITE_OMIT_ANALYZE
502 "OMIT_ANALYZE",
503 #endif
504 #if SQLITE_OMIT_ATTACH
505 "OMIT_ATTACH",
506 #endif
507 #if SQLITE_OMIT_AUTHORIZATION
508 "OMIT_AUTHORIZATION",
509 #endif
510 #if SQLITE_OMIT_AUTOINCREMENT
511 "OMIT_AUTOINCREMENT",
512 #endif
513 #if SQLITE_OMIT_AUTOINIT
514 "OMIT_AUTOINIT",
515 #endif
516 #if SQLITE_OMIT_AUTOMATIC_INDEX
517 "OMIT_AUTOMATIC_INDEX",
518 #endif
519 #if SQLITE_OMIT_AUTORESET
520 "OMIT_AUTORESET",
521 #endif
522 #if SQLITE_OMIT_AUTOVACUUM
523 "OMIT_AUTOVACUUM",
524 #endif
525 #if SQLITE_OMIT_BETWEEN_OPTIMIZATION
526 "OMIT_BETWEEN_OPTIMIZATION",
527 #endif
528 #if SQLITE_OMIT_BLOB_LITERAL
529 "OMIT_BLOB_LITERAL",
530 #endif
531 #if SQLITE_OMIT_CAST
532 "OMIT_CAST",
533 #endif
534 #if SQLITE_OMIT_CHECK
535 "OMIT_CHECK",
536 #endif
537 #if SQLITE_OMIT_COMPLETE
538 "OMIT_COMPLETE",
539 #endif
540 #if SQLITE_OMIT_COMPOUND_SELECT
541 "OMIT_COMPOUND_SELECT",
542 #endif
543 #if SQLITE_OMIT_CONFLICT_CLAUSE
544 "OMIT_CONFLICT_CLAUSE",
545 #endif
546 #if SQLITE_OMIT_CTE
547 "OMIT_CTE",
548 #endif
549 #if defined(SQLITE_OMIT_DATETIME_FUNCS) || defined(SQLITE_OMIT_FLOATING_POINT)
550 "OMIT_DATETIME_FUNCS",
551 #endif
552 #if SQLITE_OMIT_DECLTYPE
553 "OMIT_DECLTYPE",
554 #endif
555 #if SQLITE_OMIT_DEPRECATED
556 "OMIT_DEPRECATED",
557 #endif
558 #if SQLITE_OMIT_DESERIALIZE
559 "OMIT_DESERIALIZE",
560 #endif
561 #if SQLITE_OMIT_DISKIO
562 "OMIT_DISKIO",
563 #endif
564 #if SQLITE_OMIT_EXPLAIN
565 "OMIT_EXPLAIN",
566 #endif
567 #if SQLITE_OMIT_FLAG_PRAGMAS
568 "OMIT_FLAG_PRAGMAS",
569 #endif
570 #if SQLITE_OMIT_FLOATING_POINT
571 "OMIT_FLOATING_POINT",
572 #endif
573 #if SQLITE_OMIT_FOREIGN_KEY
574 "OMIT_FOREIGN_KEY",
575 #endif
576 #if SQLITE_OMIT_GET_TABLE
577 "OMIT_GET_TABLE",
578 #endif
579 #if SQLITE_OMIT_HEX_INTEGER
580 "OMIT_HEX_INTEGER",
581 #endif
582 #if SQLITE_OMIT_INCRBLOB
583 "OMIT_INCRBLOB",
584 #endif
585 #if SQLITE_OMIT_INTEGRITY_CHECK
586 "OMIT_INTEGRITY_CHECK",
587 #endif
588 #if SQLITE_OMIT_INTROSPECTION_PRAGMAS
589 "OMIT_INTROSPECTION_PRAGMAS",
590 #endif
591 #if SQLITE_OMIT_LIKE_OPTIMIZATION
592 "OMIT_LIKE_OPTIMIZATION",
593 #endif
594 #if SQLITE_OMIT_LOAD_EXTENSION
595 "OMIT_LOAD_EXTENSION",
596 #endif
597 #if SQLITE_OMIT_LOCALTIME
598 "OMIT_LOCALTIME",
599 #endif
600 #if SQLITE_OMIT_LOOKASIDE
601 "OMIT_LOOKASIDE",
602 #endif
603 #if SQLITE_OMIT_MEMORYDB
604 "OMIT_MEMORYDB",
605 #endif
606 #if SQLITE_OMIT_OR_OPTIMIZATION
607 "OMIT_OR_OPTIMIZATION",
608 #endif
609 #if SQLITE_OMIT_PAGER_PRAGMAS
610 "OMIT_PAGER_PRAGMAS",
611 #endif
612 #if SQLITE_OMIT_PARSER_TRACE
613 "OMIT_PARSER_TRACE",
614 #endif
615 #if SQLITE_OMIT_POPEN
616 "OMIT_POPEN",
617 #endif
618 #if SQLITE_OMIT_PRAGMA
619 "OMIT_PRAGMA",
620 #endif
621 #if SQLITE_OMIT_PROGRESS_CALLBACK
622 "OMIT_PROGRESS_CALLBACK",
623 #endif
624 #if SQLITE_OMIT_QUICKBALANCE
625 "OMIT_QUICKBALANCE",
626 #endif
627 #if SQLITE_OMIT_REINDEX
628 "OMIT_REINDEX",
629 #endif
630 #if SQLITE_OMIT_SCHEMA_PRAGMAS
631 "OMIT_SCHEMA_PRAGMAS",
632 #endif
633 #if SQLITE_OMIT_SCHEMA_VERSION_PRAGMAS
634 "OMIT_SCHEMA_VERSION_PRAGMAS",
635 #endif
636 #if SQLITE_OMIT_SHARED_CACHE
637 "OMIT_SHARED_CACHE",
638 #endif
639 #if SQLITE_OMIT_SHUTDOWN_DIRECTORIES
640 "OMIT_SHUTDOWN_DIRECTORIES",
641 #endif
642 #if SQLITE_OMIT_SUBQUERY
643 "OMIT_SUBQUERY",
644 #endif
645 #if SQLITE_OMIT_TCL_VARIABLE
646 "OMIT_TCL_VARIABLE",
647 #endif
648 #if SQLITE_OMIT_TEMPDB
649 "OMIT_TEMPDB",
650 #endif
651 #if SQLITE_OMIT_TEST_CONTROL
652 "OMIT_TEST_CONTROL",
653 #endif
654 #ifdef SQLITE_OMIT_TRACE
655 # if SQLITE_OMIT_TRACE != 1
656 "OMIT_TRACE=" CTIMEOPT_VAL(SQLITE_OMIT_TRACE),
657 # endif
658 #endif
659 #if SQLITE_OMIT_TRIGGER
660 "OMIT_TRIGGER",
661 #endif
662 #if SQLITE_OMIT_TRUNCATE_OPTIMIZATION
663 "OMIT_TRUNCATE_OPTIMIZATION",
664 #endif
665 #if SQLITE_OMIT_UTF16
666 "OMIT_UTF16",
667 #endif
668 #if SQLITE_OMIT_VACUUM
669 "OMIT_VACUUM",
670 #endif
671 #if SQLITE_OMIT_VIEW
672 "OMIT_VIEW",
673 #endif
674 #if SQLITE_OMIT_VIRTUALTABLE
675 "OMIT_VIRTUALTABLE",
676 #endif
677 #if SQLITE_OMIT_WAL
678 "OMIT_WAL",
679 #endif
680 #if SQLITE_OMIT_WSD
681 "OMIT_WSD",
682 #endif
683 #if SQLITE_OMIT_XFER_OPT
684 "OMIT_XFER_OPT",
685 #endif
686 #if SQLITE_PCACHE_SEPARATE_HEADER
687 "PCACHE_SEPARATE_HEADER",
688 #endif
689 #if SQLITE_PERFORMANCE_TRACE
690 "PERFORMANCE_TRACE",
691 #endif
692 #ifdef SQLITE_POWERSAFE_OVERWRITE
693 # if SQLITE_POWERSAFE_OVERWRITE != 1
694 "POWERSAFE_OVERWRITE=" CTIMEOPT_VAL(SQLITE_POWERSAFE_OVERWRITE),
695 # endif
696 #endif
697 #if SQLITE_PREFER_PROXY_LOCKING
698 "PREFER_PROXY_LOCKING",
699 #endif
700 #if SQLITE_PROXY_DEBUG
701 "PROXY_DEBUG",
702 #endif
703 #if SQLITE_REVERSE_UNORDERED_SELECTS
704 "REVERSE_UNORDERED_SELECTS",
705 #endif
706 #if SQLITE_RTREE_INT_ONLY
707 "RTREE_INT_ONLY",
708 #endif
709 #if SQLITE_SECURE_DELETE
710 "SECURE_DELETE",
711 #endif
712 #if SQLITE_SMALL_STACK
713 "SMALL_STACK",
714 #endif
715 #ifdef SQLITE_SORTER_PMASZ
716 "SORTER_PMASZ=" CTIMEOPT_VAL(SQLITE_SORTER_PMASZ),
717 #endif
718 #if SQLITE_SOUNDEX
719 "SOUNDEX",
720 #endif
721 #ifdef SQLITE_STAT4_SAMPLES
722 "STAT4_SAMPLES=" CTIMEOPT_VAL(SQLITE_STAT4_SAMPLES),
723 #endif
724 #ifdef SQLITE_STMTJRNL_SPILL
725 "STMTJRNL_SPILL=" CTIMEOPT_VAL(SQLITE_STMTJRNL_SPILL),
726 #endif
727 #if SQLITE_SUBSTR_COMPATIBILITY
728 "SUBSTR_COMPATIBILITY",
729 #endif
730 #if (!defined(SQLITE_WIN32_MALLOC) \
731 && !defined(SQLITE_ZERO_MALLOC) \
732 && !defined(SQLITE_MEMDEBUG) \
733 ) || defined(SQLITE_SYSTEM_MALLOC)
734 "SYSTEM_MALLOC",
735 #endif
736 #if SQLITE_TCL
737 "TCL",
738 #endif
739 #ifdef SQLITE_TEMP_STORE
740 "TEMP_STORE=" CTIMEOPT_VAL(SQLITE_TEMP_STORE),
741 #endif
742 #if SQLITE_TEST
743 "TEST",
744 #endif
745 #if defined(SQLITE_THREADSAFE)
746 "THREADSAFE=" CTIMEOPT_VAL(SQLITE_THREADSAFE),
747 #elif defined(THREADSAFE)
748 "THREADSAFE=" CTIMEOPT_VAL(THREADSAFE),
749 #else
750 "THREADSAFE=1",
751 #endif
752 #if SQLITE_UNLINK_AFTER_CLOSE
753 "UNLINK_AFTER_CLOSE",
754 #endif
755 #if SQLITE_UNTESTABLE
756 "UNTESTABLE",
757 #endif
758 #if SQLITE_USER_AUTHENTICATION
759 "USER_AUTHENTICATION",
760 #endif
761 #if SQLITE_USE_ALLOCA
762 "USE_ALLOCA",
763 #endif
764 #if SQLITE_USE_FCNTL_TRACE
765 "USE_FCNTL_TRACE",
766 #endif
767 #if SQLITE_USE_URI
768 "USE_URI",
769 #endif
770 #if SQLITE_VDBE_COVERAGE
771 "VDBE_COVERAGE",
772 #endif
773 #if SQLITE_WIN32_MALLOC
774 "WIN32_MALLOC",
775 #endif
776 #if SQLITE_ZERO_MALLOC
777 "ZERO_MALLOC",
778 #endif
780 ** END CODE GENERATED BY tool/mkctime.tcl
784 const char **sqlite3CompileOptions(int *pnOpt){
785 *pnOpt = sizeof(sqlite3azCompileOpt) / sizeof(sqlite3azCompileOpt[0]);
786 return (const char**)sqlite3azCompileOpt;
789 #endif /* SQLITE_OMIT_COMPILEOPTION_DIAGS */