VirtualBox

Changeset 6875 in vbox


Ignore:
Timestamp:
Feb 10, 2008 2:37:24 PM (17 years ago)
Author:
vboxsync
Message:

Main: Updated Doxygen XSL to properly suffix array parameters with [].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/doxygen.xsl

    r5999 r6875  
    77
    88     Copyright (C) 2006-2007 innotek GmbH
    9    
     9
    1010     This file is part of VirtualBox Open Source Edition (OSE), as
    1111     available from http://www.virtualbox.org. This file is free software;
     
    393393-->
    394394<xsl:template match="interface//attribute | collection//attribute">
     395  <xsl:if test="@array">
     396      <xsl:message terminate="yes">
     397          <xsl:value-of select="concat(../../@name,'::',../@name,'::',@name,': ')"/>
     398          <xsl:text>'array' attributes are not supported, use 'safearray="yes"' instead.</xsl:text>
     399      </xsl:message>
     400  </xsl:if>
    395401    <xsl:apply-templates select="@if" mode="begin"/>
    396402    <xsl:apply-templates select="desc"/>
     
    526532            <xsl:message terminate="yes">
    527533                <xsl:value-of select="concat(../../@name,'::',../@name,'::',@name,': ')"/>
    528                 <xsl:text>return array parameters are not currently supported</xsl:text>
     534                <xsl:text>return 'array' parameters are not supported, use 'safearray="yes"' instead.</xsl:text>
    529535            </xsl:message>
    530536        </xsl:if>
     
    580586    <xsl:variable name="self_target" select="current()/ancestor::if/@target"/>
    581587
     588    <xsl:if test="../@array and ../@safearray='yes'">
     589        <xsl:message terminate="yes">
     590            <xsl:value-of select="concat(../../../@name,'::',../../@name,'::',../@name,': ')"/>
     591            <xsl:text>either 'array' or 'safearray="yes"' attribute is allowed, but not both!</xsl:text>
     592        </xsl:message>
     593    </xsl:if>
     594
    582595    <xsl:choose>
    583596        <!-- modifiers (ignored for 'enumeration' attributes)-->
    584597        <xsl:when test="name(current())='type' and ../@mod">
    585             <xsl:if test="../@array">
    586                 <xsl:message terminate="yes">
    587                         <xsl:value-of select="concat(../../../@name,'::',../../@name,'::',../@name,': ')"/>
    588                     <xsl:text>either 'array' or 'mod' attribute is allowed, but not both!</xsl:text>
    589                 </xsl:message>
    590             </xsl:if>
    591598            <xsl:choose>
    592599                <xsl:when test="../@mod='ptr'">
     
    683690        </xsl:otherwise>
    684691    </xsl:choose>
     692  <xsl:if test="../@safearray='yes'">
     693    <xsl:text>[]</xsl:text>
     694  </xsl:if>
    685695</xsl:template>
    686696
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette