summaryrefslogtreecommitdiff
path: root/doc/elfgcchack.xsl
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2005-04-04 18:23:13 +0000
committerMike Hommey <glandium@debian.org>2005-04-04 18:23:13 +0000
commit0fc063df3ab2ad380d532d210dd1001de473e51b (patch)
tree6f88f0a0f845dd6aec7807b18cb5618d93e159ac /doc/elfgcchack.xsl
parent50e5b428562964b1eb2f876370058b34b47c5e90 (diff)
downloadlibxml2-0fc063df3ab2ad380d532d210dd1001de473e51b.tar.gz
Load /tmp/tmp.98zkCi/libxml2-2.6.19 intoupstream/2.6.19
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'doc/elfgcchack.xsl')
-rw-r--r--doc/elfgcchack.xsl53
1 files changed, 45 insertions, 8 deletions
diff --git a/doc/elfgcchack.xsl b/doc/elfgcchack.xsl
index 5f5cb40..8f24aed 100644
--- a/doc/elfgcchack.xsl
+++ b/doc/elfgcchack.xsl
@@ -15,6 +15,12 @@
* autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml
*/
+#ifdef IN_LIBXML
+#ifdef __GNUC__
+#ifdef PIC
+#ifdef linux
+#if (__GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
+
#include "libxml/c14n.h"
#include "libxml/catalog.h"
#include "libxml/chvalid.h"
@@ -64,18 +70,37 @@
/* special hot spot not exported ones */
-extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden")));
+#ifdef bottom_globals
+#undef __xmlGenericError
extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias")));
+#else
+#ifndef __xmlGenericError
+extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden")));
#define __xmlGenericError __xmlGenericError__internal_alias
+#endif
+#endif
-extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden")));
+#ifdef bottom_globals
+#undef __xmlGenericErrorContext
extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias")));
+#else
+#ifndef __xmlGenericErrorContext
+extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden")));
#define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias
+#endif
+#endif
/* list generated from libxml2-api.xml */
-
</xsl:text>
<xsl:apply-templates select="/api/symbols/function"/>
+ <xsl:text>
+#endif
+#endif
+#endif
+#endif
+#endif
+
+</xsl:text>
</xsl:template>
<xsl:template match="function">
@@ -83,25 +108,37 @@ extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute(
<xsl:if test="starts-with(@name, 'xml') or starts-with(@name, 'html') or contains(@name, 'Push') or contains(@name, 'Pop')">
<xsl:variable name="alias" select="concat($str, '__internal_alias')"/>
<xsl:apply-templates select="cond"/>
- <xsl:text>extern __typeof (</xsl:text>
+ <xsl:text>#ifdef bottom_</xsl:text>
+ <xsl:value-of select="string(@module)"/>
+ <xsl:text>
+#undef </xsl:text>
+ <xsl:value-of select="$str"/>
+ <xsl:text>
+extern __typeof (</xsl:text>
<xsl:value-of select="$str"/>
<xsl:text>) </xsl:text>
+ <xsl:value-of select="$str"/>
+ <xsl:text> __attribute((alias("</xsl:text>
<xsl:value-of select="$alias"/>
- <xsl:text> __attribute((visibility("hidden")));
+ <xsl:text>")));
+#else
+#ifndef </xsl:text>
+ <xsl:value-of select="$str"/>
+ <xsl:text>
</xsl:text>
<xsl:text>extern __typeof (</xsl:text>
<xsl:value-of select="$str"/>
<xsl:text>) </xsl:text>
- <xsl:value-of select="$str"/>
- <xsl:text> __attribute((alias("</xsl:text>
<xsl:value-of select="$alias"/>
- <xsl:text>")));
+ <xsl:text> __attribute((visibility("hidden")));
</xsl:text>
<xsl:text>#define </xsl:text>
<xsl:value-of select="$str"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$alias"/>
<xsl:text>
+#endif
+#endif
</xsl:text>
<xsl:apply-templates select="cond" mode="end"/>
<xsl:text>