Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame^] | 1 | <?xml version="1.0"?> |
| 2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 | xmlns:xhtml="http://www.w3.org/1999/xhtml" |
| 4 | version="1.0"> |
| 5 | <xsl:output method="text" encoding="ISO-8859-1"/> |
| 6 | |
| 7 | <xsl:template match="/"> |
| 8 | <xsl:text>/* |
| 9 | * elfgcchack.h: hack by Arjan van de Ven <arjanv@redhat.com> to speed |
| 10 | * up the code when using gcc for call within the library. |
| 11 | * |
| 12 | * Based on the analysis http://people.redhat.com/drepper/dsohowto.pdf |
| 13 | * from Ulrich drepper. Rewritten to be generated from the XML description |
| 14 | * file for libxml2 API |
| 15 | * autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml |
| 16 | */ |
| 17 | |
| 18 | #include "libxml/c14n.h" |
| 19 | #include "libxml/catalog.h" |
| 20 | #include "libxml/chvalid.h" |
| 21 | #include "libxml/debugXML.h" |
| 22 | #include "libxml/dict.h" |
| 23 | #include "libxml/DOCBparser.h" |
| 24 | #include "libxml/encoding.h" |
| 25 | #include "libxml/entities.h" |
| 26 | #include "libxml/globals.h" |
| 27 | #include "libxml/hash.h" |
| 28 | #include "libxml/HTMLparser.h" |
| 29 | #include "libxml/HTMLtree.h" |
| 30 | #include "libxml/list.h" |
| 31 | #include "libxml/nanoftp.h" |
| 32 | #include "libxml/nanohttp.h" |
| 33 | #include "libxml/parser.h" |
| 34 | #include "libxml/parserInternals.h" |
| 35 | #include "libxml/pattern.h" |
| 36 | #include "libxml/relaxng.h" |
| 37 | #include "libxml/SAX2.h" |
| 38 | #include "libxml/SAX.h" |
| 39 | #include "libxml/schemasInternals.h" |
| 40 | #include "libxml/threads.h" |
| 41 | #include "libxml/tree.h" |
| 42 | #include "libxml/uri.h" |
| 43 | #include "libxml/valid.h" |
| 44 | #include "libxml/xinclude.h" |
| 45 | #include "libxml/xlink.h" |
| 46 | #include "libxml/xmlautomata.h" |
| 47 | #include "libxml/xmlerror.h" |
| 48 | #include "libxml/xmlexports.h" |
| 49 | #include "libxml/xmlIO.h" |
| 50 | #include "libxml/xmlmemory.h" |
| 51 | #include "libxml/xmlreader.h" |
| 52 | #include "libxml/xmlregexp.h" |
| 53 | #include "libxml/xmlsave.h" |
| 54 | #include "libxml/xmlschemas.h" |
| 55 | #include "libxml/xmlschemastypes.h" |
| 56 | #include "libxml/xmlstring.h" |
| 57 | #include "libxml/xmlunicode.h" |
| 58 | #include "libxml/xmlversion.h" |
| 59 | #include "libxml/xmlwriter.h" |
| 60 | #include "libxml/xpath.h" |
| 61 | #include "libxml/xpathInternals.h" |
| 62 | #include "libxml/xpointer.h" |
| 63 | |
| 64 | /* special hot spot not exported ones */ |
| 65 | |
| 66 | extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden"))); |
| 67 | extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias"))); |
| 68 | #define __xmlGenericError __xmlGenericError__internal_alias |
| 69 | |
| 70 | extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden"))); |
| 71 | extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias"))); |
| 72 | #define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias |
| 73 | |
| 74 | /* list generated from libxml2-api.xml */ |
| 75 | |
| 76 | </xsl:text> |
| 77 | <xsl:apply-templates select="/api/symbols/function"/> |
| 78 | </xsl:template> |
| 79 | |
| 80 | <xsl:template match="function"> |
| 81 | <xsl:variable name="str" select="string(@name)"/> |
| 82 | <xsl:if test="starts-with(@name, 'xml') or starts-with(@name, 'html') or contains(@name, 'Push') or contains(@name, 'Pop')"> |
| 83 | <xsl:variable name="alias" select="concat($str, '__internal_alias')"/> |
| 84 | <xsl:apply-templates select="cond"/> |
| 85 | <xsl:text>extern __typeof (</xsl:text> |
| 86 | <xsl:value-of select="$str"/> |
| 87 | <xsl:text>) </xsl:text> |
| 88 | <xsl:value-of select="$alias"/> |
| 89 | <xsl:text> __attribute((visibility("hidden"))); |
| 90 | </xsl:text> |
| 91 | <xsl:text>extern __typeof (</xsl:text> |
| 92 | <xsl:value-of select="$str"/> |
| 93 | <xsl:text>) </xsl:text> |
| 94 | <xsl:value-of select="$str"/> |
| 95 | <xsl:text> __attribute((alias("</xsl:text> |
| 96 | <xsl:value-of select="$alias"/> |
| 97 | <xsl:text>"))); |
| 98 | </xsl:text> |
| 99 | <xsl:text>#define </xsl:text> |
| 100 | <xsl:value-of select="$str"/> |
| 101 | <xsl:text> </xsl:text> |
| 102 | <xsl:value-of select="$alias"/> |
| 103 | <xsl:text> |
| 104 | </xsl:text> |
| 105 | <xsl:apply-templates select="cond" mode="end"/> |
| 106 | <xsl:text> |
| 107 | </xsl:text> |
| 108 | </xsl:if> |
| 109 | </xsl:template> |
| 110 | <xsl:template match="cond"> |
| 111 | <xsl:text>#ifdef </xsl:text> |
| 112 | <xsl:value-of select="."/> |
| 113 | <xsl:text> |
| 114 | </xsl:text> |
| 115 | </xsl:template> |
| 116 | <xsl:template match="cond" mode="end"> |
| 117 | <xsl:text>#endif |
| 118 | </xsl:text> |
| 119 | </xsl:template> |
| 120 | </xsl:stylesheet> |
| 121 | |