diff options
author | Silenio Quarti <silenio> | 2004-11-24 15:08:37 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-11-24 15:08:37 +0000 |
commit | 88f49f6184b3bcc32c5d0621a4182bdc99aedc1a (patch) | |
tree | 344a9d140d1f205c1422b06bfc525d780efa03f3 /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java | |
parent | c91e3af4fa0fb2a3e07fcb8ac172b85146075e0b (diff) | |
download | eclipse.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/org/eclipse/swt/tools/internal/NativesGenerator.java')
-rw-r--r-- | bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java | 4 |
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; |