Bug 788829 - Call SetSizeConstraints even if a popup is not open. r=enndeakin
[gecko.git] / parser / expat / expat_config.h
blobe11fccc9647994e1e8edba29f6427fb56f892810
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef __expat_config_h__
7 #define __expat_config_h__
9 #define MOZ_UNICODE
10 #include "nspr.h"
12 #ifdef IS_LITTLE_ENDIAN
13 #define BYTEORDER 1234
14 #else
15 #define BYTEORDER 4321
16 #endif /* IS_LITTLE_ENDIAN */
18 #if PR_BYTES_PER_INT != 4
19 #define int int32
20 #endif /* PR_BYTES_PER_INT != 4 */
22 /* Other Mozilla code relies on memmove already, so we assume it's available */
23 #define HAVE_MEMMOVE 1
25 #define XMLCALL
26 #define XML_STATIC
27 #define XMLIMPORT
29 #define XML_UNICODE
30 typedef PRUnichar XML_Char;
31 typedef char XML_LChar;
32 #define XML_T(x) (PRUnichar)x
33 #define XML_L(x) x
35 #define XML_DTD
36 #define XML_NS
38 /* avoid conflicts with system version of libexpat */
40 /* expat.h */
41 #define XML_SetElementDeclHandler MOZ_XML_SetElementDeclHandler
42 #define XML_SetAttlistDeclHandler MOZ_XML_SetAttlistDeclHandler
43 #define XML_SetXmlDeclHandler MOZ_XML_SetXmlDeclHandler
44 #define XML_ParserCreate MOZ_XML_ParserCreate
45 #define XML_ParserCreateNS MOZ_XML_ParserCreateNS
46 #define XML_ParserCreate_MM MOZ_XML_ParserCreate_MM
47 #define XML_ParserReset MOZ_XML_ParserReset
48 #define XML_SetEntityDeclHandler MOZ_XML_SetEntityDeclHandler
49 #define XML_SetElementHandler MOZ_XML_SetElementHandler
50 #define XML_SetStartElementHandler MOZ_XML_SetStartElementHandler
51 #define XML_SetEndElementHandler MOZ_XML_SetEndElementHandler
52 #define XML_SetCharacterDataHandler MOZ_XML_SetCharacterDataHandler
53 #ifndef __VMS
54 #define XML_SetProcessingInstructionHandler MOZ_XML_SetProcessingInstructionHandler
55 #else
56 #define XML_SetProcessingInstrHandler MOZ_XML_SetProcessingInstrHandler
57 #endif
58 #define XML_SetCommentHandler MOZ_XML_SetCommentHandler
59 #define XML_SetCdataSectionHandler MOZ_XML_SetCdataSectionHandler
60 #define XML_SetStartCdataSectionHandler MOZ_XML_SetStartCdataSectionHandler
61 #define XML_SetEndCdataSectionHandler MOZ_XML_SetEndCdataSectionHandler
62 #define XML_SetDefaultHandler MOZ_XML_SetDefaultHandler
63 #define XML_SetDefaultHandlerExpand MOZ_XML_SetDefaultHandlerExpand
64 #define XML_SetDoctypeDeclHandler MOZ_XML_SetDoctypeDeclHandler
65 #define XML_SetStartDoctypeDeclHandler MOZ_XML_SetStartDoctypeDeclHandler
66 #define XML_SetEndDoctypeDeclHandler MOZ_XML_SetEndDoctypeDeclHandler
67 #ifndef __VMS
68 #define XML_SetUnparsedEntityDeclHandler MOZ_XML_SetUnparsedEntityDeclHandler
69 #else
70 #define XML_SetUnparsedEntDeclHandler MOZ_XML_SetUnparsedEntDeclHandler
71 #endif
72 #define XML_SetNotationDeclHandler MOZ_XML_SetNotationDeclHandler
73 #define XML_SetNamespaceDeclHandler MOZ_XML_SetNamespaceDeclHandler
74 #ifndef __VMS
75 #define XML_SetStartNamespaceDeclHandler MOZ_XML_SetStartNamespaceDeclHandler
76 #else
77 #define XML_SetStartNamespcDeclHandler MOZ_XML_SetStartNamespcDeclHandler
78 #endif
79 #define XML_SetEndNamespaceDeclHandler MOZ_XML_SetEndNamespaceDeclHandler
80 #define XML_SetNotStandaloneHandler MOZ_XML_SetNotStandaloneHandler
81 #define XML_SetExternalEntityRefHandler MOZ_XML_SetExternalEntityRefHandler
82 #ifndef __VMS
83 #define XML_SetExternalEntityRefHandlerArg MOZ_XML_SetExternalEntityRefHandlerArg
84 #else
85 #define XML_SetExternalEntRefHandlerArg MOZ_XML_SetExternalEntRefHandlerArg
86 #endif
87 #define XML_SetSkippedEntityHandler MOZ_XML_SetSkippedEntityHandler
88 #define XML_SetUnknownEncodingHandler MOZ_XML_SetUnknownEncodingHandler
89 #define XML_DefaultCurrent MOZ_XML_DefaultCurrent
90 #define XML_SetReturnNSTriplet MOZ_XML_SetReturnNSTriplet
91 #define XML_SetUserData MOZ_XML_SetUserData
92 #define XML_SetEncoding MOZ_XML_SetEncoding
93 #define XML_UseParserAsHandlerArg MOZ_XML_UseParserAsHandlerArg
94 #define XML_UseForeignDTD MOZ_XML_UseForeignDTD
95 #define XML_SetBase MOZ_XML_SetBase
96 #define XML_GetBase MOZ_XML_GetBase
97 #define XML_GetSpecifiedAttributeCount MOZ_XML_GetSpecifiedAttributeCount
98 #define XML_GetIdAttributeIndex MOZ_XML_GetIdAttributeIndex
99 #define XML_Parse MOZ_XML_Parse
100 #define XML_GetBuffer MOZ_XML_GetBuffer
101 #define XML_ParseBuffer MOZ_XML_ParseBuffer
102 #define XML_StopParser MOZ_XML_StopParser
103 #define XML_ResumeParser MOZ_XML_ResumeParser
104 #define XML_GetParsingStatus MOZ_XML_GetParsingStatus
105 #define XML_ExternalEntityParserCreate MOZ_XML_ExternalEntityParserCreate
106 #define XML_SetParamEntityParsing MOZ_XML_SetParamEntityParsing
107 #define XML_GetErrorCode MOZ_XML_GetErrorCode
108 #define XML_GetCurrentLineNumber MOZ_XML_GetCurrentLineNumber
109 #define XML_GetCurrentColumnNumber MOZ_XML_GetCurrentColumnNumber
110 #define XML_GetCurrentByteIndex MOZ_XML_GetCurrentByteIndex
111 #define XML_GetCurrentByteCount MOZ_XML_GetCurrentByteCount
112 #define XML_GetInputContext MOZ_XML_GetInputContext
113 #define XML_FreeContentModel MOZ_XML_FreeContentModel
114 #define XML_MemMalloc MOZ_XML_MemMalloc
115 #define XML_MemRealloc MOZ_XML_MemRealloc
116 #define XML_MemFree MOZ_XML_MemFree
117 #define XML_ParserFree MOZ_XML_ParserFree
118 #define XML_ErrorString MOZ_XML_ErrorString
119 #define XML_ExpatVersion MOZ_XML_ExpatVersion
120 #define XML_ExpatVersionInfo MOZ_XML_ExpatVersionInfo
121 #define XML_GetFeatureList MOZ_XML_GetFeatureList
123 /* xmlrole.h */
124 #define XmlPrologStateInit MOZ_XmlPrologStateInit
125 #ifndef __VMS
126 #define XmlPrologStateInitExternalEntity MOZ_XmlPrologStateInitExternalEntity
127 #else
128 #define XmlPrologStateInitExternalEnt MOZ_XmlPrologStateInitExternalEnt
129 #endif
131 /* xmltok.h */
132 #define XmlParseXmlDecl MOZ_XmlParseXmlDecl
133 #define XmlParseXmlDeclNS MOZ_XmlParseXmlDeclNS
134 #define XmlInitEncoding MOZ_XmlInitEncoding
135 #define XmlInitEncodingNS MOZ_XmlInitEncodingNS
136 #define XmlGetUtf8InternalEncoding MOZ_XmlGetUtf8InternalEncoding
137 #define XmlGetUtf16InternalEncoding MOZ_XmlGetUtf16InternalEncoding
138 #define XmlGetUtf8InternalEncodingNS MOZ_XmlGetUtf8InternalEncodingNS
139 #define XmlGetUtf16InternalEncodingNS MOZ_XmlGetUtf16InternalEncodingNS
140 #define XmlUtf8Encode MOZ_XmlUtf8Encode
141 #define XmlUtf16Encode MOZ_XmlUtf16Encode
142 #define XmlSizeOfUnknownEncoding MOZ_XmlSizeOfUnknownEncoding
143 #define XmlInitUnknownEncoding MOZ_XmlInitUnknownEncoding
144 #define XmlInitUnknownEncodingNS MOZ_XmlInitUnknownEncodingNS
146 #endif /* __expat_config_h__ */