[mm-common] Include friend members in Devhelp index
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mm-common] Include friend members in Devhelp index
- Date: Wed, 6 Jan 2010 06:37:13 +0000 (UTC)
commit 60fffc2ec67657ab832d958a6a7e7acc944574ec
Author: Daniel Elstner <daniel kitta gmail com>
Date: Wed Jan 6 06:58:46 2010 +0100
Include friend members in Devhelp index
* util/tagfile-to-devhelp2.xsl (keyword-list): Treat kind "friend" as
a synonym for kind "function", so that friend members are included in
the Devhelp keyword list.
util/tagfile-to-devhelp2.xsl | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/util/tagfile-to-devhelp2.xsl b/util/tagfile-to-devhelp2.xsl
index 0eb145a..35b129c 100644
--- a/util/tagfile-to-devhelp2.xsl
+++ b/util/tagfile-to-devhelp2.xsl
@@ -111,8 +111,11 @@
<xsl:apply-templates select="member" mode="keyword-list"/>
</xsl:template>
<!-- Match leaf compound members -->
- <xsl:template match="member[ kind='function' or @kind='typedef']" mode="keyword-list">
- <keyword type="{ kind}" xsl:use-attribute-sets="keyword-member"/>
+ <xsl:template match="member[ kind='typedef']" mode="keyword-list">
+ <keyword type="typedef" xsl:use-attribute-sets="keyword-member"/>
+ </xsl:template>
+ <xsl:template match="member[ kind='function' or @kind='friend']" mode="keyword-list">
+ <keyword type="function" xsl:use-attribute-sets="keyword-member"/>
</xsl:template>
<xsl:template match="member[ kind='enumeration']" mode="keyword-list">
<keyword type="enum" xsl:use-attribute-sets="keyword-member"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]