S3JniExceptionIsFatal("Cannot set OutputPointer.T.value");
}
-/*
-** Sets the value property of the OutputPointer.sqlite3 jOut object to
-** v.
-*/
-static void OutputPointer_set_sqlite3(JNIEnv * const env, jobject const jOut,
- jobject v){
- OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3), jOut, v);
-}
-
-/*
-** Sets the value property of the OutputPointer.sqlite3_blob jOut object to
-** v.
-*/
-static void OutputPointer_set_sqlite3_blob(JNIEnv * const env, jobject const jOut,
- jobject v){
- OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3_blob), jOut, v);
-}
-
-/*
-** Sets the value property of the OutputPointer.sqlite3_stmt jOut object to
-** v.
-*/
-static void OutputPointer_set_sqlite3_stmt(JNIEnv * const env, jobject const jOut,
- jobject v){
- OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3_stmt), jOut, v);
-}
-
-#ifdef SQLITE_ENABLE_PREUPDATE_HOOK
-/*
-** Sets the value property of the OutputPointer.sqlite3_value jOut object to
-** v.
-*/
-static void OutputPointer_set_sqlite3_value(JNIEnv * const env, jobject const jOut,
- jobject v){
- OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3_value), jOut, v);
-}
-#endif /* SQLITE_ENABLE_PREUPDATE_HOOK */
-
#ifdef SQLITE_ENABLE_FTS5
#if 0
/*
}
}
-
-
/*
** Returns a new Java instance of the class referred to by pRef, which
** MUST be interface-compatible with NativePointerHolder and MUST have
** a no-arg constructor. The NativePointerHolder_set() method is
-** passed the new Java object and pNative. Hypothetically returns NULL
-** if Java fails to allocate, but the JNI docs are not entirely clear
-** on that detail.
+** passed the new Java object (which must not be NULL) and pNative
+** (which may be NULL). Hypothetically returns NULL if Java fails to
+** allocate, but the JNI docs are not entirely clear on that detail.
**
** Always use a static pointer from the S3JniNphOps struct for the
** 2nd argument.
if( 0==rc ){
jobject rv = new_java_sqlite3_blob(env, pBlob);
if( rv ){
- OutputPointer_set_sqlite3_blob(env, jOut, rv);
+ OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3_blob), jOut, rv);
}else{
sqlite3_blob_close(pBlob);
rc = SQLITE_NOMEM;
const jsize nBa = pBuf ? (*env)->GetArrayLength(env, jBa) : 0;
int rc = SQLITE_MISUSE;
if(b && pBuf){
- rc = sqlite3_blob_write( b, pBuf, nBa, (int)iOffset );
+ rc = sqlite3_blob_write( b, pBuf, (int)nBa, (int)iOffset );
}
s3jni_jbyteArray_release(jBa, pBuf);
return (jint)rc;
S3JniDb_set_aside(ps);
ps = 0;
}
- OutputPointer_set_sqlite3(env, jOut, ps ? ps->jDb : 0);
+ OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3),
+ jOut, ps ? ps->jDb : 0);
return theRc ? theRc : rc;
}
** what follows... */
assert(zTail ? ((void*)zTail>=(void*)pBuf) : 1);
assert(zTail ? (((int)((void*)zTail - (void*)pBuf)) >= 0) : 1);
- OutputPointer_set_Int32(env, outTail, (int)(zTail ? (zTail - (const char *)pBuf) : 0));
+ OutputPointer_set_Int32(
+ env, outTail, (int)(zTail ? (zTail - (const char *)pBuf) : 0)
+ );
}
if( pStmt ){
NativePointerHolder_set(S3JniNph(sqlite3_stmt), jStmt, pStmt);
S3JniUnrefLocal(jStmt);
jStmt = 0;
}
- OutputPointer_set_sqlite3_stmt(env, jOutStmt, jStmt);
+ OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3_stmt),
+ jOutStmt, jStmt);
return (jint)rc;
}
S3JniApi(sqlite3_prepare(),jint,1prepare)(
if( 0==rc ){
jobject pWrap = new_java_sqlite3_value(env, pOut);
if( pWrap ){
- OutputPointer_set_sqlite3_value(env, jOut, pWrap);
+ OutputPointer_set_obj(env, S3JniNph(OutputPointer_sqlite3_value),
+ jOut, pWrap);
S3JniUnrefLocal(pWrap);
}else{
rc = SQLITE_NOMEM;
-C Move\san\sinternal\sutility\sclass\sout\sof\sthe\spublic\sJava\sAPI.
-D 2023-09-04T05:34:30.074
+C Remove\sseveral\sunnececessary\sfunctions.
+D 2023-09-04T05:58:13.370
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
F ext/jni/GNUmakefile 2ae5e34ad21da48a8c1dd6e9e421d6bbb78716e3a03ad29dd86d9bd530ee3fc0
F ext/jni/README.md 1332b1fa27918bd5d9ca2d0d4f3ac3a6ab86b9e3699dc5bfe32904a027f3d2a9
F ext/jni/jar-dist.make 030aaa4ae71dd86e4ec5e7c1e6cd86f9dfa47c4592c070d2e35157e42498e1fa
-F ext/jni/src/c/sqlite3-jni.c 4b6f4295378c198b145d402ca84af1f70fa242d713e1cfb37c0c10ab7d4d5cd0
-F ext/jni/src/c/sqlite3-jni.h ff3f05fa179a0242eb86fea90c1f77d695338876bba49a754700b3c129468735
+F ext/jni/src/c/sqlite3-jni.c 93452c93e4e23884490f0c8ee76a38bc6c9a441800d95ff86aacb0991ab414d0
+F ext/jni/src/c/sqlite3-jni.h 6a6dfa22fc760f3a355cdc42cae07ea06ae3ee6d4fbf60bb11220a250926064c
F ext/jni/src/org/sqlite/jni/AbstractCollationCallback.java 95e88ba04f4aac51ffec65693e878e234088b2f21b387f4e4285c8b72b33e436
F ext/jni/src/org/sqlite/jni/AggregateFunction.java 7312486bc65fecdb91753c0a4515799194e031f45edbe16a6373cea18f404dc4
F ext/jni/src/org/sqlite/jni/AuthorizerCallback.java e6135be32f12bf140bffa39be7fd1a45ad83b2661ed49c08dbde04c8485feb38
F ext/jni/src/org/sqlite/jni/annotation/NotNull.java d9b32956cb9fb11d1f8a562e5df70d0599820265285120c63858294dbe2b7711
F ext/jni/src/org/sqlite/jni/annotation/Nullable.java 6f962a98c9a5c6e9d21c50ae8716b16bdfdc934a191608cbb7e12ea588ddb6af
F ext/jni/src/org/sqlite/jni/annotation/package-info.java f66bfb621c6494e67c03ed38a9e26a3bd6af99b9f9f6ef79556bcec30a025a22
-F ext/jni/src/org/sqlite/jni/fts5_api.java bf7009a7fd2d11a77280380e6e2c7f98e377494b3f265e50fc44cbb9a24275d9
+F ext/jni/src/org/sqlite/jni/fts5_api.java 386ecbcfcd03c24afbca52dc8bdf00791b6f2cbc0dd7be53e354071ada94f7bc
F ext/jni/src/org/sqlite/jni/fts5_extension_function.java bec9f17a7e784d57eca99d812a65ecc9dd74c8df62d6d90cc1ecb3e37de14d47
F ext/jni/src/org/sqlite/jni/fts5_tokenizer.java a92c2e55bda492e4c76d48ddc73369bcc0d5e8727940840f9339e3292ea58fa7
F ext/jni/src/org/sqlite/jni/package-info.java a3946db2504de747a1993c4f6e8ce604bec5a8e5a134b292c3b07527bc321a99
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P fc34e2bfa4a2255f019a2514367e58596837289de49f7fab87279c8b40c7f119
-R 768a12cfd33f550248c1b9dce66d5e0b
+P 8e1ae3197a62796565b7260b230057bdb3f136edd00a83f8a63532d44d386243
+R 5de5f56813f9d2b943c3cc107d561381
U stephan
-Z 1c5b437e775779fe47dd6a40997032e6
+Z b5a6e033e7444f24fb64279fc427f971
# Remove this line to create a well-formed Fossil manifest.