Commit 158c9b6b authored by Ian Osgood's avatar Ian Osgood
Browse files

Generate error constants as XCB_BAD_*, similar to Xlib.

The previous constants remain for compatibility, but should be deprecated.
parent f7279d8c
...@@ -449,6 +449,11 @@ authorization from the authors. ...@@ -449,6 +449,11 @@ authorization from the authors.
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<xsl:choose>
<xsl:when test="self::error|self::errorcopy">
<constant type="number" name="{xcb:xcb-prefix(concat('Bad', @name))}" value="{@number}" />
</xsl:when>
</xsl:choose>
<constant type="number" name="{xcb:xcb-prefix(@name)}" value="{@number}" /> <constant type="number" name="{xcb:xcb-prefix(@name)}" value="{@number}" />
<xsl:choose> <xsl:choose>
<xsl:when test="self::event|self::error"> <xsl:when test="self::event|self::error">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment