1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

In the JNI docs, note that the sizeof SQLITE_TRANSIENT and SQLITE_STATIC should ideally be the same as the platform's pointer size.

FossilOrigin-Name: 7d4ac44ec419ed0474bdb9d237b97660cf0d8faba8fe686f6a914d7bc04dfa3b
This commit is contained in:
stephan
2023-08-05 19:20:15 +00:00
parent fdeb2c8121
commit 27cb7d6a1d
4 changed files with 15 additions and 13 deletions

View File

@ -84,9 +84,9 @@ extern "C" {
#undef org_sqlite_jni_SQLite3Jni_SQLITE_RECURSIVE
#define org_sqlite_jni_SQLite3Jni_SQLITE_RECURSIVE 33L
#undef org_sqlite_jni_SQLite3Jni_SQLITE_STATIC
#define org_sqlite_jni_SQLite3Jni_SQLITE_STATIC 0L
#define org_sqlite_jni_SQLite3Jni_SQLITE_STATIC 0LL
#undef org_sqlite_jni_SQLite3Jni_SQLITE_TRANSIENT
#define org_sqlite_jni_SQLite3Jni_SQLITE_TRANSIENT -1L
#define org_sqlite_jni_SQLite3Jni_SQLITE_TRANSIENT -1LL
#undef org_sqlite_jni_SQLite3Jni_SQLITE_CHANGESETSTART_INVERT
#define org_sqlite_jni_SQLite3Jni_SQLITE_CHANGESETSTART_INVERT 2L
#undef org_sqlite_jni_SQLite3Jni_SQLITE_CHANGESETAPPLY_NOSAVEPOINT

View File

@ -849,9 +849,11 @@ public final class SQLite3Jni {
public static final int SQLITE_SAVEPOINT = 32;
public static final int SQLITE_RECURSIVE = 33;
// blob finalizers:
public static final int SQLITE_STATIC = 0;
public static final int SQLITE_TRANSIENT = -1;
// blob finalizers: these should, because they are treated as
// special pointer values in C, ideally have the same sizeof() as
// the platform's (void*), but we can't know that size from here.
public static final long SQLITE_STATIC = 0;
public static final long SQLITE_TRANSIENT = -1;
// changeset
public static final int SQLITE_CHANGESETSTART_INVERT = 2;