[Xcb-commit] src
Ian Osgood
iano at kemper.freedesktop.org
Fri Apr 13 15:14:13 PDT 2007
src/c-client.xsl | 5 +++++
1 files changed, 5 insertions(+)
New commits:
diff-tree 158c9b6ba18b39f424bd524fceb66f3fec0d1616 (from f7279d8c8ae33d6e3029e85b14ed8495d3b00e30)
Author: Ian Osgood <iano at quirkster.com>
Date: Fri Apr 13 15:14:12 2007 -0700
Generate error constants as XCB_BAD_*, similar to Xlib.
The previous constants remain for compatibility, but should be deprecated.
diff --git a/src/c-client.xsl b/src/c-client.xsl
index be6aa30..c90e94f 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -449,6 +449,11 @@ authorization from the authors.
</xsl:when>
</xsl:choose>
</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}" />
<xsl:choose>
<xsl:when test="self::event|self::error">
More information about the xcb-commit
mailing list