VirtualBox

Changeset 53919 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jan 22, 2015 2:59:01 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97792
Message:

glue/constants-python.xsl: try convince xsltproc to not realloc the output all the time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/constants-python.xsl

    r47125 r53919  
    7474        },</xsl:text>
    7575    </xsl:for-each>
    76     <xsl:text>
     76    <!-- hack alert: force new output element to avoid large reallocations. -->
     77    <xsl:text disable-output-escaping="yes"><![CDATA[
    7778    }
    7879
    79     __dValuesSym = {</xsl:text>
     80    __dValuesSym = {]]></xsl:text>
    8081    <xsl:for-each select="//enum">
    8182        <xsl:text>
     
    9091        },</xsl:text>
    9192    </xsl:for-each>
    92 <xsl:text>
     93    <!-- hack alert: force new output element to avoid large reallocations. -->
     94    <xsl:text disable-output-escaping="yes"><![CDATA[
    9395    }
    9496
    95     __dValuesFlat = {</xsl:text>
     97    __dValuesFlat = {]]></xsl:text>
    9698    <xsl:for-each select="//enum">
    9799        <xsl:variable name="ename">
     
    105107        </xsl:for-each>
    106108    </xsl:for-each>
    107     <xsl:text>
    108         # Result constants:</xsl:text>
     109    <!-- hack alert: force new output element to avoid large reallocations. -->
     110    <xsl:text disable-output-escaping="yes"><![CDATA[
     111        # Result constants:]]></xsl:text>
    109112    <xsl:for-each select="//result[@value]">
    110113        <xsl:text>
     
    112115        <xsl:value-of select="@value"/><xsl:text>,</xsl:text>
    113116    </xsl:for-each>
    114 <xsl:text>
     117    <!-- hack alert: force new output element to avoid large reallocations. -->
     118    <xsl:text>
    115119    }
    116120
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