Skip to content

Commit

Permalink
declare elements that have a default value accordingly
Browse files Browse the repository at this point in the history
They have different internals that should be made public
  • Loading branch information
robUx4 committed Jan 1, 2024
1 parent 6ed5512 commit 80217c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spectool/schema_2_kaxsemantic_h.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,27 @@ namespace libmatroska {
</xsl:when>
<xsl:when test="@type='uinteger'">
<xsl:text>DECLARE_MKX_UINTEGER</xsl:text>
<xsl:if test="@default and (number(@default)=number(@default))"><xsl:text>_DEF</xsl:text></xsl:if>
</xsl:when>
<xsl:when test="@type='integer'">
<xsl:text>DECLARE_MKX_SINTEGER</xsl:text>
<xsl:if test="@default and (number(@default)=number(@default))"><xsl:text>_DEF</xsl:text></xsl:if>
</xsl:when>
<xsl:when test="@type='utf-8'">
<xsl:text>DECLARE_MKX_UNISTRING</xsl:text>
<xsl:if test="@default"><xsl:text>_DEF</xsl:text></xsl:if>
</xsl:when>
<xsl:when test="@type='string'">
<xsl:text>DECLARE_MKX_STRING</xsl:text>
<xsl:if test="@default"><xsl:text>_DEF</xsl:text></xsl:if>
</xsl:when>
<xsl:when test="@type='float'">
<xsl:text>DECLARE_MKX_FLOAT</xsl:text>
<xsl:if test="@default and starts-with(@default,'0x')"><xsl:text>_DEF</xsl:text></xsl:if>
</xsl:when>
<xsl:when test="@type='date'">
<xsl:text>DECLARE_MKX_DATE</xsl:text>
<xsl:if test="@default and (number(@default)=number(@default))"><xsl:text>_DEF</xsl:text></xsl:if>
</xsl:when>
</xsl:choose>
<xsl:text>(Kax</xsl:text>
Expand Down

0 comments on commit 80217c9

Please sign in to comment.