Bug 1881246 [wpt PR 44704] - [FedCM] Add `mode` to the POST request sent to the ID...
[gecko.git] / parser / expat / expat_config.h
blobd302adceb92f451dcffa111c4bd79cc4c2dc43a1
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 #ifdef MOZ_IN_WASM_SANDBOX
10 # include "expat_config_rlbox.h"
11 #else
12 # include "expat_config_moz.h"
13 #endif
15 /* Other Mozilla code relies on memmove already, so we assume it's available */
16 #define HAVE_MEMMOVE 1
18 #define XMLCALL
19 #define XML_STATIC
20 #define XMLIMPORT
22 #define XML_UNICODE
23 typedef char XML_LChar;
25 * The char16_t type is only usable in C++ code, so we need this ugly hack to
26 * select a binary compatible C type for the expat C code to use.
28 #ifdef __cplusplus
29 typedef char16_t XML_Char;
30 #define XML_T(x) (char16_t)x
31 #else
32 #include <stdint.h>
33 typedef uint16_t XML_Char;
34 #define XML_T(x) (uint16_t)x
35 #endif
37 #define XML_DTD
38 #define XML_NS
40 /* avoid conflicts with system version of libexpat */
42 /* expat.h */
43 #define XML_SetElementDeclHandler MOZ_XML_SetElementDeclHandler
44 #define XML_SetAttlistDeclHandler MOZ_XML_SetAttlistDeclHandler
45 #define XML_SetXmlDeclHandler MOZ_XML_SetXmlDeclHandler
46 #define XML_ParserCreate MOZ_XML_ParserCreate
47 #define XML_ParserCreateNS MOZ_XML_ParserCreateNS
48 #define XML_ParserCreate_MM MOZ_XML_ParserCreate_MM
49 #define XML_ParserReset MOZ_XML_ParserReset
50 #define XML_SetEntityDeclHandler MOZ_XML_SetEntityDeclHandler
51 #define XML_SetElementHandler MOZ_XML_SetElementHandler
52 #define XML_SetStartElementHandler MOZ_XML_SetStartElementHandler
53 #define XML_SetEndElementHandler MOZ_XML_SetEndElementHandler
54 #define XML_SetCharacterDataHandler MOZ_XML_SetCharacterDataHandler
55 #ifndef __VMS
56 #define XML_SetProcessingInstructionHandler MOZ_XML_SetProcessingInstructionHandler
57 #else
58 #define XML_SetProcessingInstrHandler MOZ_XML_SetProcessingInstrHandler
59 #endif
60 #define XML_SetCommentHandler MOZ_XML_SetCommentHandler
61 #define XML_SetCdataSectionHandler MOZ_XML_SetCdataSectionHandler
62 #define XML_SetStartCdataSectionHandler MOZ_XML_SetStartCdataSectionHandler
63 #define XML_SetEndCdataSectionHandler MOZ_XML_SetEndCdataSectionHandler
64 #define XML_SetDefaultHandler MOZ_XML_SetDefaultHandler
65 #define XML_SetDefaultHandlerExpand MOZ_XML_SetDefaultHandlerExpand
66 #define XML_SetDoctypeDeclHandler MOZ_XML_SetDoctypeDeclHandler
67 #define XML_SetStartDoctypeDeclHandler MOZ_XML_SetStartDoctypeDeclHandler
68 #define XML_SetEndDoctypeDeclHandler MOZ_XML_SetEndDoctypeDeclHandler
69 #ifndef __VMS
70 #define XML_SetUnparsedEntityDeclHandler MOZ_XML_SetUnparsedEntityDeclHandler
71 #else
72 #define XML_SetUnparsedEntDeclHandler MOZ_XML_SetUnparsedEntDeclHandler
73 #endif
74 #define XML_SetNotationDeclHandler MOZ_XML_SetNotationDeclHandler
75 #define XML_SetNamespaceDeclHandler MOZ_XML_SetNamespaceDeclHandler
76 #ifndef __VMS
77 #define XML_SetStartNamespaceDeclHandler MOZ_XML_SetStartNamespaceDeclHandler
78 #else
79 #define XML_SetStartNamespcDeclHandler MOZ_XML_SetStartNamespcDeclHandler
80 #endif
81 #define XML_SetEndNamespaceDeclHandler MOZ_XML_SetEndNamespaceDeclHandler
82 #define XML_SetNotStandaloneHandler MOZ_XML_SetNotStandaloneHandler
83 #define XML_SetExternalEntityRefHandler MOZ_XML_SetExternalEntityRefHandler
84 #ifndef __VMS
85 #define XML_SetExternalEntityRefHandlerArg MOZ_XML_SetExternalEntityRefHandlerArg
86 #else
87 #define XML_SetExternalEntRefHandlerArg MOZ_XML_SetExternalEntRefHandlerArg
88 #endif
89 #define XML_SetSkippedEntityHandler MOZ_XML_SetSkippedEntityHandler
90 #define XML_SetUnknownEncodingHandler MOZ_XML_SetUnknownEncodingHandler
91 #define XML_DefaultCurrent MOZ_XML_DefaultCurrent
92 #define XML_SetReturnNSTriplet MOZ_XML_SetReturnNSTriplet
93 #define XML_SetUserData MOZ_XML_SetUserData
94 #define XML_SetEncoding MOZ_XML_SetEncoding
95 #define XML_UseParserAsHandlerArg MOZ_XML_UseParserAsHandlerArg
96 #define XML_UseForeignDTD MOZ_XML_UseForeignDTD
97 #define XML_SetBase MOZ_XML_SetBase
98 #define XML_GetBase MOZ_XML_GetBase
99 #define XML_GetSpecifiedAttributeCount MOZ_XML_GetSpecifiedAttributeCount
100 #define XML_GetIdAttributeIndex MOZ_XML_GetIdAttributeIndex
101 #define XML_Parse MOZ_XML_Parse
102 #define XML_GetBuffer MOZ_XML_GetBuffer
103 #define XML_ParseBuffer MOZ_XML_ParseBuffer
104 #define XML_StopParser MOZ_XML_StopParser
105 #define XML_ResumeParser MOZ_XML_ResumeParser
106 #define XML_GetParsingStatus MOZ_XML_GetParsingStatus
107 #define XML_ExternalEntityParserCreate MOZ_XML_ExternalEntityParserCreate
108 #define XML_SetParamEntityParsing MOZ_XML_SetParamEntityParsing
109 #define XML_GetErrorCode MOZ_XML_GetErrorCode
110 #define XML_GetCurrentLineNumber MOZ_XML_GetCurrentLineNumber
111 #define XML_GetCurrentColumnNumber MOZ_XML_GetCurrentColumnNumber
112 #define XML_GetCurrentByteIndex MOZ_XML_GetCurrentByteIndex
113 #define XML_GetCurrentByteCount MOZ_XML_GetCurrentByteCount
114 #define XML_GetInputContext MOZ_XML_GetInputContext
115 #define XML_FreeContentModel MOZ_XML_FreeContentModel
116 #define XML_MemMalloc MOZ_XML_MemMalloc
117 #define XML_MemRealloc MOZ_XML_MemRealloc
118 #define XML_MemFree MOZ_XML_MemFree
119 #define XML_ParserFree MOZ_XML_ParserFree
120 #define XML_ErrorString MOZ_XML_ErrorString
121 #define XML_ExpatVersion MOZ_XML_ExpatVersion
122 #define XML_ExpatVersionInfo MOZ_XML_ExpatVersionInfo
123 #define XML_GetFeatureList MOZ_XML_GetFeatureList
125 /* xmlrole.h */
126 #define XmlPrologStateInit MOZ_XmlPrologStateInit
127 #ifndef __VMS
128 #define XmlPrologStateInitExternalEntity MOZ_XmlPrologStateInitExternalEntity
129 #else
130 #define XmlPrologStateInitExternalEnt MOZ_XmlPrologStateInitExternalEnt
131 #endif
133 /* xmltok.h */
134 #define XmlParseXmlDecl MOZ_XmlParseXmlDecl
135 #define XmlParseXmlDeclNS MOZ_XmlParseXmlDeclNS
136 #define XmlInitEncoding MOZ_XmlInitEncoding
137 #define XmlInitEncodingNS MOZ_XmlInitEncodingNS
138 #define XmlGetUtf8InternalEncoding MOZ_XmlGetUtf8InternalEncoding
139 #define XmlGetUtf16InternalEncoding MOZ_XmlGetUtf16InternalEncoding
140 #define XmlGetUtf8InternalEncodingNS MOZ_XmlGetUtf8InternalEncodingNS
141 #define XmlGetUtf16InternalEncodingNS MOZ_XmlGetUtf16InternalEncodingNS
142 #define XmlUtf8Encode MOZ_XmlUtf8Encode
143 #define XmlUtf16Encode MOZ_XmlUtf16Encode
144 #define XmlSizeOfUnknownEncoding MOZ_XmlSizeOfUnknownEncoding
145 #define XmlInitUnknownEncoding MOZ_XmlInitUnknownEncoding
146 #define XmlInitUnknownEncodingNS MOZ_XmlInitUnknownEncodingNS
148 #endif /* __expat_config_h__ */