diff options
author | Ian Osgood <iano@quirkster.com> | 2006-03-14 10:18:22 -0800 |
---|---|---|
committer | Ian Osgood <iano@quirkster.com> | 2006-03-14 10:18:22 -0800 |
commit | 71ddf29d00ad8ff2323faf2cc6c354cbf3eca16c (patch) | |
tree | 4ab7dc475501869fca38a93fbbd1f80511614f13 /src/c-client.xsl | |
parent | a810d1ffe4825b9359f13ebb395f5f681961fc89 (diff) |
Add an expression construct <bit bit="n"/>
for mask enumerations such as CW flags.
Replaces the C-specific use of 1<<n in xproto.xml
Diffstat (limited to 'src/c-client.xsl')
-rw-r--r-- | src/c-client.xsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/c-client.xsl b/src/c-client.xsl index 054d84a..6306a5c 100644 --- a/src/c-client.xsl +++ b/src/c-client.xsl @@ -1089,6 +1089,12 @@ authorization from the authors. <xsl:text>)</xsl:text> </xsl:template> + <xsl:template match="bit" mode="output-expression"> + <xsl:text>(1 << </xsl:text> + <xsl:value-of select="@bit" /> + <xsl:text>)</xsl:text> + </xsl:template> + <xsl:template match="function-call" mode="output-expression"> <xsl:param name="field-prefix" /> <xsl:value-of select="@name" /> |