diff options
author | stephan <stephan@noemail.net> | 2022-12-24 15:28:45 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-24 15:28:45 +0000 |
commit | 4099b3cab3c3451a2d9643738308be0b2d9e44b1 (patch) | |
tree | 19ffa25452a2a1d3ae6d0906d170f51b54095c4f /ext/wasm/api/sqlite3-wasm.c | |
parent | cede6384fde313cd346c341e6088cb4c8a34f5c5 (diff) | |
download | sqlite-4099b3cab3c3451a2d9643738308be0b2d9e44b1.tar.gz sqlite-4099b3cab3c3451a2d9643738308be0b2d9e44b1.zip |
Replace JS-side use of SQLITE_TRANSIENT with the new SQLITE_WASM_DEALLOC, reducing the amount allocation/copying required by sqlite3_bind_blob/text() and sqlite3_result_blob/text(). Remove the 'experimental' log message from the virtual table tests.
FossilOrigin-Name: ffe2999a91a7dec129a38afb675fe9e539d7c347886bfea85cba55f6367d54d1
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index ed3b96dea..f2bf5fef1 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -1622,6 +1622,11 @@ int sqlite3_wasm_test_intptr(int * p){ } SQLITE_WASM_KEEP +void * sqlite3_wasm_test_voidptr(void * p){ + return p; +} + +SQLITE_WASM_KEEP int64_t sqlite3_wasm_test_int64_max(void){ return (int64_t)0x7fffffffffffffff; } |