depgen: Include enum constants as typedef dependencies

This ensures that they are compiled into the `consts' object.

* src/current/include/depgen.xsl (preproc:depgen)[lv:typedef]: Include
  `lv:enum/lv:item/@name' as dependencies.
master v2.10.3
Mike Gerwitz 2018-02-28 15:29:49 -05:00
parent b70cbb9eae
commit abca20b02d
1 changed files with 5 additions and 0 deletions

View File

@ -535,6 +535,11 @@
<xsl:for-each select="lv:union/lv:typedef">
<preproc:sym-ref name="{@name}" />
</xsl:for-each>
<!-- and each of the constants generated by our type -->
<xsl:for-each select="lv:enum/lv:item">
<preproc:sym-ref name="{@name}" />
</xsl:for-each>
</xsl:template>