summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2007-08-24 14:10:53 +0000
committerGrant Gayed <ggayed>2007-08-24 14:10:53 +0000
commitf426f6bf2b201e851a81462ce072d2af4d24fdab (patch)
treef1beccb3aceb89740faa89c96255a0715eecb2fe
parent86993c3e51773da3914b0c9262ade1d56b8ae954 (diff)
downloadeclipse.platform.swt-f426f6bf2b201e851a81462ce072d2af4d24fdab.tar.gz
eclipse.platform.swt-f426f6bf2b201e851a81462ce072d2af4d24fdab.tar.xz
eclipse.platform.swt-f426f6bf2b201e851a81462ce072d2af4d24fdab.zip
fix for 64-bit
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp13
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java5
5 files changed, 26 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties
index 1d60c6323c..8749ddba9c 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties
@@ -486,6 +486,12 @@ XPCOM_VtblCall__IIJ_0=
XPCOM_VtblCall__IIJ_1=
XPCOM_VtblCall__IIJ_2=
+XPCOM_VtblCall__IIJI=
+XPCOM_VtblCall__IIJI_0=
+XPCOM_VtblCall__IIJI_1=
+XPCOM_VtblCall__IIJI_2=
+XPCOM_VtblCall__IIJI_3=
+
XPCOM_VtblCall__IIJJ=
XPCOM_VtblCall__IIJJ_0=
XPCOM_VtblCall__IIJJ_1=
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp
index aea9c8376f..4996a3eff1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp
@@ -1070,6 +1070,19 @@ JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIJ)
}
#endif
+#ifndef NO_VtblCall__IIJI
+extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIJI)(JNIEnv *env, jclass that, jint arg0, jint arg1, jlong arg2, jint arg3);
+JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIJI)
+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jlong arg2, jint arg3)
+{
+ jint rc = 0;
+ XPCOM_NATIVE_ENTER(env, that, VtblCall__IIJI_FUNC);
+ rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jlong, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3);
+ XPCOM_NATIVE_EXIT(env, that, VtblCall__IIJI_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_VtblCall__IIJJ
extern "C" JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIJJ)(JNIEnv *env, jclass that, jint arg0, jint arg1, jlong arg2, jlong arg3);
JNIEXPORT jint JNICALL XPCOM_NATIVE(VtblCall__IIJJ)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp
index 056abf7364..0a02004467 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp
@@ -14,8 +14,8 @@
#ifdef NATIVE_STATS
-int XPCOM_nativeFunctionCount = 129;
-int XPCOM_nativeFunctionCallCount[129];
+int XPCOM_nativeFunctionCount = 130;
+int XPCOM_nativeFunctionCallCount[130];
char * XPCOM_nativeFunctionNames[] = {
"Call",
"NS_1GetComponentManager",
@@ -75,6 +75,7 @@ char * XPCOM_nativeFunctionNames[] = {
"VtblCall__III_3I_3I_3I_3I",
"VtblCall__III_3Z",
"VtblCall__IIJ",
+ "VtblCall__IIJI",
"VtblCall__IIJJ",
"VtblCall__IIJJI",
"VtblCall__IIJJJJJ",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h
index 6f40347fc4..7b3e822a32 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h
@@ -83,6 +83,7 @@ typedef enum {
VtblCall__III_3I_3I_3I_3I_FUNC,
VtblCall__III_3Z_FUNC,
VtblCall__IIJ_FUNC,
+ VtblCall__IIJI_FUNC,
VtblCall__IIJJ_FUNC,
VtblCall__IIJJI_FUNC,
VtblCall__IIJJJJJ_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java
index 43bdaf5a95..d7bface231 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java
@@ -155,6 +155,9 @@ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int[] arg0);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long arg0);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long[] arg0);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, short[] arg0);
+static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, int arg1);
+static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long arg0, int arg1);
+static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long arg0, long arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/[] arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, boolean arg0, boolean[] arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, boolean arg0, int /*long*/ arg1);
@@ -165,7 +168,6 @@ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0,
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, int arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, boolean arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, boolean[] arg1);
-static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, long arg0, long arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, nsID arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int arg0, char[] arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/arg0, char[] arg1, int arg2);
@@ -248,6 +250,5 @@ static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, byte[] arg0, boolean[] arg1, int /*long*/[] arg2);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int arg1, int arg2, int /*long*/ arg3, boolean[] arg4, int /*long*/[] arg5);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int arg3, char[] arg4, byte[] arg5, int /*long*/ arg6, int /*long*/ arg7, int arg8, int /*long*/ arg9, boolean arg10, int /*long*/[] arg11, int /*long*/[] arg12);
-static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1);
static final native int VtblCall(int fnNumber, int /*long*/ ppVtbl, int /*long*/ arg0, int /*long*/ arg1, byte[] arg2);
}