summary: Handle duplicate l:dep symbols during lookup

This is a linker bug that I don't have time to debug at the
moment.  Hopefully the linker will be re-written in Scheme sometime in the
near future anyway.

* src/current/summary.xsl (preproc:sym-lookup): Take first result of symbol
  lookup.
master
Mike Gerwitz 2017-12-19 14:25:45 -05:00
parent 62c4ce402c
commit 60c01b22ba
1 changed files with 3 additions and 1 deletions

View File

@ -2244,7 +2244,9 @@
<xsl:function name="preproc:sym-lookup" as="element( preproc:sym )?">
<xsl:param name="name" as="xs:string" />
<xsl:sequence select="$program/l:dep/preproc:sym[ @name=$name ]" />
<!-- XXX: There's a linker bug where there may be duplicate symbols in
l:dep! -->
<xsl:sequence select="$program/l:dep/preproc:sym[ @name=$name ][0]" />
</xsl:function>