Changeset 79360 in vbox for trunk/src/VBox/Main/glue/constants-python.xsl
- Timestamp:
- Jun 26, 2019 1:49:48 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131592
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/constants-python.xsl
r60463 r79360 25 25 encoding="utf-8" 26 26 indent="no"/> 27 28 <xsl:param name="g_sErrHFile"/> 27 29 28 30 <xsl:template match="/"> … … 69 71 self.__fIsSym = fIsSym 70 72 71 __dValues = {</xsl:text> 73 # iprt/err.h + VBox/err.h constants: 74 __dVBoxStatuses = {</xsl:text> 75 <xsl:value-of select="document($g_sErrHFile)"/> 72 76 77 <xsl:text disable-output-escaping="yes"><![CDATA[ 78 } 79 80 __dValues = {]]></xsl:text> 73 81 <xsl:for-each select="//enum"> 74 82 <xsl:text> … … 83 91 },</xsl:text> 84 92 </xsl:for-each> 85 <!-- hack alert: force new output element to avoid large reallocations.-->93 <!-- VBox status codes: --> 86 94 <xsl:text disable-output-escaping="yes"><![CDATA[ 95 # iprt/err.h + VBox/err.h constants: 96 'VBoxStatus': __dVBoxStatuses, 87 97 } 88 98 … … 104 114 } 105 115 106 __dValuesFlat = {]]></xsl:text>116 __dValuesFlat = dict({]]></xsl:text> 107 117 <xsl:for-each select="//enum"> 108 118 <xsl:variable name="ename"> … … 124 134 <xsl:value-of select="@value"/><xsl:text>,</xsl:text> 125 135 </xsl:for-each> 136 126 137 <!-- hack alert: force new output element to avoid large reallocations. --> 127 138 <xsl:text> 128 } 139 }, **__dVBoxStatuses) 129 140 130 141 __dValuesFlatSym = {</xsl:text>
Note:
See TracChangeset
for help on using the changeset viewer.