summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Program
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2004-11-30 23:07:50 +0000
committerGrant Gayed <ggayed>2004-11-30 23:07:50 +0000
commit3011b9a75e93091d5b3ae4f3963d710dc7d37521 (patch)
tree95447d695e1aa50b02e6b42517ecb5dd20e0ebed /bundles/org.eclipse.swt/Eclipse SWT Program
parentcc305b2cc7defe8501d6405cdfda2c24878eaa6e (diff)
downloadeclipse.platform.swt-3011b9a75e93091d5b3ae4f3963d710dc7d37521.tar.gz
eclipse.platform.swt-3011b9a75e93091d5b3ae4f3963d710dc7d37521.tar.xz
eclipse.platform.swt-3011b9a75e93091d5b3ae4f3963d710dc7d37521.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde.c12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.c5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.h1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/DtActionArg.java4
5 files changed, 21 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde.c b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde.c
index 1197637903..f6768e37fb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde.c
@@ -15,6 +15,18 @@
#define CDE_NATIVE(func) Java_org_eclipse_swt_internal_cde_CDE_##func
+#ifndef NO_DtActionArg_1sizeof
+JNIEXPORT jint JNICALL CDE_NATIVE(DtActionArg_1sizeof)
+ (JNIEnv *env, jclass that)
+{
+ jint rc = 0;
+ CDE_NATIVE_ENTER(env, that, DtActionArg_1sizeof_FUNC);
+ rc = (jint)DtActionArg_sizeof();
+ CDE_NATIVE_EXIT(env, that, DtActionArg_1sizeof_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1DtActionInvoke
JNIEXPORT jint JNICALL CDE_NATIVE(_1DtActionInvoke)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jobject arg2, jint arg3, jbyteArray arg4, jbyteArray arg5, jbyteArray arg6, jint arg7, jint arg8, jint arg9)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.c b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.c
index 775f7a3165..1a043d0568 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.c
@@ -14,9 +14,10 @@
#ifdef NATIVE_STATS
-int CDE_nativeFunctionCount = 18;
-int CDE_nativeFunctionCallCount[18];
+int CDE_nativeFunctionCount = 19;
+int CDE_nativeFunctionCallCount[19];
char * CDE_nativeFunctionNames[] = {
+ "DtActionArg_1sizeof",
"_1DtActionInvoke",
"_1DtAppInitialize",
"_1DtDbLoad",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.h b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.h
index 8f371db890..ed4b290325 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/library/cde_stats.h
@@ -21,6 +21,7 @@ extern char* CDE_nativeFunctionNames[];
#endif
typedef enum {
+ DtActionArg_1sizeof_FUNC,
_1DtActionInvoke_FUNC,
_1DtAppInitialize_FUNC,
_1DtDbLoad_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java
index f550467642..90d8ee44e4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java
@@ -20,6 +20,9 @@ public class CDE extends Platform {
public static final String DtDTS_DA_ICON = "ICON";
public static final String DtDTS_DA_MIME_TYPE = "MIME_TYPE";
public static final String DtDTS_DA_NAME_TEMPLATE = "NAME_TEMPLATE";
+
+ /** 64 bit */
+ public static final native int DtActionArg_sizeof();
/** Natives */
public static final native boolean _DtAppInitialize(int /*long*/ appContext, int /*long*/ display, int /*long*/ topWiget, byte[] appName, byte[] appClass);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/DtActionArg.java b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/DtActionArg.java
index 49cbeafe85..370b8fc339 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/DtActionArg.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/DtActionArg.java
@@ -13,6 +13,6 @@ package org.eclipse.swt.internal.cde;
public class DtActionArg {
public int argClass;
- public int name;
- public static final int sizeof = 24;
+ public int /*long*/ name;
+ public static final int sizeof = CDE.DtActionArg_sizeof();
}