Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-05-08 16:40:24 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-07-05 13:52:02 -0400
commit8e5666f845727aa272b20566bd180bb468206bb8 (patch)
tree2959f45d907a0a6b2d3e45fd7525eef0a55f212b
parent83e3d72b6e25c6959c7bafdd172b2f22fe81479a (diff)
downloadtame-8e5666f845727aa272b20566bd180bb468206bb8.tar.gz
tame-8e5666f845727aa272b20566bd180bb468206bb8.tar.bz2
tame-8e5666f845727aa272b20566bd180bb468206bb8.zip
Ignore externs in local polluting symbol processing
* src/current/include/preproc/symtable.xsl (preproc:symimport lv:import): Ignore symbols flagged as externs when processing local polluted symbols.
-rw-r--r--src/current/include/preproc/symtable.xsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/current/include/preproc/symtable.xsl b/src/current/include/preproc/symtable.xsl
index 069c22b..2cf726c 100644
--- a/src/current/include/preproc/symtable.xsl
+++ b/src/current/include/preproc/symtable.xsl
@@ -592,7 +592,9 @@
strip the data if this is a second-hand import -->
<!-- TODO: this list has gotten too large, but reducing it will require
refactoring other compilers and may reduce performance -->
- <xsl:when test="@pollute='true' and @local='true'">
+ <xsl:when test="@pollute='true'
+ and @local='true'
+ and not( @extern='true' )">
<xsl:sequence select="@name, @src, @pollute, @keep, @parent, @extclass" />
</xsl:when>