Attempt to eliminate duplicate typedef problems

[SVN r24046]
This commit is contained in:
Douglas Gregor 2004-07-25 18:09:13 +00:00
parent 0921fd67ee
commit ffee4b1775

View File

@ -568,10 +568,14 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:when> </xsl:when>
<xsl:when test="@kind='typedef'"> <xsl:when test="@kind='typedef'">
<xsl:apply-templates/> <xsl:apply-templates>
<xsl:with-param name="in-file" select="$in-file"/>
</xsl:apply-templates>
</xsl:when> </xsl:when>
<xsl:when test="@kind='var'"> <xsl:when test="@kind='var'">
<xsl:apply-templates/> <xsl:apply-templates>
<xsl:with-param name="in-file" select="$in-file"/>
</xsl:apply-templates>
</xsl:when> </xsl:when>
<xsl:when test="@kind='enum'"> <xsl:when test="@kind='enum'">
<xsl:apply-templates> <xsl:apply-templates>
@ -603,7 +607,9 @@ Cannot handle sectiondef with kind=<xsl:value-of select="@kind"/>
<xsl:when test="contains(briefdescription/para, 'INTERNAL ONLY')"/> <xsl:when test="contains(briefdescription/para, 'INTERNAL ONLY')"/>
<xsl:when test="@kind='typedef'"> <xsl:when test="@kind='typedef'">
<xsl:call-template name="typedef"/> <xsl:call-template name="typedef">
<xsl:with-param name="in-file" select="$in-file"/>
</xsl:call-template>
</xsl:when> </xsl:when>
<xsl:when test="@kind='function'"> <xsl:when test="@kind='function'">
<xsl:choose> <xsl:choose>
@ -671,18 +677,22 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<!-- Display typedefs --> <!-- Display typedefs -->
<xsl:template name="typedef"> <xsl:template name="typedef">
<!-- TBD: Handle public/protected/private --> <xsl:param name="in-file" select="''"/>
<typedef>
<!-- Name of the type --> <xsl:if test="contains(string(location/attribute::file), $in-file)">
<xsl:attribute name="name"> <!-- TBD: Handle public/protected/private -->
<xsl:value-of select="name/text()"/> <typedef>
</xsl:attribute> <!-- Name of the type -->
<xsl:attribute name="name">
<xsl:apply-templates select="briefdescription" mode="passthrough"/> <xsl:value-of select="name/text()"/>
<xsl:apply-templates select="detaileddescription" mode="passthrough"/> </xsl:attribute>
<type><xsl:apply-templates select="type"/></type> <xsl:apply-templates select="briefdescription" mode="passthrough"/>
</typedef> <xsl:apply-templates select="detaileddescription" mode="passthrough"/>
<type><xsl:apply-templates select="type"/></type>
</typedef>
</xsl:if>
</xsl:template> </xsl:template>
<!-- Handle function parameters --> <!-- Handle function parameters -->