projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dd932e0
)
Declare arguments const in the various structure accessors, so XCBGetSetup is not...
author
Jamey Sharp
<jamey@minilop.net>
Thu, 27 Apr 2006 17:34:22 +0000
(10:34 -0700)
committer
Jamey Sharp
<jamey@minilop.net>
Thu, 27 Apr 2006 17:34:22 +0000
(10:34 -0700)
src/c-client.xsl
patch
|
blob
|
history
diff --git
a/src/c-client.xsl
b/src/c-client.xsl
index
56dbaac
..
6049bac
100644
(file)
--- a/
src/c-client.xsl
+++ b/
src/c-client.xsl
@@
-711,7
+711,7
@@
authorization from the authors.
/*[self::valueparam or self::list]" />
<xsl:if test="not($is-variable)">
<function type="{@type} *" name="{$ref}{$field-name}">
/*[self::valueparam or self::list]" />
<xsl:if test="not($is-variable)">
<function type="{@type} *" name="{$ref}{$field-name}">
- <field type="{$ref}{$kind} *" name="R" />
+ <field type="
const
{$ref}{$kind} *" name="R" />
<xsl:choose>
<xsl:when test="$is-first">
<l>return (<xsl:value-of select="@type" /> *) <!--
<xsl:choose>
<xsl:when test="$is-first">
<l>return (<xsl:value-of select="@type" /> *) <!--
@@
-728,7
+728,7
@@
authorization from the authors.
</function>
</xsl:if>
<function type="int" name="{$ref}{$field-name}Length">
</function>
</xsl:if>
<function type="int" name="{$ref}{$field-name}Length">
- <field type="{$ref}{$kind} *" name="R" />
+ <field type="
const
{$ref}{$kind} *" name="R" />
<l>return <xsl:apply-templates mode="output-expression">
<xsl:with-param name="field-prefix" select="'R->'" />
</xsl:apply-templates>;</l>
<l>return <xsl:apply-templates mode="output-expression">
<xsl:with-param name="field-prefix" select="'R->'" />
</xsl:apply-templates>;</l>
@@
-736,7
+736,7
@@
authorization from the authors.
<xsl:choose>
<xsl:when test="substring(@type, 1, 3) = 'XCB'">
<function type="{@type}Iter" name="{$ref}{$field-name}Iter">
<xsl:choose>
<xsl:when test="substring(@type, 1, 3) = 'XCB'">
<function type="{@type}Iter" name="{$ref}{$field-name}Iter">
- <field type="{$ref}{$kind} *" name="R" />
+ <field type="
const
{$ref}{$kind} *" name="R" />
<l><xsl:value-of select="@type" />Iter i;</l>
<xsl:choose>
<xsl:when test="$is-first">
<l><xsl:value-of select="@type" />Iter i;</l>
<xsl:choose>
<xsl:when test="$is-first">
@@
-766,7
+766,7
@@
authorization from the authors.
</xsl:choose>
</xsl:variable>
<function type="XCBGenericIter" name="{$ref}{$field-name}End">
</xsl:choose>
</xsl:variable>
<function type="XCBGenericIter" name="{$ref}{$field-name}End">
- <field type="{$ref}{$kind} *" name="R" />
+ <field type="
const
{$ref}{$kind} *" name="R" />
<l>XCBGenericIter i;</l>
<xsl:choose>
<xsl:when test="$is-first">
<l>XCBGenericIter i;</l>
<xsl:choose>
<xsl:when test="$is-first">