Bug 634366 - Remove broken CreateForNativePixmapSurface usage from CairoImageOGL...
[mozilla-central.git] / parser / expat / expat_config.h
blob73c3cca2fa581cd95f2fcc8d91e096dcbaf6ede9
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Peter Van der Beken.
19 * Portions created by the Initial Developer are Copyright (C) 2003
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
23 * Peter Van der Beken <peter@propagandism.org>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 #ifndef __expat_config_h__
41 #define __expat_config_h__
43 #define MOZ_UNICODE
44 #include "nspr.h"
46 #ifdef IS_LITTLE_ENDIAN
47 #define BYTEORDER 1234
48 #else
49 #define BYTEORDER 4321
50 #endif /* IS_LITTLE_ENDIAN */
52 #if PR_BYTES_PER_INT != 4
53 #define int int32
54 #endif /* PR_BYTES_PER_INT != 4 */
56 /* Other Mozilla code relies on memmove already, so we assume it's available */
57 #define HAVE_MEMMOVE 1
59 #define XMLCALL
60 #define XML_STATIC
61 #define XMLIMPORT
63 #define XML_UNICODE
64 typedef PRUnichar XML_Char;
65 typedef char XML_LChar;
66 #define XML_T(x) (PRUnichar)x
67 #define XML_L(x) x
69 #define XML_DTD
70 #define XML_NS
72 /* avoid conflicts with system version of libexpat */
74 /* expat.h */
75 #define XML_SetElementDeclHandler MOZ_XML_SetElementDeclHandler
76 #define XML_SetAttlistDeclHandler MOZ_XML_SetAttlistDeclHandler
77 #define XML_SetXmlDeclHandler MOZ_XML_SetXmlDeclHandler
78 #define XML_ParserCreate MOZ_XML_ParserCreate
79 #define XML_ParserCreateNS MOZ_XML_ParserCreateNS
80 #define XML_ParserCreate_MM MOZ_XML_ParserCreate_MM
81 #define XML_ParserReset MOZ_XML_ParserReset
82 #define XML_SetEntityDeclHandler MOZ_XML_SetEntityDeclHandler
83 #define XML_SetElementHandler MOZ_XML_SetElementHandler
84 #define XML_SetStartElementHandler MOZ_XML_SetStartElementHandler
85 #define XML_SetEndElementHandler MOZ_XML_SetEndElementHandler
86 #define XML_SetCharacterDataHandler MOZ_XML_SetCharacterDataHandler
87 #ifndef __VMS
88 #define XML_SetProcessingInstructionHandler MOZ_XML_SetProcessingInstructionHandler
89 #else
90 #define XML_SetProcessingInstrHandler MOZ_XML_SetProcessingInstrHandler
91 #endif
92 #define XML_SetCommentHandler MOZ_XML_SetCommentHandler
93 #define XML_SetCdataSectionHandler MOZ_XML_SetCdataSectionHandler
94 #define XML_SetStartCdataSectionHandler MOZ_XML_SetStartCdataSectionHandler
95 #define XML_SetEndCdataSectionHandler MOZ_XML_SetEndCdataSectionHandler
96 #define XML_SetDefaultHandler MOZ_XML_SetDefaultHandler
97 #define XML_SetDefaultHandlerExpand MOZ_XML_SetDefaultHandlerExpand
98 #define XML_SetDoctypeDeclHandler MOZ_XML_SetDoctypeDeclHandler
99 #define XML_SetStartDoctypeDeclHandler MOZ_XML_SetStartDoctypeDeclHandler
100 #define XML_SetEndDoctypeDeclHandler MOZ_XML_SetEndDoctypeDeclHandler
101 #ifndef __VMS
102 #define XML_SetUnparsedEntityDeclHandler MOZ_XML_SetUnparsedEntityDeclHandler
103 #else
104 #define XML_SetUnparsedEntDeclHandler MOZ_XML_SetUnparsedEntDeclHandler
105 #endif
106 #define XML_SetNotationDeclHandler MOZ_XML_SetNotationDeclHandler
107 #define XML_SetNamespaceDeclHandler MOZ_XML_SetNamespaceDeclHandler
108 #ifndef __VMS
109 #define XML_SetStartNamespaceDeclHandler MOZ_XML_SetStartNamespaceDeclHandler
110 #else
111 #define XML_SetStartNamespcDeclHandler MOZ_XML_SetStartNamespcDeclHandler
112 #endif
113 #define XML_SetEndNamespaceDeclHandler MOZ_XML_SetEndNamespaceDeclHandler
114 #define XML_SetNotStandaloneHandler MOZ_XML_SetNotStandaloneHandler
115 #define XML_SetExternalEntityRefHandler MOZ_XML_SetExternalEntityRefHandler
116 #ifndef __VMS
117 #define XML_SetExternalEntityRefHandlerArg MOZ_XML_SetExternalEntityRefHandlerArg
118 #else
119 #define XML_SetExternalEntRefHandlerArg MOZ_XML_SetExternalEntRefHandlerArg
120 #endif
121 #define XML_SetSkippedEntityHandler MOZ_XML_SetSkippedEntityHandler
122 #define XML_SetUnknownEncodingHandler MOZ_XML_SetUnknownEncodingHandler
123 #define XML_DefaultCurrent MOZ_XML_DefaultCurrent
124 #define XML_SetReturnNSTriplet MOZ_XML_SetReturnNSTriplet
125 #define XML_SetUserData MOZ_XML_SetUserData
126 #define XML_SetEncoding MOZ_XML_SetEncoding
127 #define XML_UseParserAsHandlerArg MOZ_XML_UseParserAsHandlerArg
128 #define XML_UseForeignDTD MOZ_XML_UseForeignDTD
129 #define XML_SetBase MOZ_XML_SetBase
130 #define XML_GetBase MOZ_XML_GetBase
131 #define XML_GetSpecifiedAttributeCount MOZ_XML_GetSpecifiedAttributeCount
132 #define XML_GetIdAttributeIndex MOZ_XML_GetIdAttributeIndex
133 #define XML_Parse MOZ_XML_Parse
134 #define XML_GetBuffer MOZ_XML_GetBuffer
135 #define XML_ParseBuffer MOZ_XML_ParseBuffer
136 #define XML_StopParser MOZ_XML_StopParser
137 #define XML_ResumeParser MOZ_XML_ResumeParser
138 #define XML_GetParsingStatus MOZ_XML_GetParsingStatus
139 #define XML_ExternalEntityParserCreate MOZ_XML_ExternalEntityParserCreate
140 #define XML_SetParamEntityParsing MOZ_XML_SetParamEntityParsing
141 #define XML_GetErrorCode MOZ_XML_GetErrorCode
142 #define XML_GetCurrentLineNumber MOZ_XML_GetCurrentLineNumber
143 #define XML_GetCurrentColumnNumber MOZ_XML_GetCurrentColumnNumber
144 #define XML_GetCurrentByteIndex MOZ_XML_GetCurrentByteIndex
145 #define XML_GetCurrentByteCount MOZ_XML_GetCurrentByteCount
146 #define XML_GetInputContext MOZ_XML_GetInputContext
147 #define XML_FreeContentModel MOZ_XML_FreeContentModel
148 #define XML_MemMalloc MOZ_XML_MemMalloc
149 #define XML_MemRealloc MOZ_XML_MemRealloc
150 #define XML_MemFree MOZ_XML_MemFree
151 #define XML_ParserFree MOZ_XML_ParserFree
152 #define XML_ErrorString MOZ_XML_ErrorString
153 #define XML_ExpatVersion MOZ_XML_ExpatVersion
154 #define XML_ExpatVersionInfo MOZ_XML_ExpatVersionInfo
155 #define XML_GetFeatureList MOZ_XML_GetFeatureList
157 /* xmlrole.h */
158 #define XmlPrologStateInit MOZ_XmlPrologStateInit
159 #ifndef __VMS
160 #define XmlPrologStateInitExternalEntity MOZ_XmlPrologStateInitExternalEntity
161 #else
162 #define XmlPrologStateInitExternalEnt MOZ_XmlPrologStateInitExternalEnt
163 #endif
165 /* xmltok.h */
166 #define XmlParseXmlDecl MOZ_XmlParseXmlDecl
167 #define XmlInitEncoding MOZ_XmlInitEncoding
168 #define XmlGetUtf8InternalEncoding MOZ_XmlGetUtf8InternalEncoding
169 #define XmlGetUtf16InternalEncoding MOZ_XmlGetUtf16InternalEncoding
170 #define XmlUtf8Encode MOZ_XmlUtf8Encode
171 #define XmlUtf16Encode MOZ_XmlUtf16Encode
172 #define XmlSizeOfUnknownEncoding MOZ_XmlSizeOfUnknownEncoding
173 #define XmlInitUnknownEncoding MOZ_XmlInitUnknownEncoding
175 #endif /* __expat_config_h__ */