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
This commit is contained in:
Ian Osgood 2006-03-14 10:18:22 -08:00
parent a810d1ffe4
commit 71ddf29d00

View File

@ -1089,6 +1089,12 @@ authorization from the authors.
<xsl:text>)</xsl:text> <xsl:text>)</xsl:text>
</xsl:template> </xsl:template>
<xsl:template match="bit" mode="output-expression">
<xsl:text>(1 &lt;&lt; </xsl:text>
<xsl:value-of select="@bit" />
<xsl:text>)</xsl:text>
</xsl:template>
<xsl:template match="function-call" mode="output-expression"> <xsl:template match="function-call" mode="output-expression">
<xsl:param name="field-prefix" /> <xsl:param name="field-prefix" />
<xsl:value-of select="@name" /> <xsl:value-of select="@name" />