diff options
author | Silenio Quarti | 2001-10-19 15:53:56 +0000 |
---|---|---|
committer | Silenio Quarti | 2001-10-19 15:53:56 +0000 |
commit | 694b64729e3f3e56b97fd2cdf62a374f51f682a0 (patch) | |
tree | 07434483be3eb5c6733074b99f4b6f371b2a7cd1 /bundles | |
parent | c32b1980ba12b278be8b3731e8726b3004cf92bb (diff) | |
download | eclipse.platform.swt-694b64729e3f3e56b97fd2cdf62a374f51f682a0.tar.gz eclipse.platform.swt-694b64729e3f3e56b97fd2cdf62a374f51f682a0.tar.xz eclipse.platform.swt-694b64729e3f3e56b97fd2cdf62a374f51f682a0.zip |
*** empty log message ***
Diffstat (limited to 'bundles')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/library/swt.c | 78 | ||||
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/motif/OS.java | 2 |
2 files changed, 34 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 */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/motif/OS.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/motif/OS.java index 9785e5da88..8cebfb1b9f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/motif/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/internal/motif/OS.java @@ -1238,6 +1238,7 @@ public static final native void memmove (int dest, XmDragProcCallback src, int c public static final native void memmove (int dest, XmTextBlockRec src, int count);
public static final native void memmove (int dest, XmTextVerifyCallbackStruct src, int count);
public static final native void memmove (int dest, byte [] src, int count);
+public static final native void memmove (int dest, char [] src, int count);
public static final native void memmove (int dest, int [] src, int count);
public static final native void memmove (Visual dest, int src, int count);
public static final native void memmove (XButtonEvent dest, int src, int count);
@@ -1259,6 +1260,7 @@ public static final native void memmove (XmDropProcCallback dest, int src, int c public static final native void memmove (XmTextBlockRec dest, int src, int count);
public static final native void memmove (XmTextVerifyCallbackStruct dest, int src, int count);
public static final native void memmove (byte [] dest, int src, int count);
+public static final native void memmove (char [] dest, int src, int count);
public static final native void memmove (int [] dest, int src, int count);
public static final native int strlen (int string);
public static final native int XmCreateDrawnButton (int parent, byte [] name, int [] arglist, int argcount);
|