JNI build fixes for platforms where the jint type is not the same as int, as reported in [forum:9089d2049a|forum post 9089d2049a].
FossilOrigin-Name: b32b0873274bfe472114da8a308a04bee76ba26a5830d8d04fc921f9c1544f9d
This commit is contained in:
parent
c78d3b5963
commit
86b1898cb4
@ -3061,7 +3061,7 @@ S3JniApi(sqlite3_compileoption_used(),jboolean,1compileoption_1used)(
|
||||
return rc;
|
||||
}
|
||||
|
||||
S3JniApi(sqlite3_complete(),int,1complete)(
|
||||
S3JniApi(sqlite3_complete(),jint,1complete)(
|
||||
JniArgsEnvClass, jbyteArray jSql
|
||||
){
|
||||
jbyte * const pBuf = s3jni_jbyteArray_bytes(jSql);
|
||||
@ -3507,7 +3507,7 @@ S3JniApi(sqlite3_db_readonly(),jint,1db_1readonly)(
|
||||
return (jint)rc;
|
||||
}
|
||||
|
||||
S3JniApi(sqlite3_db_release_memory(),int,1db_1release_1memory)(
|
||||
S3JniApi(sqlite3_db_release_memory(),jint,1db_1release_1memory)(
|
||||
JniArgsEnvClass, jobject jDb
|
||||
){
|
||||
sqlite3 * const pDb = PtrGet_sqlite3(jDb);
|
||||
@ -4012,11 +4012,11 @@ static void s3jni_update_hook_impl(void * pState, int opId, const char *zDb,
|
||||
|
||||
#if !defined(SQLITE_ENABLE_PREUPDATE_HOOK)
|
||||
/* We need no-op impls for preupdate_{count,depth,blobwrite}() */
|
||||
S3JniApi(sqlite3_preupdate_blobwrite(),int,1preupdate_1blobwrite)(
|
||||
S3JniApi(sqlite3_preupdate_blobwrite(),jint,1preupdate_1blobwrite)(
|
||||
JniArgsEnvClass, jlong jDb){ return SQLITE_MISUSE; }
|
||||
S3JniApi(sqlite3_preupdate_count(),int,1preupdate_1count)(
|
||||
S3JniApi(sqlite3_preupdate_count(),jint,1preupdate_1count)(
|
||||
JniArgsEnvClass, jlong jDb){ return SQLITE_MISUSE; }
|
||||
S3JniApi(sqlite3_preupdate_depth(),int,1preupdate_1depth)(
|
||||
S3JniApi(sqlite3_preupdate_depth(),jint,1preupdate_1depth)(
|
||||
JniArgsEnvClass, jlong jDb){ return SQLITE_MISUSE; }
|
||||
#endif /* !SQLITE_ENABLE_PREUPDATE_HOOK */
|
||||
|
||||
@ -4332,7 +4332,7 @@ S3JniApi(sqlite3_result_double(),void,1result_1double)(
|
||||
}
|
||||
|
||||
S3JniApi(sqlite3_result_error(),void,1result_1error)(
|
||||
JniArgsEnvClass, jobject jpCx, jbyteArray baMsg, int eTextRep
|
||||
JniArgsEnvClass, jobject jpCx, jbyteArray baMsg, jint eTextRep
|
||||
){
|
||||
const char * zUnspecified = "Unspecified error.";
|
||||
jsize const baLen = (*env)->GetArrayLength(env, baMsg);
|
||||
@ -4680,7 +4680,7 @@ S3JniApi(sqlite3_step(),jint,1step)(
|
||||
return pStmt ? (jint)sqlite3_step(pStmt) : (jint)SQLITE_MISUSE;
|
||||
}
|
||||
|
||||
S3JniApi(sqlite3_table_column_metadata(),int,1table_1column_1metadata)(
|
||||
S3JniApi(sqlite3_table_column_metadata(),jint,1table_1column_1metadata)(
|
||||
JniArgsEnvClass, jobject jDb, jstring jDbName, jstring jTableName,
|
||||
jstring jColumnName, jobject jDataType, jobject jCollSeq, jobject jNotNull,
|
||||
jobject jPrimaryKey, jobject jAutoinc
|
||||
@ -4866,14 +4866,14 @@ S3JniApi(sqlite3_value_blob(),jbyteArray,1value_1blob)(
|
||||
: NULL;
|
||||
}
|
||||
|
||||
S3JniApi(sqlite3_value_bytes(),int,1value_1bytes)(
|
||||
S3JniApi(sqlite3_value_bytes(),jint,1value_1bytes)(
|
||||
JniArgsEnvClass, jlong jpSVal
|
||||
){
|
||||
sqlite3_value * const sv = LongPtrGet_sqlite3_value(jpSVal);
|
||||
return sv ? sqlite3_value_bytes(sv) : 0;
|
||||
}
|
||||
|
||||
S3JniApi(sqlite3_value_bytes16(),int,1value_1bytes16)(
|
||||
S3JniApi(sqlite3_value_bytes16(),jint,1value_1bytes16)(
|
||||
JniArgsEnvClass, jlong jpSVal
|
||||
){
|
||||
sqlite3_value * const sv = LongPtrGet_sqlite3_value(jpSVal);
|
||||
@ -5540,7 +5540,7 @@ JniDeclFtsXA(jlong,xRowid)(JniArgsEnvObj,jobject jCtx){
|
||||
return (jlong)ext->xRowid(PtrGet_Fts5Context(jCtx));
|
||||
}
|
||||
|
||||
JniDeclFtsXA(int,xSetAuxdata)(JniArgsEnvObj,jobject jCtx, jobject jAux){
|
||||
JniDeclFtsXA(jint,xSetAuxdata)(JniArgsEnvObj,jobject jCtx, jobject jAux){
|
||||
Fts5ExtDecl;
|
||||
int rc;
|
||||
S3JniFts5AuxData * pAux;
|
||||
|
14
manifest
14
manifest
@ -1,5 +1,5 @@
|
||||
C Suppress\sharmless\sUBSAN\swarnings\sabout\smemory\soverflow\sin\sOP_AddImm.\s\sThe\nexact\ssame\smachine\scode\sis\sgenerated\sby\sGCC.
|
||||
D 2023-11-08T00:45:14.192
|
||||
C JNI\sbuild\sfixes\sfor\splatforms\swhere\sthe\sjint\stype\sis\snot\sthe\ssame\sas\sint,\sas\sreported\sin\s[forum:9089d2049a|forum\spost\s9089d2049a].
|
||||
D 2023-11-08T12:56:23.623
|
||||
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
|
||||
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
|
||||
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
|
||||
@ -241,7 +241,7 @@ F ext/icu/sqliteicu.h fa373836ed5a1ee7478bdf8a1650689294e41d0c89c1daab26e9ae78a3
|
||||
F ext/jni/GNUmakefile df91212d772011e3d39712a0e38586856c42528b6ee3d507a5bb3b3248c0ecbc
|
||||
F ext/jni/README.md ef9ac115e97704ea995d743b4a8334e23c659e5534c3b64065a5405256d5f2f4
|
||||
F ext/jni/jar-dist.make 030aaa4ae71dd86e4ec5e7c1e6cd86f9dfa47c4592c070d2e35157e42498e1fa
|
||||
F ext/jni/src/c/sqlite3-jni.c 7c6d944799c12eebc32ecf9e21ec40f1060fbcb77a9c1faef569f1e7770a938d
|
||||
F ext/jni/src/c/sqlite3-jni.c 6b95974189d7cc394afbe15507050f1d174170a65be5a4dad201ab11f0a9777a
|
||||
F ext/jni/src/c/sqlite3-jni.h 18925c56d6664fdec081c56daf3b2ffa0e0ff6b9b128b9f39b84862f34ba0601
|
||||
F ext/jni/src/org/sqlite/jni/annotation/NotNull.java a99341e88154e70447596b1af6a27c586317df41a7e0f246fd41370cd7b723b2
|
||||
F ext/jni/src/org/sqlite/jni/annotation/Nullable.java 0b1879852707f752512d4db9d7edd0d8db2f0c2612316ce1c832715e012ff6ba
|
||||
@ -2142,8 +2142,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||
P 32a7b1bd4d88a6839c2c5061a38b4a28f31b22aa8fa08c743633ff96fc4bf88d
|
||||
R 018fee29b67a9c300c9a1c8f38582550
|
||||
U drh
|
||||
Z d4e9689751359f866f309e9e035b0a5f
|
||||
P b0594383b9fa021a8713d640a4606b9053f8e21d64b4ec8ea60a0b6cddfca306
|
||||
R 3f46c0761970583c9dda3b5c30472d0c
|
||||
U stephan
|
||||
Z b9bb3a53ca08337ab5c86e3c35fc1299
|
||||
# Remove this line to create a well-formed Fossil manifest.
|
||||
|
@ -1 +1 @@
|
||||
b0594383b9fa021a8713d640a4606b9053f8e21d64b4ec8ea60a0b6cddfca306
|
||||
b32b0873274bfe472114da8a308a04bee76ba26a5830d8d04fc921f9c1544f9d
|
Loading…
x
Reference in New Issue
Block a user