koffi 0.9.26 → 0.9.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/benchmark/CMakeLists.txt +15 -4
- package/benchmark/atoi_cc.cc +6 -9
- package/benchmark/atoi_koffi.js +10 -9
- package/benchmark/atoi_napi.cc +15 -9
- package/benchmark/atoi_napi.js +9 -8
- package/benchmark/atoi_node_ffi.js +9 -9
- package/benchmark/raylib_cc.cc +7 -10
- package/benchmark/raylib_koffi.js +11 -10
- package/benchmark/raylib_node_ffi.js +11 -10
- package/package.json +2 -2
- package/src/call_arm32.cc +2 -2
- package/src/call_arm32_fwd.S +12 -12
- package/src/ffi.cc +24 -11
- package/src/ffi.hh +1 -0
- package/src/util.cc +22 -11
- package/src/util.hh +6 -3
- package/test/CMakeLists.txt +4 -0
- package/test/registry/machines.json +10 -30
- package/test/tests/misc.c +47 -2
- package/test/tests/misc.js +56 -20
- package/test/tests/raylib.js +1 -1
- package/test/tests/sqlite.js +1 -1
- package/vendor/sqlite3/shell.c +31 -22
- package/vendor/sqlite3/sqlite3.c +329 -132
- package/vendor/sqlite3/sqlite3.h +10 -6
- package/benchmark/raylib_cc.exe +0 -0
package/vendor/sqlite3/sqlite3.h
CHANGED
|
@@ -146,9 +146,9 @@ extern "C" {
|
|
|
146
146
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
|
147
147
|
** [sqlite_version()] and [sqlite_source_id()].
|
|
148
148
|
*/
|
|
149
|
-
#define SQLITE_VERSION "3.38.
|
|
150
|
-
#define SQLITE_VERSION_NUMBER
|
|
151
|
-
#define SQLITE_SOURCE_ID "2022-
|
|
149
|
+
#define SQLITE_VERSION "3.38.3"
|
|
150
|
+
#define SQLITE_VERSION_NUMBER 3038003
|
|
151
|
+
#define SQLITE_SOURCE_ID "2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4"
|
|
152
152
|
|
|
153
153
|
/*
|
|
154
154
|
** CAPI3REF: Run-Time Library Version Numbers
|
|
@@ -4979,6 +4979,10 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
|
|
4979
4979
|
** even empty strings, are always zero-terminated. ^The return
|
|
4980
4980
|
** value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer.
|
|
4981
4981
|
**
|
|
4982
|
+
** ^Strings returned by sqlite3_column_text16() always have the endianness
|
|
4983
|
+
** which is native to the platform, regardless of the text encoding set
|
|
4984
|
+
** for the database.
|
|
4985
|
+
**
|
|
4982
4986
|
** <b>Warning:</b> ^The object returned by [sqlite3_column_value()] is an
|
|
4983
4987
|
** [unprotected sqlite3_value] object. In a multithreaded environment,
|
|
4984
4988
|
** an unprotected sqlite3_value object may only be used safely with
|
|
@@ -4992,7 +4996,7 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
|
|
4992
4996
|
** [application-defined SQL functions] or [virtual tables], not within
|
|
4993
4997
|
** top-level application code.
|
|
4994
4998
|
**
|
|
4995
|
-
**
|
|
4999
|
+
** These routines may attempt to convert the datatype of the result.
|
|
4996
5000
|
** ^For example, if the internal representation is FLOAT and a text result
|
|
4997
5001
|
** is requested, [sqlite3_snprintf()] is used internally to perform the
|
|
4998
5002
|
** conversion automatically. ^(The following table details the conversions
|
|
@@ -5017,7 +5021,7 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
|
|
5017
5021
|
** <tr><td> TEXT <td> BLOB <td> No change
|
|
5018
5022
|
** <tr><td> BLOB <td> INTEGER <td> [CAST] to INTEGER
|
|
5019
5023
|
** <tr><td> BLOB <td> FLOAT <td> [CAST] to REAL
|
|
5020
|
-
** <tr><td> BLOB <td> TEXT <td>
|
|
5024
|
+
** <tr><td> BLOB <td> TEXT <td> [CAST] to TEXT, ensure zero terminator
|
|
5021
5025
|
** </table>
|
|
5022
5026
|
** </blockquote>)^
|
|
5023
5027
|
**
|
|
@@ -9767,7 +9771,7 @@ SQLITE_API int sqlite3_vtab_in_next(sqlite3_value *pVal, sqlite3_value **ppOut);
|
|
|
9767
9771
|
** ^When xBestIndex returns, the sqlite3_value object returned by
|
|
9768
9772
|
** sqlite3_vtab_rhs_value() is automatically deallocated.
|
|
9769
9773
|
**
|
|
9770
|
-
** The "_rhs_" in the name of this routine is an
|
|
9774
|
+
** The "_rhs_" in the name of this routine is an abbreviation for
|
|
9771
9775
|
** "Right-Hand Side".
|
|
9772
9776
|
*/
|
|
9773
9777
|
SQLITE_API int sqlite3_vtab_rhs_value(sqlite3_index_info*, int, sqlite3_value **ppVal);
|
package/benchmark/raylib_cc.exe
DELETED
|
Binary file
|