sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
sqlite / ext / wasm / example_extra_init.c
| 1 | /* |
| 2 | ** If the canonical build process finds the file |
| 3 | ** sqlite3_wasm_extra_init.c in the main wasm build directory, it |
| 4 | ** arranges to include that file in the build of sqlite3.wasm and |
| 5 | ** defines SQLITE_EXTRA_INIT=sqlite3_wasm_extra_init. |
| 6 | ** |
| 7 | ** The C file must define the function sqlite3_wasm_extra_init() with |
| 8 | ** this signature: |
| 9 | ** |
| 10 | ** int sqlite3_wasm_extra_init(const char *) |
| 11 | ** |
| 12 | ** and the sqlite3 library will call it with an argument of NULL one |
| 13 | ** time during sqlite3_initialize(). If it returns non-0, |
| 14 | ** initialization of the library will fail. |
| 15 | */ |
| 16 | |
| 17 | #include "sqlite3.h" |
| 18 | #include <stdio.h> |
| 19 | |
| 20 | int sqlite3_wasm_extra_init(const char *z){ |
| 21 | fprintf(stderr,"%s: %s()\n", __FILE__, __func__); |
| 22 | return 0; |
| 23 | } |