blob: 5f5cb4065682b20e66cd9a8aa009394441613c94 [file] [log] [blame]
Daniel Veillarda2351322004-06-27 12:08:10 +00001<?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 &lt;arjanv@redhat.com&gt; 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"
Daniel Veillardbe076e92005-01-04 20:18:14 +000063#include "libxml/xmlmodule.h"
Daniel Veillarda2351322004-06-27 12:08:10 +000064
65/* special hot spot not exported ones */
66
67extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden")));
68extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias")));
69#define __xmlGenericError __xmlGenericError__internal_alias
70
71extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden")));
72extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias")));
73#define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias
74
75/* list generated from libxml2-api.xml */
76
77</xsl:text>
78 <xsl:apply-templates select="/api/symbols/function"/>
79 </xsl:template>
80
81 <xsl:template match="function">
82 <xsl:variable name="str" select="string(@name)"/>
83 <xsl:if test="starts-with(@name, 'xml') or starts-with(@name, 'html') or contains(@name, 'Push') or contains(@name, 'Pop')">
84 <xsl:variable name="alias" select="concat($str, '__internal_alias')"/>
85 <xsl:apply-templates select="cond"/>
86 <xsl:text>extern __typeof (</xsl:text>
87 <xsl:value-of select="$str"/>
88 <xsl:text>) </xsl:text>
89 <xsl:value-of select="$alias"/>
90 <xsl:text> __attribute((visibility("hidden")));
91</xsl:text>
92 <xsl:text>extern __typeof (</xsl:text>
93 <xsl:value-of select="$str"/>
94 <xsl:text>) </xsl:text>
95 <xsl:value-of select="$str"/>
96 <xsl:text> __attribute((alias("</xsl:text>
97 <xsl:value-of select="$alias"/>
98 <xsl:text>")));
99</xsl:text>
100 <xsl:text>#define </xsl:text>
101 <xsl:value-of select="$str"/>
102 <xsl:text> </xsl:text>
103 <xsl:value-of select="$alias"/>
104 <xsl:text>
105</xsl:text>
106 <xsl:apply-templates select="cond" mode="end"/>
107 <xsl:text>
108</xsl:text>
109 </xsl:if>
110 </xsl:template>
111 <xsl:template match="cond">
William M. Brack21e4ef22005-01-02 09:53:13 +0000112 <xsl:text>#if </xsl:text>
Daniel Veillarda2351322004-06-27 12:08:10 +0000113 <xsl:value-of select="."/>
114 <xsl:text>
115</xsl:text>
116 </xsl:template>
117 <xsl:template match="cond" mode="end">
118 <xsl:text>#endif
119</xsl:text>
120 </xsl:template>
121</xsl:stylesheet>
122