depgen: Remove lax symbol concept
I had to dig through the old repository (prior to extracting into this one) to see why this was introduced. It seems that it was for the linker, and TAMER's linker has no concept of lax symbols, so this is not used. To make matters worse, the code I modified here could not have worked (in depgen) because `$syms/@name` _will always have a value_. Anyway, removing this has no effect on the compiled packages. DEV-15114main
parent
b3f92e0678
commit
f415e05f31
|
@ -319,7 +319,7 @@
|
||||||
<template match="lvm:pass[ root(.)/@lvmc:type = 'retmap' ]"
|
<template match="lvm:pass[ root(.)/@lvmc:type = 'retmap' ]"
|
||||||
mode="preproc:depgen" priority="6">
|
mode="preproc:depgen" priority="6">
|
||||||
<preproc:sym-dep name=":retmap:{@name}">
|
<preproc:sym-dep name=":retmap:{@name}">
|
||||||
<preproc:sym-ref name="{@name}" lax="true" />
|
<preproc:sym-ref name="{@name}" />
|
||||||
</preproc:sym-dep>
|
</preproc:sym-dep>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@
|
||||||
and root(.)/@lvmc:type = 'retmap' ]"
|
and root(.)/@lvmc:type = 'retmap' ]"
|
||||||
mode="preproc:depgen" priority="6">
|
mode="preproc:depgen" priority="6">
|
||||||
<preproc:sym-dep name=":retmap:{@to}">
|
<preproc:sym-dep name=":retmap:{@to}">
|
||||||
<preproc:sym-ref name="{@from}" lax="true" />
|
<preproc:sym-ref name="{@from}" />
|
||||||
</preproc:sym-dep>
|
</preproc:sym-dep>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -596,7 +596,7 @@
|
||||||
mode="preproc:depgen" priority="6">
|
mode="preproc:depgen" priority="6">
|
||||||
<preproc:sym-dep name=":retmap:{@to}">
|
<preproc:sym-dep name=":retmap:{@to}">
|
||||||
<for-each select=".//lvm:from">
|
<for-each select=".//lvm:from">
|
||||||
<preproc:sym-ref name="{@name}" lax="true" />
|
<preproc:sym-ref name="{@name}" />
|
||||||
</for-each>
|
</for-each>
|
||||||
</preproc:sym-dep>
|
</preproc:sym-dep>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -149,7 +149,7 @@
|
||||||
select="$symtable-map( $name )" />
|
select="$symtable-map( $name )" />
|
||||||
|
|
||||||
<!-- we should never have this problem. -->
|
<!-- we should never have this problem. -->
|
||||||
<if test="not( $sym ) and not( @lax='true' )">
|
<if test="not( $sym )">
|
||||||
<message terminate="yes">
|
<message terminate="yes">
|
||||||
<text>[depgen] internal error: </text>
|
<text>[depgen] internal error: </text>
|
||||||
<text>could not locate dependency symbol `</text>
|
<text>could not locate dependency symbol `</text>
|
||||||
|
@ -159,12 +159,8 @@
|
||||||
</message>
|
</message>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<!-- copy and augment (we set @name because $sym/@name may not exist
|
|
||||||
if @lax) -->
|
|
||||||
<preproc:sym name="{@name}">
|
<preproc:sym name="{@name}">
|
||||||
<if test="$sym">
|
|
||||||
<sequence select="$sym/@*" />
|
<sequence select="$sym/@*" />
|
||||||
</if>
|
|
||||||
|
|
||||||
<preproc:meta>
|
<preproc:meta>
|
||||||
<!-- retain type -->
|
<!-- retain type -->
|
||||||
|
@ -178,27 +174,7 @@
|
||||||
</for-each>
|
</for-each>
|
||||||
</variable>
|
</variable>
|
||||||
|
|
||||||
<!-- only applicable if the symbol is @lax and the symbol was not
|
|
||||||
found in the local symbol table -->
|
|
||||||
<variable name="lax" select="
|
|
||||||
$uniq[
|
|
||||||
@lax='true'
|
|
||||||
and not( @name=$syms/@name )
|
|
||||||
]
|
|
||||||
" />
|
|
||||||
|
|
||||||
<preproc:sym-dep name="{@name}">
|
<preproc:sym-dep name="{@name}">
|
||||||
<!-- process symbols that have not been found in the local symbol
|
|
||||||
table (only applicable when cursym is @lax) -->
|
|
||||||
<for-each select="$lax">
|
|
||||||
<!-- the @lax flag here is simply to denote that this symbol may not
|
|
||||||
actually exist and that ignoring the check was explicitly
|
|
||||||
requested (and not a bug in the depgen process) -->
|
|
||||||
<preproc:sym-ref name="{@name}" lax="true">
|
|
||||||
<sequence select="preproc:meta/@*" />
|
|
||||||
</preproc:sym-ref>
|
|
||||||
</for-each>
|
|
||||||
|
|
||||||
<!-- @tex provided an non-empty, or function -->
|
<!-- @tex provided an non-empty, or function -->
|
||||||
<for-each select="$syms">
|
<for-each select="$syms">
|
||||||
<preproc:sym-ref>
|
<preproc:sym-ref>
|
||||||
|
|
Loading…
Reference in New Issue