diff options
author | Silenio Quarti | 2008-09-03 21:48:05 +0000 |
---|---|---|
committer | Silenio Quarti | 2008-09-03 21:48:05 +0000 |
commit | dc4aa59769f829616ce11ad273c699d0b435a810 (patch) | |
tree | bef740fb0d69212b9848581a574ab438cb3a0c7d | |
parent | 0ae5aa175278ef7b0d5b4051913dbbb674057698 (diff) | |
download | eclipse.platform.swt-dc4aa59769f829616ce11ad273c699d0b435a810.tar.gz eclipse.platform.swt-dc4aa59769f829616ce11ad273c699d0b435a810.tar.xz eclipse.platform.swt-dc4aa59769f829616ce11ad273c699d0b435a810.zip |
*** empty log message ***
-rw-r--r-- | bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java index 86e4334d14..d5729ce402 100644 --- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java +++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java @@ -1385,13 +1385,17 @@ void generateFunctions() { NamedNodeMap paramAttributes = param.getAttributes(); out(" * @param "); out(paramAttributes.getNamedItem("name").getNodeValue()); - out(" cast="); - Node declaredType = paramAttributes.getNamedItem("declared_type"); - String cast = declaredType.getNodeValue(); - if (!cast.startsWith("(")) out("("); - out(cast); - if (!cast.endsWith(")")) out(")"); - outln(); + if (isStruct(param)) { + out(" flags=struct"); + } else { + out(" cast="); + Node declaredType = paramAttributes.getNamedItem("declared_type"); + String cast = declaredType.getNodeValue(); + if (!cast.startsWith("(")) out("("); + out(cast); + if (!cast.endsWith(")")) out(")"); + outln(); + } } } if (count > 0) { |