1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/expat/expat_config.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,155 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef __expat_config_h__ 1.10 +#define __expat_config_h__ 1.11 + 1.12 +#define MOZ_UNICODE 1.13 +#include "nspr.h" 1.14 + 1.15 +#ifdef IS_LITTLE_ENDIAN 1.16 +#define BYTEORDER 1234 1.17 +#else 1.18 +#define BYTEORDER 4321 1.19 +#endif /* IS_LITTLE_ENDIAN */ 1.20 + 1.21 +#if PR_BYTES_PER_INT != 4 1.22 +#define int int32_t 1.23 +#endif /* PR_BYTES_PER_INT != 4 */ 1.24 + 1.25 +/* Other Mozilla code relies on memmove already, so we assume it's available */ 1.26 +#define HAVE_MEMMOVE 1 1.27 + 1.28 +#define XMLCALL 1.29 +#define XML_STATIC 1.30 +#define XMLIMPORT 1.31 + 1.32 +#define XML_UNICODE 1.33 +typedef char XML_LChar; 1.34 +/* 1.35 + * The char16_t type is only usable in C++ code, so we need this ugly hack to 1.36 + * select a binary compatible C type for the expat C code to use. 1.37 + */ 1.38 +#ifdef __cplusplus 1.39 +typedef char16_t XML_Char; 1.40 +#define XML_T(x) (char16_t)x 1.41 +#else 1.42 +#include <stdint.h> 1.43 +typedef uint16_t XML_Char; 1.44 +#define XML_T(x) (uint16_t)x 1.45 +#endif 1.46 + 1.47 +#define XML_DTD 1.48 +#define XML_NS 1.49 + 1.50 +/* avoid conflicts with system version of libexpat */ 1.51 + 1.52 +/* expat.h */ 1.53 +#define XML_SetElementDeclHandler MOZ_XML_SetElementDeclHandler 1.54 +#define XML_SetAttlistDeclHandler MOZ_XML_SetAttlistDeclHandler 1.55 +#define XML_SetXmlDeclHandler MOZ_XML_SetXmlDeclHandler 1.56 +#define XML_ParserCreate MOZ_XML_ParserCreate 1.57 +#define XML_ParserCreateNS MOZ_XML_ParserCreateNS 1.58 +#define XML_ParserCreate_MM MOZ_XML_ParserCreate_MM 1.59 +#define XML_ParserReset MOZ_XML_ParserReset 1.60 +#define XML_SetEntityDeclHandler MOZ_XML_SetEntityDeclHandler 1.61 +#define XML_SetElementHandler MOZ_XML_SetElementHandler 1.62 +#define XML_SetStartElementHandler MOZ_XML_SetStartElementHandler 1.63 +#define XML_SetEndElementHandler MOZ_XML_SetEndElementHandler 1.64 +#define XML_SetCharacterDataHandler MOZ_XML_SetCharacterDataHandler 1.65 +#ifndef __VMS 1.66 +#define XML_SetProcessingInstructionHandler MOZ_XML_SetProcessingInstructionHandler 1.67 +#else 1.68 +#define XML_SetProcessingInstrHandler MOZ_XML_SetProcessingInstrHandler 1.69 +#endif 1.70 +#define XML_SetCommentHandler MOZ_XML_SetCommentHandler 1.71 +#define XML_SetCdataSectionHandler MOZ_XML_SetCdataSectionHandler 1.72 +#define XML_SetStartCdataSectionHandler MOZ_XML_SetStartCdataSectionHandler 1.73 +#define XML_SetEndCdataSectionHandler MOZ_XML_SetEndCdataSectionHandler 1.74 +#define XML_SetDefaultHandler MOZ_XML_SetDefaultHandler 1.75 +#define XML_SetDefaultHandlerExpand MOZ_XML_SetDefaultHandlerExpand 1.76 +#define XML_SetDoctypeDeclHandler MOZ_XML_SetDoctypeDeclHandler 1.77 +#define XML_SetStartDoctypeDeclHandler MOZ_XML_SetStartDoctypeDeclHandler 1.78 +#define XML_SetEndDoctypeDeclHandler MOZ_XML_SetEndDoctypeDeclHandler 1.79 +#ifndef __VMS 1.80 +#define XML_SetUnparsedEntityDeclHandler MOZ_XML_SetUnparsedEntityDeclHandler 1.81 +#else 1.82 +#define XML_SetUnparsedEntDeclHandler MOZ_XML_SetUnparsedEntDeclHandler 1.83 +#endif 1.84 +#define XML_SetNotationDeclHandler MOZ_XML_SetNotationDeclHandler 1.85 +#define XML_SetNamespaceDeclHandler MOZ_XML_SetNamespaceDeclHandler 1.86 +#ifndef __VMS 1.87 +#define XML_SetStartNamespaceDeclHandler MOZ_XML_SetStartNamespaceDeclHandler 1.88 +#else 1.89 +#define XML_SetStartNamespcDeclHandler MOZ_XML_SetStartNamespcDeclHandler 1.90 +#endif 1.91 +#define XML_SetEndNamespaceDeclHandler MOZ_XML_SetEndNamespaceDeclHandler 1.92 +#define XML_SetNotStandaloneHandler MOZ_XML_SetNotStandaloneHandler 1.93 +#define XML_SetExternalEntityRefHandler MOZ_XML_SetExternalEntityRefHandler 1.94 +#ifndef __VMS 1.95 +#define XML_SetExternalEntityRefHandlerArg MOZ_XML_SetExternalEntityRefHandlerArg 1.96 +#else 1.97 +#define XML_SetExternalEntRefHandlerArg MOZ_XML_SetExternalEntRefHandlerArg 1.98 +#endif 1.99 +#define XML_SetSkippedEntityHandler MOZ_XML_SetSkippedEntityHandler 1.100 +#define XML_SetUnknownEncodingHandler MOZ_XML_SetUnknownEncodingHandler 1.101 +#define XML_DefaultCurrent MOZ_XML_DefaultCurrent 1.102 +#define XML_SetReturnNSTriplet MOZ_XML_SetReturnNSTriplet 1.103 +#define XML_SetUserData MOZ_XML_SetUserData 1.104 +#define XML_SetEncoding MOZ_XML_SetEncoding 1.105 +#define XML_UseParserAsHandlerArg MOZ_XML_UseParserAsHandlerArg 1.106 +#define XML_UseForeignDTD MOZ_XML_UseForeignDTD 1.107 +#define XML_SetBase MOZ_XML_SetBase 1.108 +#define XML_GetBase MOZ_XML_GetBase 1.109 +#define XML_GetSpecifiedAttributeCount MOZ_XML_GetSpecifiedAttributeCount 1.110 +#define XML_GetIdAttributeIndex MOZ_XML_GetIdAttributeIndex 1.111 +#define XML_Parse MOZ_XML_Parse 1.112 +#define XML_GetBuffer MOZ_XML_GetBuffer 1.113 +#define XML_ParseBuffer MOZ_XML_ParseBuffer 1.114 +#define XML_StopParser MOZ_XML_StopParser 1.115 +#define XML_ResumeParser MOZ_XML_ResumeParser 1.116 +#define XML_GetParsingStatus MOZ_XML_GetParsingStatus 1.117 +#define XML_ExternalEntityParserCreate MOZ_XML_ExternalEntityParserCreate 1.118 +#define XML_SetParamEntityParsing MOZ_XML_SetParamEntityParsing 1.119 +#define XML_GetErrorCode MOZ_XML_GetErrorCode 1.120 +#define XML_GetCurrentLineNumber MOZ_XML_GetCurrentLineNumber 1.121 +#define XML_GetCurrentColumnNumber MOZ_XML_GetCurrentColumnNumber 1.122 +#define XML_GetCurrentByteIndex MOZ_XML_GetCurrentByteIndex 1.123 +#define XML_GetCurrentByteCount MOZ_XML_GetCurrentByteCount 1.124 +#define XML_GetInputContext MOZ_XML_GetInputContext 1.125 +#define XML_FreeContentModel MOZ_XML_FreeContentModel 1.126 +#define XML_MemMalloc MOZ_XML_MemMalloc 1.127 +#define XML_MemRealloc MOZ_XML_MemRealloc 1.128 +#define XML_MemFree MOZ_XML_MemFree 1.129 +#define XML_ParserFree MOZ_XML_ParserFree 1.130 +#define XML_ErrorString MOZ_XML_ErrorString 1.131 +#define XML_ExpatVersion MOZ_XML_ExpatVersion 1.132 +#define XML_ExpatVersionInfo MOZ_XML_ExpatVersionInfo 1.133 +#define XML_GetFeatureList MOZ_XML_GetFeatureList 1.134 + 1.135 +/* xmlrole.h */ 1.136 +#define XmlPrologStateInit MOZ_XmlPrologStateInit 1.137 +#ifndef __VMS 1.138 +#define XmlPrologStateInitExternalEntity MOZ_XmlPrologStateInitExternalEntity 1.139 +#else 1.140 +#define XmlPrologStateInitExternalEnt MOZ_XmlPrologStateInitExternalEnt 1.141 +#endif 1.142 + 1.143 +/* xmltok.h */ 1.144 +#define XmlParseXmlDecl MOZ_XmlParseXmlDecl 1.145 +#define XmlParseXmlDeclNS MOZ_XmlParseXmlDeclNS 1.146 +#define XmlInitEncoding MOZ_XmlInitEncoding 1.147 +#define XmlInitEncodingNS MOZ_XmlInitEncodingNS 1.148 +#define XmlGetUtf8InternalEncoding MOZ_XmlGetUtf8InternalEncoding 1.149 +#define XmlGetUtf16InternalEncoding MOZ_XmlGetUtf16InternalEncoding 1.150 +#define XmlGetUtf8InternalEncodingNS MOZ_XmlGetUtf8InternalEncodingNS 1.151 +#define XmlGetUtf16InternalEncodingNS MOZ_XmlGetUtf16InternalEncodingNS 1.152 +#define XmlUtf8Encode MOZ_XmlUtf8Encode 1.153 +#define XmlUtf16Encode MOZ_XmlUtf16Encode 1.154 +#define XmlSizeOfUnknownEncoding MOZ_XmlSizeOfUnknownEncoding 1.155 +#define XmlInitUnknownEncoding MOZ_XmlInitUnknownEncoding 1.156 +#define XmlInitUnknownEncodingNS MOZ_XmlInitUnknownEncodingNS 1.157 + 1.158 +#endif /* __expat_config_h__ */