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:
parent
a810d1ffe4
commit
71ddf29d00
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue