Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2008-09-03 21:48:05 +0000
committerSilenio Quarti2008-09-03 21:48:05 +0000
commitdc4aa59769f829616ce11ad273c699d0b435a810 (patch)
treebef740fb0d69212b9848581a574ab438cb3a0c7d
parent0ae5aa175278ef7b0d5b4051913dbbb674057698 (diff)
downloadeclipse.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.java18
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) {

Back to the top