VirtualBox

Changeset 53885 in vbox


Ignore:
Timestamp:
Jan 21, 2015 2:57:33 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97725
Message:

micro opts.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r53884 r53885  
    11891189        $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL)
    11901190        $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
    1191         $(QUIET)kmk_time $(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
     1191        $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
    11921192                --stringparam generating "headers" \
    11931193                --stringparam filelistonly "" \
     
    12051205        $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL))
    12061206        $(QUIET)$(RM) -f -- "$@" "[email protected]"
    1207         $(QUIET)kmk_time $(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
     1207        $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
    12081208                --stringparam generating "dtrace-probes" \
    12091209                --stringparam filelistonly "" \
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r53883 r53885  
    479479            <xsl:value-of select="$dtracetypefield"/>
    480480        </xsl:when>
     481        <xsl:when test="$type='$unknown'">
     482            <!-- <xsl:text>struct IUnknown *</xsl:text> -->
     483            <xsl:text>void *</xsl:text>
     484        </xsl:when>
    481485        <xsl:when test="//enum[@name=$type]">
    482486            <!-- <xsl:value-of select="concat($type, '_T')"/> - later we can emit enums into dtrace the library -->
    483487            <xsl:text>int</xsl:text>
    484         </xsl:when>
    485         <xsl:when test="$type='$unknown'">
    486             <!-- <xsl:text>struct IUnknown *</xsl:text> -->
    487             <xsl:text>void *</xsl:text>
    488488        </xsl:when>
    489489        <xsl:when test="//interface[@name=$type]">
     
    610610        </xsl:call-template>
    611611    </xsl:variable>
     612    <xsl:variable name="lastchar">
     613        <xsl:value-of select="substring($wraptype, string-length($wraptype))"/>
     614    </xsl:variable>
    612615
    613616    <xsl:choose>
     
    618621            <xsl:text>std::vector&lt;</xsl:text>
    619622            <xsl:choose>
    620                 <xsl:when test="substring($wraptype,string-length($wraptype))='&amp;'">
     623                <xsl:when test="$lastchar = '&amp;'">
    621624                    <xsl:variable name="wraptype2">
    622                         <xsl:value-of select="substring($wraptype,1,string-length($wraptype)-2)"/>
     625                        <xsl:value-of select="substring($wraptype, 1, string-length($wraptype)-2)"/>
    623626                    </xsl:variable>
    624 
    625                     <xsl:choose>
    626                         <xsl:when test="substring($wraptype2,string-length($wraptype2))='&gt;'">
    627                             <xsl:value-of select="concat($wraptype2, ' ')"/>
    628                         </xsl:when>
    629                         <xsl:otherwise>
    630                             <xsl:value-of select="$wraptype2"/>
    631                         </xsl:otherwise>
    632                     </xsl:choose>
    633                 </xsl:when>
    634                 <xsl:when test="substring($wraptype,string-length($wraptype))='&gt;'">
     627                    <xsl:value-of select="$wraptype2"/>
     628                    <xsl:if test="substring($wraptype2,string-length($wraptype2)) = '&gt;'">
     629                        <xsl:text> </xsl:text>
     630                    </xsl:if>
     631                </xsl:when>
     632                <xsl:when test="lastchar = '&gt;'">
    635633                    <xsl:value-of select="concat($wraptype, ' ')"/>
    636634                </xsl:when>
     
    643641        <xsl:otherwise>
    644642            <xsl:value-of select="$wraptype"/>
    645             <xsl:if test="substring($wraptype,string-length($wraptype))!='&amp;'">
    646                 <xsl:if test="substring($wraptype,string-length($wraptype))!='*'">
     643            <xsl:if test="$lastchar != '&amp;'">
     644                <xsl:if test="$lastchar != '*'">
    647645                    <xsl:text> </xsl:text>
    648646                </xsl:if>
     
    863861    <xsl:variable name="type" select="."/>
    864862    <xsl:choose>
    865         <xsl:when test="$type = 'wstring' or $type = '$unknown' or $type = 'uuid' or ../@safearray = 'yes'">
     863        <xsl:when test="$type = 'wstring' or $type = '$unknown' or $type = 'uuid'">
     864            <xsl:text>yes</xsl:text>
     865        </xsl:when>
     866        <xsl:when test="$type = 'boolean' or $type = 'long' or $type = 'long' or $type = 'long long'"/>
     867        <xsl:when test="../@safearray = 'yes'">
    866868            <xsl:text>yes</xsl:text>
    867869        </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.

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