[Xcb] [PATCH 0/2] xcb: Underscore placement in extension name

Barton C Massey bart at cs.pdx.edu
Tue Apr 10 12:38:15 PDT 2007


Very cool.  Thanks much.  Please feel free to apply these
patches yourself, or let us know if we need to do it.

	Bart

In message <461BE06D.30805 at tycho.nsa.gov> you wrote:
> Patch for libxcb:
> 
> ---
> 
>  c-client.xsl |    8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/c-client.xsl b/src/c-client.xsl
> index 24ffe6c..be6aa30 100644
> --- a/src/c-client.xsl
> +++ b/src/c-client.xsl
> @@ -100,13 +100,13 @@ authorization from the authors.
>        <xsl:if test="/xcb/@extension-name">
>  	<xsl:text>_</xsl:text>
>  	<xsl:choose>
> -	  <xsl:when test="/xcb/@extension-oneword = 'true' or /xcb/@extension-oneword = '1'">
> -	    <xsl:value-of select="translate(/xcb/@extension-name, $ucase, $lcase)"/>
> -	  </xsl:when>
> -	  <xsl:otherwise>
> +	  <xsl:when test="/xcb/@extension-multiword = 'true' or /xcb/@extension-multiword = '1'">
>  	    <xsl:call-template name="camelcase-to-underscore">
>  	      <xsl:with-param name="camelcase" select="/xcb/@extension-name" />
>  	    </xsl:call-template>
> +	  </xsl:when>
> +	  <xsl:otherwise>
> +	    <xsl:value-of select="translate(/xcb/@extension-name, $ucase, $lcase)"/>
>  	  </xsl:otherwise>
>  	</xsl:choose>
>        </xsl:if>
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list