[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz gfx/jni/GzzGL-jni.cxx test/gzz/gfx/jni/JniS...
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz gfx/jni/GzzGL-jni.cxx test/gzz/gfx/jni/JniS... |
Date: |
Mon, 07 Oct 2002 04:45:21 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 02/10/07 04:45:21
Modified files:
gfx/jni : GzzGL-jni.cxx
Added files:
test/gzz/gfx/jni: JniStrConv.java jnistrconv.test
Log message:
Some tests for string conversions through JNI.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/jni/GzzGL-jni.cxx.diff?tr1=1.45&tr2=1.46&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/jni/JniStrConv.java?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/jni/jnistrconv.test?rev=1.1
Patches:
Index: gzz/gfx/jni/GzzGL-jni.cxx
diff -c gzz/gfx/jni/GzzGL-jni.cxx:1.45 gzz/gfx/jni/GzzGL-jni.cxx:1.46
*** gzz/gfx/jni/GzzGL-jni.cxx:1.45 Mon Oct 7 04:07:51 2002
--- gzz/gfx/jni/GzzGL-jni.cxx Mon Oct 7 04:45:21 2002
***************
*** 227,232 ****
--- 227,242 ----
int inited = 0;
+ JNIEXPORT jstring JNICALL
+ Java_test_gzz_gfx_jni_JniStrConv_loopUnistrConv(JNIEnv *env, jobject obj,
jstring jstr) {
+ return unistr2jstr(env, jstr2unistr(env, jstr));
+ }
+
+ JNIEXPORT jstring JNICALL
+ Java_test_gzz_gfx_jni_JniStrConv_loopStdstrConv(JNIEnv *env, jobject obj,
jstring jstr) {
+ return stdstr2jstr(env, jstr2stdstr(env, jstr));
+ }
+
JNIEXPORT jint JNICALL Java_gzz_gfx_gl_GL_init
(JNIEnv *env, jclass, jint) {
if(inited++) {
- [Gzz-commits] gzz gfx/jni/GzzGL-jni.cxx test/gzz/gfx/jni/JniS...,
Asko Soukka <=