[Xcb-commit] src

Josh Triplett josh at kemper.freedesktop.org
Sat Oct 7 00:15:29 PDT 2006


 src/c-client.xsl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

New commits:
diff-tree 16ec51397e0711526457709605cf6b5ebf00b5e2 (from 7b786bd8f34e67617beda4f952a5a636a370396a)
Author: Josh Triplett <josh at freedesktop.org>
Date:   Sat Oct 7 00:14:50 2006 -0700

    Handle "xidunion" instead of "union" for XID unions like DRAWABLE and FONTABLE

diff --git a/src/c-client.xsl b/src/c-client.xsl
index 4a7b50e..9fd9ccc 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -270,8 +270,8 @@ authorization from the authors.
         <xsl:variable name="type-definitions"
                       select="(/xcb|document($search-path)/xcb
                               )[$is-unqualified or @header=$namespace]
-                               /*[((self::struct or self::union
-                                    or self::xidtype or self::enum
+                               /*[((self::struct or self::union or self::enum
+                                    or self::xidtype or self::xidunion
                                     or self::event or self::eventcopy
                                     or self::error or self::errorcopy)
                                    and @name=$unqualified-type)
@@ -403,7 +403,7 @@ authorization from the authors.
     </xsl:if>
   </xsl:template>
 
-  <xsl:template match="xidtype" mode="pass1">
+  <xsl:template match="xidtype|xidunion" mode="pass1">
     <typedef oldname="uint32_t" newname="{xcb:xcb-prefix(@name)}_t" />
     <iterator ref="{xcb:xcb-prefix(@name)}" />
     <iterator-functions ref="{xcb:xcb-prefix(@name)}" />


More information about the xcb-commit mailing list