sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
| 1 | /* |
| 2 | ** 2024-07-30 |
| 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. |
| 10 | ** |
| 11 | ************************************************************************* |
| 12 | ** This header file defines the interface to TCL as used by SQLite. |
| 13 | ** SQLite subcomponents that use TCL (the libsqlite3.c interface library |
| 14 | ** and various test*.c pieces) should #include this file rather than |
| 15 | ** including tcl.h directly. |
| 16 | */ |
| 17 | /****** Any edits to this file must mirrored in tclsqlite.c ***********/ |
| 18 | |
| 19 | /* When compiling for Windows using STDCALL instead of CDECL calling |
| 20 | ** conventions, the MSVC makefile has to build a customized version of |
| 21 | ** the "tcl.h" header that specifies the calling conventions for each |
| 22 | ** interface. That customized "tcl.h" is named "sqlite_tcl.h". |
| 23 | */ |
| 24 | #if defined(INCLUDE_SQLITE_TCL_H) |
| 25 | # include "sqlite_tcl.h" /* Special case for Windows using STDCALL */ |
| 26 | #else |
| 27 | # include <tcl.h> /* All normal cases */ |
| 28 | # ifndef SQLITE_TCLAPI |
| 29 | # define SQLITE_TCLAPI |
| 30 | # endif |
| 31 | #endif |
| 32 | |
| 33 | /****** Any edits to this file must mirrored in tclsqlite.c ***********/ |
| 34 | |
| 35 | /* Compatibility between Tcl8.6 and Tcl9.0 */ |
| 36 | #if TCL_MAJOR_VERSION==9 |
| 37 | # define CONST const |
| 38 | #elif !defined(Tcl_Size) |
| 39 | # define Tcl_Size int |
| 40 | #endif |
| 41 | |
| 42 | /****** Any edits to this file must mirrored in tclsqlite.c ***********/ |