summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSilenio Quarti2013-02-21 14:58:53 (EST)
committer Lakshmi Shanmugam2013-02-28 03:26:11 (EST)
commit3d6911d77dc2e8c782862689ec330e7b8da14a0d (patch)
treec4a56d9f35b6b6c23c86e32660e860cd691967fb
parent0798097c49f4ae15711e6eccbd25cefbe89e41a6 (diff)
downloadeclipse.platform.swt-3d6911d77dc2e8c782862689ec330e7b8da14a0d.zip
eclipse.platform.swt-3d6911d77dc2e8c782862689ec330e7b8da14a0d.tar.gz
eclipse.platform.swt-3d6911d77dc2e8c782862689ec330e7b8da14a0d.tar.bz2
handle call function with multiple return types. detect if native starts with callFunc
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java2
1 files changed, 1 insertions, 1 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 5994f9d..9a2ac1f 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
@@ -686,7 +686,7 @@ void generateFunctionCall(JNIMethod method, JNIParameter[] params, JNIType retur
outputln("if (STRUCT_SIZE_LIMIT == 0) {");
output("\t\t");
}
- if (name.equalsIgnoreCase("call")) {
+ if (name.equalsIgnoreCase("call") || name.startsWith("callFunc")) {
output("(");
String cast = params[0].getCast();
if (cast.length() != 0 && !cast.equals("()")) {