Back to index

lightning-sunbird  0.9+nobinonly
expat_config.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Peter Van der Beken.
00019  * Portions created by the Initial Developer are Copyright (C) 2003
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Peter Van der Beken <peter@propagandism.org>
00024  *
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #ifndef __expat_config_h__
00041 #define __expat_config_h__
00042 
00043 #define MOZ_UNICODE
00044 #include "nspr.h"
00045 
00046 #ifdef IS_LITTLE_ENDIAN
00047 #define BYTEORDER 1234
00048 #else 
00049 #define BYTEORDER 4321
00050 #endif /* IS_LITTLE_ENDIAN */
00051 
00052 #if PR_BYTES_PER_INT != 4
00053 #define int int32
00054 #endif /* PR_BYTES_PER_INT != 4 */
00055 
00056 /* Other Mozilla code relies on memmove already, so we assume it's available */
00057 #define HAVE_MEMMOVE 1
00058 
00059 #define XMLCALL
00060 #define XML_STATIC
00061 #define XMLIMPORT
00062 
00063 #define XML_UNICODE
00064 typedef PRUnichar XML_Char;
00065 typedef char XML_LChar;
00066 #define XML_T(x) (PRUnichar)x
00067 #define XML_L(x) x
00068 
00069 #define XML_DTD
00070 #define XML_NS
00071 
00072 /* avoid conflicts with system version of libexpat */
00073 
00074 /* expat.h */
00075 #define XML_SetElementDeclHandler MOZ_XML_SetElementDeclHandler
00076 #define XML_SetAttlistDeclHandler MOZ_XML_SetAttlistDeclHandler
00077 #define XML_SetXmlDeclHandler MOZ_XML_SetXmlDeclHandler
00078 #define XML_ParserCreate MOZ_XML_ParserCreate
00079 #define XML_ParserCreateNS MOZ_XML_ParserCreateNS
00080 #define XML_ParserCreate_MM MOZ_XML_ParserCreate_MM
00081 #define XML_ParserReset MOZ_XML_ParserReset
00082 #define XML_SetEntityDeclHandler MOZ_XML_SetEntityDeclHandler
00083 #define XML_SetElementHandler MOZ_XML_SetElementHandler
00084 #define XML_SetStartElementHandler MOZ_XML_SetStartElementHandler
00085 #define XML_SetEndElementHandler MOZ_XML_SetEndElementHandler
00086 #define XML_SetCharacterDataHandler MOZ_XML_SetCharacterDataHandler
00087 #ifndef __VMS
00088 #define XML_SetProcessingInstructionHandler MOZ_XML_SetProcessingInstructionHandler
00089 #else
00090 #define XML_SetProcessingInstrHandler MOZ_XML_SetProcessingInstrHandler
00091 #endif
00092 #define XML_SetCommentHandler MOZ_XML_SetCommentHandler
00093 #define XML_SetCdataSectionHandler MOZ_XML_SetCdataSectionHandler
00094 #define XML_SetStartCdataSectionHandler MOZ_XML_SetStartCdataSectionHandler
00095 #define XML_SetEndCdataSectionHandler MOZ_XML_SetEndCdataSectionHandler
00096 #define XML_SetDefaultHandler MOZ_XML_SetDefaultHandler
00097 #define XML_SetDefaultHandlerExpand MOZ_XML_SetDefaultHandlerExpand
00098 #define XML_SetDoctypeDeclHandler MOZ_XML_SetDoctypeDeclHandler
00099 #define XML_SetStartDoctypeDeclHandler MOZ_XML_SetStartDoctypeDeclHandler
00100 #define XML_SetEndDoctypeDeclHandler MOZ_XML_SetEndDoctypeDeclHandler
00101 #ifndef __VMS
00102 #define XML_SetUnparsedEntityDeclHandler MOZ_XML_SetUnparsedEntityDeclHandler
00103 #else
00104 #define XML_SetUnparsedEntDeclHandler MOZ_XML_SetUnparsedEntDeclHandler
00105 #endif
00106 #define XML_SetNotationDeclHandler MOZ_XML_SetNotationDeclHandler
00107 #define XML_SetNamespaceDeclHandler MOZ_XML_SetNamespaceDeclHandler
00108 #ifndef __VMS
00109 #define XML_SetStartNamespaceDeclHandler MOZ_XML_SetStartNamespaceDeclHandler
00110 #else
00111 #define XML_SetStartNamespcDeclHandler MOZ_XML_SetStartNamespcDeclHandler
00112 #endif
00113 #define XML_SetEndNamespaceDeclHandler MOZ_XML_SetEndNamespaceDeclHandler
00114 #define XML_SetNotStandaloneHandler MOZ_XML_SetNotStandaloneHandler
00115 #define XML_SetExternalEntityRefHandler MOZ_XML_SetExternalEntityRefHandler
00116 #ifndef __VMS
00117 #define XML_SetExternalEntityRefHandlerArg MOZ_XML_SetExternalEntityRefHandlerArg
00118 #else
00119 #define XML_SetExternalEntRefHandlerArg MOZ_XML_SetExternalEntRefHandlerArg
00120 #endif
00121 #define XML_SetSkippedEntityHandler MOZ_XML_SetSkippedEntityHandler
00122 #define XML_SetUnknownEncodingHandler MOZ_XML_SetUnknownEncodingHandler
00123 #define XML_DefaultCurrent MOZ_XML_DefaultCurrent
00124 #define XML_SetReturnNSTriplet MOZ_XML_SetReturnNSTriplet
00125 #define XML_SetUserData MOZ_XML_SetUserData
00126 #define XML_SetEncoding MOZ_XML_SetEncoding
00127 #define XML_UseParserAsHandlerArg MOZ_XML_UseParserAsHandlerArg
00128 #define XML_UseForeignDTD MOZ_XML_UseForeignDTD
00129 #define XML_SetBase MOZ_XML_SetBase
00130 #define XML_GetBase MOZ_XML_GetBase
00131 #define XML_GetSpecifiedAttributeCount MOZ_XML_GetSpecifiedAttributeCount
00132 #define XML_GetIdAttributeIndex MOZ_XML_GetIdAttributeIndex
00133 #define XML_Parse MOZ_XML_Parse
00134 #define XML_GetBuffer MOZ_XML_GetBuffer
00135 #define XML_ParseBuffer MOZ_XML_ParseBuffer
00136 #define XML_ExternalEntityParserCreate MOZ_XML_ExternalEntityParserCreate
00137 #define XML_SetParamEntityParsing MOZ_XML_SetParamEntityParsing
00138 #define XML_GetErrorCode MOZ_XML_GetErrorCode
00139 #define XML_GetCurrentLineNumber MOZ_XML_GetCurrentLineNumber
00140 #define XML_GetCurrentColumnNumber MOZ_XML_GetCurrentColumnNumber
00141 #define XML_GetCurrentByteIndex MOZ_XML_GetCurrentByteIndex
00142 #define XML_GetCurrentByteCount MOZ_XML_GetCurrentByteCount
00143 #define XML_GetInputContext MOZ_XML_GetInputContext
00144 #define XML_FreeContentModel MOZ_XML_FreeContentModel
00145 #define XML_MemMalloc MOZ_XML_MemMalloc
00146 #define XML_MemRealloc MOZ_XML_MemRealloc
00147 #define XML_MemFree MOZ_XML_MemFree
00148 #define XML_ParserFree MOZ_XML_ParserFree
00149 #define XML_ErrorString MOZ_XML_ErrorString
00150 #define XML_ExpatVersion MOZ_XML_ExpatVersion
00151 #define XML_ExpatVersionInfo MOZ_XML_ExpatVersionInfo
00152 #define XML_GetFeatureList MOZ_XML_GetFeatureList
00153 
00154 /* xmlrole.h */
00155 #define XmlPrologStateInit MOZ_XmlPrologStateInit
00156 #ifndef __VMS
00157 #define XmlPrologStateInitExternalEntity MOZ_XmlPrologStateInitExternalEntity
00158 #else
00159 #define XmlPrologStateInitExternalEnt MOZ_XmlPrologStateInitExternalEnt
00160 #endif
00161 
00162 /* xmltok.h */
00163 #define XmlParseXmlDecl MOZ_XmlParseXmlDecl
00164 #define XmlInitEncoding MOZ_XmlInitEncoding
00165 #define XmlGetUtf8InternalEncoding MOZ_XmlGetUtf8InternalEncoding
00166 #define XmlGetUtf16InternalEncoding MOZ_XmlGetUtf16InternalEncoding
00167 #define XmlUtf8Encode MOZ_XmlUtf8Encode
00168 #define XmlUtf16Encode MOZ_XmlUtf16Encode
00169 #define XmlSizeOfUnknownEncoding MOZ_XmlSizeOfUnknownEncoding
00170 #define XmlInitUnknownEncoding MOZ_XmlInitUnknownEncoding
00171 
00172 #endif /* __expat_config_h__ */