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: Jean-Paul Saman's avatarJean-Paul Saman <jpsaman@videolan.org>
parent 9f92ac1e
......@@ -295,6 +295,7 @@
s_decoded.i_text_length = 0;
</begin>
</insert>
<carray name="i_iso_639_code" />
<array name="i_event_name" len_name="i_event_name_length" min_size="0" max_size="248" />
</descriptor>
......
......@@ -101,6 +101,9 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
<xsl:template match="array" mode="init">
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:value-of select="begin" />
</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