diff options
author | Felipe Heidrich | 2010-02-25 19:36:25 +0000 |
---|---|---|
committer | Felipe Heidrich | 2010-02-25 19:36:25 +0000 |
commit | 8510fb925564d40c44c548c85b8662dfa30bca39 (patch) | |
tree | e8fb9c3be040226d988f85722ccb31cc380195e9 /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java | |
parent | b21a5d636eb67fa304d8fdc4f42d1dce6bbb3699 (diff) | |
download | eclipse.platform.swt-8510fb925564d40c44c548c85b8662dfa30bca39.tar.gz eclipse.platform.swt-8510fb925564d40c44c548c85b8662dfa30bca39.tar.xz eclipse.platform.swt-8510fb925564d40c44c548c85b8662dfa30bca39.zip |
new flag to allow a primitive array type to represent a struct inside of a struct
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java')
-rw-r--r-- | bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java index 067aaceba4..bbe9754a05 100644 --- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java +++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/StructsGenerator.java @@ -359,8 +359,12 @@ void generateGetFields(JNIClass clazz) { output(")"); } output(", ("); - output(type.getTypeSignature4(!type.equals(type64), false)); - output(")lpStruct->"); + output(type.getTypeSignature4(!type.equals(type64), false)); + output(")"); + if (field.getFlag(FLAG_STRUCT)) { + output("&"); + } + output("lpStruct->"); output(accessor); outputln(");"); output("\t}"); @@ -509,7 +513,11 @@ void generateSetFields(JNIClass clazz) { } output(", ("); output(type.getTypeSignature4(!type.equals(type64), false)); - output(")lpStruct->"); + output(")"); + if (field.getFlag(FLAG_STRUCT)) { + output("&"); + } + output("lpStruct->"); output(accessor); outputln(");"); output("\t}"); |