Commit 8423b619 authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

introduce carray for arrays without a variable length

doesn't do anything interesting yet
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 9f92ac1e
...@@ -295,6 +295,7 @@ ...@@ -295,6 +295,7 @@
s_decoded.i_text_length = 0; s_decoded.i_text_length = 0;
</begin> </begin>
</insert> </insert>
<carray name="i_iso_639_code" />
<array name="i_event_name" len_name="i_event_name_length" min_size="0" max_size="248" /> <array name="i_event_name" len_name="i_event_name_length" min_size="0" max_size="248" />
</descriptor> </descriptor>
......
...@@ -101,6 +101,9 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix" ...@@ -101,6 +101,9 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
<xsl:template match="array" mode="init"> <xsl:template match="array" mode="init">
BOZO_init_array(<xsl:value-of select="@len_name" />);</xsl:template> BOZO_init_array(<xsl:value-of select="@len_name" />);</xsl:template>
<xsl:template match="carray" mode="init">
BOZO_fill_array(s_decoded.<xsl:value-of select="@name"/>, sizeof(s_decoded.<xsl:value-of select="@name"/>));</xsl:template>
<xsl:template match="insert" mode="init"> <xsl:template match="insert" mode="init">
<xsl:value-of select="begin" /> <xsl:value-of select="begin" />
</xsl:template> </xsl:template>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment