Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2001-10-19 11:53:56 -0400
committerSilenio Quarti2001-10-19 11:53:56 -0400
commit694b64729e3f3e56b97fd2cdf62a374f51f682a0 (patch)
tree07434483be3eb5c6733074b99f4b6f371b2a7cd1 /bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
parentc32b1980ba12b278be8b3731e8726b3004cf92bb (diff)
downloadeclipse.platform.swt-694b64729e3f3e56b97fd2cdf62a374f51f682a0.tar.gz
eclipse.platform.swt-694b64729e3f3e56b97fd2cdf62a374f51f682a0.tar.xz
eclipse.platform.swt-694b64729e3f3e56b97fd2cdf62a374f51f682a0.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c78
1 files changed, 32 insertions, 46 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
index 438b5fa5f9..361c762ebb 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c
@@ -231,6 +231,22 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_memmove__I_3BI
}
}
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_memmove__I_3CI
+ (JNIEnv *env, jclass that, jint dest, jcharArray src, jint count)
+{
+ jchar *src1;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__I_3CI\n");
+#endif
+
+ /* don't do anything if src pointer is NULL */
+ if (src) {
+ src1 = (*env)->GetCharArrayElements(env, src, NULL);
+ memmove((void *)dest, (void *)src1, count);
+ (*env)->ReleaseCharArrayElements(env, src, src1, 0);
+ }
+}
+
/*
* Class: org_eclipse_swt_internal_motif_OS
* Method: memmove
@@ -699,6 +715,22 @@ JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_memmove___3BII
}
}
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_memmove___3CII
+ (JNIEnv *env, jclass that, jcharArray dest, jint src, jint count)
+{
+ jchar *dest1;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove___3CII\n");
+#endif
+
+ /* don't do anything if dest pointer is NULL */
+ if (dest) {
+ dest1 = (*env)->GetCharArrayElements(env, dest, NULL);
+ memmove((void *)dest1, (void *)src, count);
+ (*env)->ReleaseCharArrayElements(env, dest, dest1, 0);
+ }
+}
+
/*
* Class: org_eclipse_swt_internal_motif_OS
* Method: memmove
@@ -8505,52 +8537,6 @@ JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_motif_OS_MB_1CUR_1MAX
/*
* Class: org_eclipse_swt_internal_motif_OS
- * Method: memmove
- * Signature: ([CII)V
- */
-/*
-JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_memmove___3CII
- (JNIEnv *env, jclass that, jcharArray dest, jint src, jint count)
-{
- jchar *dest1;
-#ifdef DEBUG_CALL_PRINTS
- fprintf(stderr, "memmove___3CII\n");
-#endif
-
- if (dest) {
- dest1 = (*env)->GetCharArrayElements(env, dest, NULL);
- memmove((void *)dest1, (void *)src, count);
- (*env)->ReleaseCharArrayElements(env, dest, dest1, 0);
- }
-}
-*/
-
-/*
- * Class: org_eclipse_swt_internal_motif_OS
- * Method: memmove
- * Signature: (I[CI)V
- */
-/*
-JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_motif_OS_memmove__I_3CI
- (JNIEnv *env, jclass that, jint dest, jcharArray src, jint count)
-{
- jchar *src1;
-#ifdef DEBUG_CALL_PRINTS
- fprintf(stderr, "memmove__I_3CI\n");
-#endif
-
- if (src) {
- int i;
- unsigned char *dest1 = (unsigned char *)dest;
- src1 = (*env)->GetCharArrayElements(env, src, NULL);
- memmove((void *)dest, (void *)src1, count);
- (*env)->ReleaseCharArrayElements(env, src, src1, 0);
- }
-}
-*/
-
-/*
- * Class: org_eclipse_swt_internal_motif_OS
* Method: XCreateFontSet
* Signature: (I[B[I[I[I)I
*/

Back to the top