diff options
author | Mike Hommey <mh@glandium.org> | 2004-07-06 12:57:17 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2004-07-06 12:57:17 +0000 |
commit | c14c53a3645d81281058d4bb4cff24fa8d6faf33 (patch) | |
tree | 29bccc2e7499af078a3d1cdcfb517a1dee891be5 /doc/elfgcchack.xsl | |
parent | d4e028c96af89ade493b440d4f2de6b684c03a06 (diff) | |
download | libxml2-c14c53a3645d81281058d4bb4cff24fa8d6faf33.tar.gz |
Load /tmp/tmp.DIvcnD/libxml2-2.6.11 intoupstream/2.6.11
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'doc/elfgcchack.xsl')
-rw-r--r-- | doc/elfgcchack.xsl | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/doc/elfgcchack.xsl b/doc/elfgcchack.xsl new file mode 100644 index 0000000..109ce0c --- /dev/null +++ b/doc/elfgcchack.xsl @@ -0,0 +1,121 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xhtml="http://www.w3.org/1999/xhtml" + version="1.0"> + <xsl:output method="text" encoding="ISO-8859-1"/> + + <xsl:template match="/"> + <xsl:text>/* + * elfgcchack.h: hack by Arjan van de Ven <arjanv@redhat.com> to speed + * up the code when using gcc for call within the library. + * + * Based on the analysis http://people.redhat.com/drepper/dsohowto.pdf + * from Ulrich drepper. Rewritten to be generated from the XML description + * file for libxml2 API + * autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml + */ + +#include "libxml/c14n.h" +#include "libxml/catalog.h" +#include "libxml/chvalid.h" +#include "libxml/debugXML.h" +#include "libxml/dict.h" +#include "libxml/DOCBparser.h" +#include "libxml/encoding.h" +#include "libxml/entities.h" +#include "libxml/globals.h" +#include "libxml/hash.h" +#include "libxml/HTMLparser.h" +#include "libxml/HTMLtree.h" +#include "libxml/list.h" +#include "libxml/nanoftp.h" +#include "libxml/nanohttp.h" +#include "libxml/parser.h" +#include "libxml/parserInternals.h" +#include "libxml/pattern.h" +#include "libxml/relaxng.h" +#include "libxml/SAX2.h" +#include "libxml/SAX.h" +#include "libxml/schemasInternals.h" +#include "libxml/threads.h" +#include "libxml/tree.h" +#include "libxml/uri.h" +#include "libxml/valid.h" +#include "libxml/xinclude.h" +#include "libxml/xlink.h" +#include "libxml/xmlautomata.h" +#include "libxml/xmlerror.h" +#include "libxml/xmlexports.h" +#include "libxml/xmlIO.h" +#include "libxml/xmlmemory.h" +#include "libxml/xmlreader.h" +#include "libxml/xmlregexp.h" +#include "libxml/xmlsave.h" +#include "libxml/xmlschemas.h" +#include "libxml/xmlschemastypes.h" +#include "libxml/xmlstring.h" +#include "libxml/xmlunicode.h" +#include "libxml/xmlversion.h" +#include "libxml/xmlwriter.h" +#include "libxml/xpath.h" +#include "libxml/xpathInternals.h" +#include "libxml/xpointer.h" + +/* special hot spot not exported ones */ + +extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden"))); +extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias"))); +#define __xmlGenericError __xmlGenericError__internal_alias + +extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden"))); +extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias"))); +#define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias + +/* list generated from libxml2-api.xml */ + +</xsl:text> + <xsl:apply-templates select="/api/symbols/function"/> + </xsl:template> + + <xsl:template match="function"> + <xsl:variable name="str" select="string(@name)"/> + <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:value-of select="$str"/> + <xsl:text>) </xsl:text> + <xsl:value-of select="$alias"/> + <xsl:text> __attribute((visibility("hidden"))); +</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> + <xsl:text>#define </xsl:text> + <xsl:value-of select="$str"/> + <xsl:text> </xsl:text> + <xsl:value-of select="$alias"/> + <xsl:text> +</xsl:text> + <xsl:apply-templates select="cond" mode="end"/> + <xsl:text> +</xsl:text> + </xsl:if> + </xsl:template> + <xsl:template match="cond"> + <xsl:text>#ifdef </xsl:text> + <xsl:value-of select="."/> + <xsl:text> +</xsl:text> + </xsl:template> + <xsl:template match="cond" mode="end"> + <xsl:text>#endif +</xsl:text> + </xsl:template> +</xsl:stylesheet> + |