summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-10-07 01:27:03 -0700
committerJamey Sharp <jamey@minilop.net>2006-10-07 01:27:03 -0700
commitdd5ece606587d3e41058df803ab1804654195bbb (patch)
tree4e9f7ba8d5b69392a580b8adc7077a6595da0983 /src
parent16ec51397e0711526457709605cf6b5ebf00b5e2 (diff)
Declare "struct foo" or "enum foo" as well as the typedef'd name "foo".
Diffstat (limited to 'src')
-rw-r--r--src/c-client.xsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/c-client.xsl b/src/c-client.xsl
index 9fd9ccc..406e9b6 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -1077,6 +1077,8 @@ authorization from the authors.
</xsl:variable>
<xsl:text>typedef </xsl:text>
<xsl:if test="not(@kind)">struct</xsl:if><xsl:value-of select="@kind" />
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@name" />
<xsl:text> {
</xsl:text>
<xsl:for-each select="exprfield|field|list[@fixed]|pad">
@@ -1097,7 +1099,9 @@ authorization from the authors.
<xsl:template match="enum" mode="output">
<xsl:if test="$h">
- <xsl:text>typedef enum {
+ <xsl:text>typedef enum </xsl:text>
+ <xsl:value-of select="@name" />
+ <xsl:text> {
</xsl:text>
<xsl:call-template name="list">
<xsl:with-param name="separator"><xsl:text>,