Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2004-11-24 15:08:37 +0000
committerSilenio Quarti2004-11-24 15:08:37 +0000
commit88f49f6184b3bcc32c5d0621a4182bdc99aedc1a (patch)
tree344a9d140d1f205c1422b06bfc525d780efa03f3 /bundles/org.eclipse.swt.tools/JNI Generation
parentc91e3af4fa0fb2a3e07fcb8ac172b85146075e0b (diff)
downloadeclipse.platform.swt-88f49f6184b3bcc32c5d0621a4182bdc99aedc1a.tar.gz
eclipse.platform.swt-88f49f6184b3bcc32c5d0621a4182bdc99aedc1a.tar.xz
eclipse.platform.swt-88f49f6184b3bcc32c5d0621a4182bdc99aedc1a.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
index 2f665bc4c2..d4f22bf109 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
@@ -638,6 +638,10 @@ void generateFunctionCall(Method method, MethodData methodData, Class[] paramTyp
String cast = paramData.getCast();
if (cast.length() != 0 && !cast.equals("()")) {
output(cast);
+ } else {
+ output("(");
+ output(name.substring(0, name.indexOf("_")));
+ output(" *)");
}
outputln("arg0;");
return;

Back to the top