summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2007-04-13 15:14:12 -0700
committerIan Osgood <iano@quirkster.com>2007-04-13 15:14:12 -0700
commit158c9b6ba18b39f424bd524fceb66f3fec0d1616 (patch)
treec866bddec0c89151570f28c202d77579b2be95e1 /src
parentf7279d8c8ae33d6e3029e85b14ed8495d3b00e30 (diff)
Generate error constants as XCB_BAD_*, similar to Xlib.
The previous constants remain for compatibility, but should be deprecated.
Diffstat (limited to 'src')
-rw-r--r--src/c-client.xsl5
1 files changed, 5 insertions, 0 deletions
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">