projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
16ec513
)
Declare "struct foo" or "enum foo" as well as the typedef'd name "foo".
author
Jamey Sharp
<jamey@minilop.net>
Sat, 7 Oct 2006 08:27:03 +0000
(
01:27
-0700)
committer
Jamey Sharp
<jamey@minilop.net>
Sat, 7 Oct 2006 08:27:03 +0000
(
01:27
-0700)
src/c-client.xsl
patch
|
blob
|
history
diff --git
a/src/c-client.xsl
b/src/c-client.xsl
index
9fd9ccc
..
406e9b6
100644
(file)
--- 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: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">
<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: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>,
</xsl:text>
<xsl:call-template name="list">
<xsl:with-param name="separator"><xsl:text>,