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
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.
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__
46 #ifdef IS_LITTLE_ENDIAN
47 #define BYTEORDER 1234
49 #define BYTEORDER 4321
50 #endif /* IS_LITTLE_ENDIAN */
52 #if PR_BYTES_PER_INT != 4
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
64 typedef PRUnichar XML_Char
;
65 typedef char XML_LChar
;
66 #define XML_T(x) (PRUnichar)x
72 /* avoid conflicts with system version of libexpat */
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
88 #define XML_SetProcessingInstructionHandler MOZ_XML_SetProcessingInstructionHandler
90 #define XML_SetProcessingInstrHandler MOZ_XML_SetProcessingInstrHandler
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
102 #define XML_SetUnparsedEntityDeclHandler MOZ_XML_SetUnparsedEntityDeclHandler
104 #define XML_SetUnparsedEntDeclHandler MOZ_XML_SetUnparsedEntDeclHandler
106 #define XML_SetNotationDeclHandler MOZ_XML_SetNotationDeclHandler
107 #define XML_SetNamespaceDeclHandler MOZ_XML_SetNamespaceDeclHandler
109 #define XML_SetStartNamespaceDeclHandler MOZ_XML_SetStartNamespaceDeclHandler
111 #define XML_SetStartNamespcDeclHandler MOZ_XML_SetStartNamespcDeclHandler
113 #define XML_SetEndNamespaceDeclHandler MOZ_XML_SetEndNamespaceDeclHandler
114 #define XML_SetNotStandaloneHandler MOZ_XML_SetNotStandaloneHandler
115 #define XML_SetExternalEntityRefHandler MOZ_XML_SetExternalEntityRefHandler
117 #define XML_SetExternalEntityRefHandlerArg MOZ_XML_SetExternalEntityRefHandlerArg
119 #define XML_SetExternalEntRefHandlerArg MOZ_XML_SetExternalEntRefHandlerArg
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
158 #define XmlPrologStateInit MOZ_XmlPrologStateInit
160 #define XmlPrologStateInitExternalEntity MOZ_XmlPrologStateInitExternalEntity
162 #define XmlPrologStateInitExternalEnt MOZ_XmlPrologStateInitExternalEnt
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__ */