2 ** Copyright (c) 2001-2009 Expat maintainers.
4 ** Permission is hereby granted, free of charge, to any person obtaining
5 ** a copy of this software and associated documentation files (the
6 ** "Software"), to deal in the Software without restriction, including
7 ** without limitation the rights to use, copy, modify, merge, publish,
8 ** distribute, sublicense, and/or sell copies of the Software, and to
9 ** permit persons to whom the Software is furnished to do so, subject to
10 ** the following conditions:
12 ** The above copyright notice and this permission notice shall be included
13 ** in all copies or substantial portions of the Software.
15 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 ** Note: This file was originally automatically generated by fdtrans.
32 #include <exec/interfaces.h>
33 #include <exec/libraries.h>
34 #include <exec/emulation.h>
35 #include <proto/exec.h>
36 #include <interfaces/expat.h>
37 #include "expat_68k.h"
38 #include "expat_base.h"
41 STATIC ULONG
stub_OpenPPC(ULONG
*regarray
)
43 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
44 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
45 struct LibraryManagerInterface
*Self
= (struct LibraryManagerInterface
*) ExtLib
->ILibrary
;
47 return (ULONG
) Self
->Open(0);
49 struct EmuTrap stub_Open
= { TRAPINST
, TRAPTYPE
, stub_OpenPPC
};
51 STATIC ULONG
stub_ClosePPC(ULONG
*regarray
)
53 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
54 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
55 struct LibraryManagerInterface
*Self
= (struct LibraryManagerInterface
*) ExtLib
->ILibrary
;
57 return (ULONG
) Self
->Close();
59 struct EmuTrap stub_Close
= { TRAPINST
, TRAPTYPE
, stub_ClosePPC
};
61 STATIC ULONG
stub_ExpungePPC(ULONG
*regarray
)
65 struct EmuTrap stub_Expunge
= { TRAPINST
, TRAPTYPE
, stub_ExpungePPC
};
67 STATIC ULONG
stub_ReservedPPC(ULONG
*regarray
)
71 struct EmuTrap stub_Reserved
= { TRAPINST
, TRAPTYPE
, stub_ReservedPPC
};
73 static M68kXML_Parser
stub_XML_ParserCreatePPC(ULONG
*regarray
)
75 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
76 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
77 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
78 struct ExecIFace
*IExec
= ((struct ExpatBase
*)Self
->Data
.LibBase
)->IExec
;
81 p
= IExec
->AllocVec(sizeof(*p
), MEMF_SHARED
|MEMF_CLEAR
);
83 p
->p
= Self
->XML_ParserCreate((const XML_Char
*)regarray
[8]);
86 Self
->XML_SetUserData(p
->p
, p
);
93 struct EmuTrap stub_XML_ParserCreate
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParserCreatePPC
};
95 static M68kXML_Parser
stub_XML_ParserCreateNSPPC(ULONG
*regarray
)
97 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
98 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
99 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
100 struct ExecIFace
*IExec
= ((struct ExpatBase
*)Self
->Data
.LibBase
)->IExec
;
103 p
= IExec
->AllocVec(sizeof(*p
), MEMF_SHARED
|MEMF_CLEAR
);
105 p
->p
= Self
->XML_ParserCreateNS((const XML_Char
*)regarray
[8], (XML_Char
)regarray
[0]);
108 Self
->XML_SetUserData(p
->p
, p
);
115 struct EmuTrap stub_XML_ParserCreateNS
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParserCreateNSPPC
};
117 static M68kXML_Parser
stub_XML_ParserCreate_MMPPC(ULONG
*regarray
)
119 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
120 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
121 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
122 struct ExecIFace
*IExec
= ((struct ExpatBase
*)Self
->Data
.LibBase
)->IExec
;
125 p
= IExec
->AllocVec(sizeof(*p
), MEMF_SHARED
|MEMF_CLEAR
);
127 p
->p
= Self
->XML_ParserCreate_MM((const XML_Char
*)regarray
[8],
128 (const XML_Memory_Handling_Suite
*)regarray
[9],
129 (const XML_Char
*)regarray
[10]);
132 Self
->XML_SetUserData(p
->p
, p
);
139 struct EmuTrap stub_XML_ParserCreate_MM
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParserCreate_MMPPC
};
141 static M68kXML_Parser
stub_XML_ExternalEntityParserCreatePPC(ULONG
*regarray
)
143 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
144 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
145 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
146 struct ExecIFace
*IExec
= ((struct ExpatBase
*)Self
->Data
.LibBase
)->IExec
;
149 p
= IExec
->AllocVec(sizeof(*p
), MEMF_SHARED
|MEMF_CLEAR
);
151 p
->p
= Self
->XML_ExternalEntityParserCreate((XML_Parser
)regarray
[8],
152 (const XML_Char
*)regarray
[9], (const XML_Char
*)regarray
[10]);
155 Self
->XML_SetUserData(p
->p
, p
);
162 struct EmuTrap stub_XML_ExternalEntityParserCreate
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ExternalEntityParserCreatePPC
};
164 static void stub_XML_ParserFreePPC(ULONG
*regarray
)
166 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
167 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
168 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
169 struct ExecIFace
*IExec
= ((struct ExpatBase
*)Self
->Data
.LibBase
)->IExec
;
171 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
173 Self
->XML_ParserFree(p
->p
);
177 struct EmuTrap stub_XML_ParserFree
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParserFreePPC
};
179 static int stub_XML_ParsePPC(ULONG
*regarray
)
181 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
182 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
183 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
185 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
186 Self
->XML_SetUserData(p
->p
, p
);
187 return Self
->XML_Parse(p
->p
, (const char *)regarray
[9], (int)regarray
[0], (int)regarray
[1]);
189 struct EmuTrap stub_XML_Parse
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParsePPC
};
191 static int stub_XML_ParseBufferPPC(ULONG
*regarray
)
193 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
194 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
195 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
197 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
198 return Self
->XML_ParseBuffer(p
->p
, (int)regarray
[0], (int)regarray
[1]);
200 struct EmuTrap stub_XML_ParseBuffer
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParseBufferPPC
};
202 static void * stub_XML_GetBufferPPC(ULONG
*regarray
)
204 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
205 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
206 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
208 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
209 return Self
->XML_GetBuffer(p
->p
, (int)regarray
[0]);
211 struct EmuTrap stub_XML_GetBuffer
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetBufferPPC
};
213 static void stub_XML_SetStartElementHandlerPPC(ULONG
*regarray
)
215 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
216 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
217 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
219 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
220 p
->startelementhandler
= (void *)regarray
[9];
221 Self
->XML_SetStartElementHandler(p
->p
, _68k_startelementhandler
);
223 struct EmuTrap stub_XML_SetStartElementHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetStartElementHandlerPPC
};
225 static void stub_XML_SetEndElementHandlerPPC(ULONG
*regarray
)
227 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
228 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
229 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
231 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
232 p
->endelementhandler
= (void *)regarray
[9];
233 Self
->XML_SetEndElementHandler(p
->p
, _68k_endelementhandler
);
235 struct EmuTrap stub_XML_SetEndElementHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetEndElementHandlerPPC
};
237 static void stub_XML_SetElementHandlerPPC(ULONG
*regarray
)
239 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
240 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
241 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
243 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
244 p
->startelementhandler
= (void *)regarray
[9];
245 p
->endelementhandler
= (void *)regarray
[10];
246 Self
->XML_SetElementHandler(p
->p
, _68k_startelementhandler
, _68k_endelementhandler
);
248 struct EmuTrap stub_XML_SetElementHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetElementHandlerPPC
};
250 static void stub_XML_SetCharacterDataHandlerPPC(ULONG
*regarray
)
252 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
253 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
254 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
256 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
257 p
->chardatahandler
= (void *)regarray
[9];
258 Self
->XML_SetCharacterDataHandler(p
->p
, _68k_chardatahandler
);
260 struct EmuTrap stub_XML_SetCharacterDataHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetCharacterDataHandlerPPC
};
262 static void stub_XML_SetProcessingInstructionHandlerPPC(ULONG
*regarray
)
264 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
265 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
266 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
268 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
269 p
->procinsthandler
= (void *)regarray
[9];
270 Self
->XML_SetProcessingInstructionHandler(p
->p
, _68k_procinsthandler
);
272 struct EmuTrap stub_XML_SetProcessingInstructionHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetProcessingInstructionHandlerPPC
};
274 static void stub_XML_SetCommentHandlerPPC(ULONG
*regarray
)
276 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
277 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
278 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
280 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
281 p
->commenthandler
= (void *)regarray
[9];
282 Self
->XML_SetCommentHandler(p
->p
, _68k_commenthandler
);
284 struct EmuTrap stub_XML_SetCommentHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetCommentHandlerPPC
};
286 static void stub_XML_SetStartCdataSectionHandlerPPC(ULONG
*regarray
)
288 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
289 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
290 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
292 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
293 p
->startcdatahandler
= (void *)regarray
[9];
294 Self
->XML_SetStartCdataSectionHandler(p
->p
, _68k_startcdatahandler
);
296 struct EmuTrap stub_XML_SetStartCdataSectionHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetStartCdataSectionHandlerPPC
};
298 static void stub_XML_SetEndCdataSectionHandlerPPC(ULONG
*regarray
)
300 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
301 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
302 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
304 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
305 p
->endcdatahandler
= (void *)regarray
[9];
306 Self
->XML_SetEndCdataSectionHandler(p
->p
, _68k_endcdatahandler
);
308 struct EmuTrap stub_XML_SetEndCdataSectionHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetEndCdataSectionHandlerPPC
};
310 static void stub_XML_SetCdataSectionHandlerPPC(ULONG
*regarray
)
312 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
313 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
314 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
316 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
317 p
->startcdatahandler
= (void *)regarray
[9];
318 p
->endcdatahandler
= (void *)regarray
[10];
319 Self
->XML_SetCdataSectionHandler(p
->p
, _68k_startcdatahandler
, _68k_endcdatahandler
);
321 struct EmuTrap stub_XML_SetCdataSectionHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetCdataSectionHandlerPPC
};
323 static void stub_XML_SetDefaultHandlerPPC(ULONG
*regarray
)
325 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
326 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
327 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
329 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
330 p
->defaulthandler
= (void *)regarray
[9];
331 Self
->XML_SetDefaultHandler(p
->p
, _68k_defaulthandler
);
333 struct EmuTrap stub_XML_SetDefaultHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetDefaultHandlerPPC
};
335 static void stub_XML_SetDefaultHandlerExpandPPC(ULONG
*regarray
)
337 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
338 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
339 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
341 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
342 p
->defaulthandlerexp
= (void *)regarray
[9];
343 Self
->XML_SetDefaultHandlerExpand(p
->p
, _68k_defaulthandlerexp
);
345 struct EmuTrap stub_XML_SetDefaultHandlerExpand
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetDefaultHandlerExpandPPC
};
347 static void stub_XML_SetExternalEntityRefHandlerPPC(ULONG
*regarray
)
349 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
350 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
351 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
353 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
354 p
->extentrefhandler
= (void *)regarray
[9];
355 Self
->XML_SetExternalEntityRefHandler(p
->p
, _68k_extentrefhandler
);
357 struct EmuTrap stub_XML_SetExternalEntityRefHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetExternalEntityRefHandlerPPC
};
359 static void stub_XML_SetExternalEntityRefHandlerArgPPC(ULONG
*regarray
)
361 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
362 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
363 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
365 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
366 p
->extenthandlerarg
= (void *)regarray
[9];
368 struct EmuTrap stub_XML_SetExternalEntityRefHandlerArg
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetExternalEntityRefHandlerArgPPC
};
370 static void stub_XML_SetUnknownEncodingHandlerPPC(ULONG
*regarray
)
372 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
373 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
374 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
376 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
377 p
->unknownenchandler
= (void *)regarray
[9];
378 p
->enchandlerarg
= (void *)regarray
[10];
379 Self
->XML_SetUnknownEncodingHandler(p
->p
, _68k_unknownenchandler
, p
);
381 struct EmuTrap stub_XML_SetUnknownEncodingHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetUnknownEncodingHandlerPPC
};
383 static void stub_XML_SetStartNamespaceDeclHandlerPPC(ULONG
*regarray
)
385 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
386 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
387 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
389 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
390 p
->startnamespacehandler
= (void *)regarray
[9];
391 Self
->XML_SetStartNamespaceDeclHandler(p
->p
, _68k_startnamespacehandler
);
393 struct EmuTrap stub_XML_SetStartNamespaceDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetStartNamespaceDeclHandlerPPC
};
395 static void stub_XML_SetEndNamespaceDeclHandlerPPC(ULONG
*regarray
)
397 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
398 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
399 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
401 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
402 p
->endnamespacehandler
= (void *)regarray
[9];
403 Self
->XML_SetEndNamespaceDeclHandler(p
->p
, _68k_endnamespacehandler
);
405 struct EmuTrap stub_XML_SetEndNamespaceDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetEndNamespaceDeclHandlerPPC
};
407 static void stub_XML_SetNamespaceDeclHandlerPPC(ULONG
*regarray
)
409 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
410 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
411 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
413 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
414 p
->startnamespacehandler
= (void *)regarray
[9];
415 p
->endnamespacehandler
= (void *)regarray
[10];
416 Self
->XML_SetNamespaceDeclHandler(p
->p
, _68k_startnamespacehandler
, _68k_endnamespacehandler
);
418 struct EmuTrap stub_XML_SetNamespaceDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetNamespaceDeclHandlerPPC
};
420 static void stub_XML_SetXmlDeclHandlerPPC(ULONG
*regarray
)
422 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
423 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
424 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
426 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
427 p
->xmldeclhandler
= (void *)regarray
[9];
428 Self
->XML_SetXmlDeclHandler(p
->p
, _68k_xmldeclhandler
);
430 struct EmuTrap stub_XML_SetXmlDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetXmlDeclHandlerPPC
};
432 static void stub_XML_SetStartDoctypeDeclHandlerPPC(ULONG
*regarray
)
434 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
435 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
436 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
438 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
439 p
->startdoctypehandler
= (void *)regarray
[9];
440 Self
->XML_SetStartDoctypeDeclHandler(p
->p
, _68k_startdoctypehandler
);
442 struct EmuTrap stub_XML_SetStartDoctypeDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetStartDoctypeDeclHandlerPPC
};
444 static void stub_XML_SetEndDoctypeDeclHandlerPPC(ULONG
*regarray
)
446 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
447 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
448 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
450 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
451 p
->enddoctypehandler
= (void *)regarray
[9];
452 Self
->XML_SetEndDoctypeDeclHandler(p
->p
, _68k_enddoctypehandler
);
454 struct EmuTrap stub_XML_SetEndDoctypeDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetEndDoctypeDeclHandlerPPC
};
456 static void stub_XML_SetDoctypeDeclHandlerPPC(ULONG
*regarray
)
458 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
459 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
460 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
462 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
463 p
->startdoctypehandler
= (void *)regarray
[9];
464 p
->enddoctypehandler
= (void *)regarray
[10];
465 Self
->XML_SetDoctypeDeclHandler(p
->p
, _68k_startdoctypehandler
, _68k_enddoctypehandler
);
467 struct EmuTrap stub_XML_SetDoctypeDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetDoctypeDeclHandlerPPC
};
469 static void stub_XML_SetElementDeclHandlerPPC(ULONG
*regarray
)
471 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
472 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
473 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
475 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
476 p
->elementdeclhandler
= (void *)regarray
[9];
477 Self
->XML_SetElementDeclHandler(p
->p
, _68k_elementdeclhandler
);
479 struct EmuTrap stub_XML_SetElementDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetElementDeclHandlerPPC
};
481 static void stub_XML_SetAttlistDeclHandlerPPC(ULONG
*regarray
)
483 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
484 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
485 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
487 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
488 p
->attlistdeclhandler
= (void *)regarray
[9];
489 Self
->XML_SetAttlistDeclHandler(p
->p
, _68k_attlistdeclhandler
);
491 struct EmuTrap stub_XML_SetAttlistDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetAttlistDeclHandlerPPC
};
493 static void stub_XML_SetEntityDeclHandlerPPC(ULONG
*regarray
)
495 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
496 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
497 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
499 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
500 p
->entitydeclhandler
= (void *)regarray
[9];
501 Self
->XML_SetEntityDeclHandler(p
->p
, _68k_entitydeclhandler
);
503 struct EmuTrap stub_XML_SetEntityDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetEntityDeclHandlerPPC
};
505 static void stub_XML_SetUnparsedEntityDeclHandlerPPC(ULONG
*regarray
)
507 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
508 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
509 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
511 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
512 p
->unparseddeclhandler
= (void *)regarray
[9];
513 Self
->XML_SetUnparsedEntityDeclHandler(p
->p
, _68k_unparseddeclhandler
);
515 struct EmuTrap stub_XML_SetUnparsedEntityDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetUnparsedEntityDeclHandlerPPC
};
517 static void stub_XML_SetNotationDeclHandlerPPC(ULONG
*regarray
)
519 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
520 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
521 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
523 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
524 p
->notationdeclhandler
= (void *)regarray
[9];
525 Self
->XML_SetNotationDeclHandler(p
->p
, _68k_notationdeclhandler
);
527 struct EmuTrap stub_XML_SetNotationDeclHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetNotationDeclHandlerPPC
};
529 static void stub_XML_SetNotStandaloneHandlerPPC(ULONG
*regarray
)
531 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
532 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
533 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
535 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
536 p
->notstandalonehandler
= (void *)regarray
[9];
537 Self
->XML_SetNotStandaloneHandler(p
->p
, _68k_notstandalonehandler
);
539 struct EmuTrap stub_XML_SetNotStandaloneHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetNotStandaloneHandlerPPC
};
541 static int stub_XML_GetErrorCodePPC(ULONG
*regarray
)
543 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
544 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
545 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
547 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
548 return Self
->XML_GetErrorCode(p
->p
);
550 struct EmuTrap stub_XML_GetErrorCode
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetErrorCodePPC
};
552 static const XML_LChar
* stub_XML_ErrorStringPPC(ULONG
*regarray
)
554 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
555 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
556 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
558 return Self
->XML_ErrorString((int)regarray
[0]);
560 struct EmuTrap stub_XML_ErrorString
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ErrorStringPPC
};
562 static long stub_XML_GetCurrentByteIndexPPC(ULONG
*regarray
)
564 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
565 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
566 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
568 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
569 return Self
->XML_GetCurrentByteIndex(p
->p
);
571 struct EmuTrap stub_XML_GetCurrentByteIndex
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetCurrentByteIndexPPC
};
573 static int stub_XML_GetCurrentLineNumberPPC(ULONG
*regarray
)
575 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
576 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
577 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
579 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
580 return Self
->XML_GetCurrentLineNumber(p
->p
);
582 struct EmuTrap stub_XML_GetCurrentLineNumber
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetCurrentLineNumberPPC
};
584 static int stub_XML_GetCurrentColumnNumberPPC(ULONG
*regarray
)
586 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
587 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
588 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
590 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
591 return Self
->XML_GetCurrentColumnNumber(p
->p
);
593 struct EmuTrap stub_XML_GetCurrentColumnNumber
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetCurrentColumnNumberPPC
};
595 static int stub_XML_GetCurrentByteCountPPC(ULONG
*regarray
)
597 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
598 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
599 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
601 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
602 return Self
->XML_GetCurrentByteCount(p
->p
);
604 struct EmuTrap stub_XML_GetCurrentByteCount
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetCurrentByteCountPPC
};
606 static const char * stub_XML_GetInputContextPPC(ULONG
*regarray
)
608 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
609 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
610 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
612 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
613 return Self
->XML_GetInputContext(p
->p
, (int *)regarray
[9], (int *)regarray
[10]);
615 struct EmuTrap stub_XML_GetInputContext
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetInputContextPPC
};
617 static void stub_XML_SetUserDataPPC(ULONG
*regarray
)
619 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
620 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
621 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
623 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
624 p
->handlerarg
= (void *)regarray
[9];
626 struct EmuTrap stub_XML_SetUserData
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetUserDataPPC
};
628 static void stub_XML_DefaultCurrentPPC(ULONG
*regarray
)
630 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
631 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
632 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
634 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
635 Self
->XML_DefaultCurrent(p
->p
);
637 struct EmuTrap stub_XML_DefaultCurrent
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_DefaultCurrentPPC
};
639 static void stub_XML_UseParserAsHandlerArgPPC(ULONG
*regarray
)
641 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
642 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
643 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
645 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
648 struct EmuTrap stub_XML_UseParserAsHandlerArg
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_UseParserAsHandlerArgPPC
};
650 static int stub_XML_SetBasePPC(ULONG
*regarray
)
652 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
653 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
654 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
656 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
657 return Self
->XML_SetBase(p
->p
, (const XML_Char
*)regarray
[9]);
659 struct EmuTrap stub_XML_SetBase
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetBasePPC
};
661 static const XML_Char
* stub_XML_GetBasePPC(ULONG
*regarray
)
663 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
664 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
665 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
667 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
668 return Self
->XML_GetBase(p
->p
);
670 struct EmuTrap stub_XML_GetBase
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetBasePPC
};
672 static int stub_XML_GetSpecifiedAttributeCountPPC(ULONG
*regarray
)
674 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
675 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
676 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
678 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
679 return Self
->XML_GetSpecifiedAttributeCount(p
->p
);
681 struct EmuTrap stub_XML_GetSpecifiedAttributeCount
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetSpecifiedAttributeCountPPC
};
683 static int stub_XML_GetIdAttributeIndexPPC(ULONG
*regarray
)
685 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
686 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
687 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
689 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
690 return Self
->XML_GetIdAttributeIndex(p
->p
);
692 struct EmuTrap stub_XML_GetIdAttributeIndex
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetIdAttributeIndexPPC
};
694 static int stub_XML_SetEncodingPPC(ULONG
*regarray
)
696 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
697 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
698 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
700 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
701 return Self
->XML_SetEncoding(p
->p
, (const XML_Char
*)regarray
[9]);
703 struct EmuTrap stub_XML_SetEncoding
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetEncodingPPC
};
705 static int stub_XML_SetParamEntityParsingPPC(ULONG
*regarray
)
707 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
708 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
709 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
711 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
712 return Self
->XML_SetParamEntityParsing(p
->p
, (enum XML_ParamEntityParsing
)regarray
[9]);
714 struct EmuTrap stub_XML_SetParamEntityParsing
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetParamEntityParsingPPC
};
716 static void stub_XML_SetReturnNSTripletPPC(ULONG
*regarray
)
718 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
719 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
720 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
722 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
723 Self
->XML_SetReturnNSTriplet(p
->p
, (int)regarray
[0]);
725 struct EmuTrap stub_XML_SetReturnNSTriplet
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetReturnNSTripletPPC
};
727 static const XML_LChar
* stub_XML_ExpatVersionPPC(ULONG
*regarray
)
729 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
730 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
731 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
733 return Self
->XML_ExpatVersion();
735 struct EmuTrap stub_XML_ExpatVersion
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ExpatVersionPPC
};
737 static XML_Expat_Version
stub_XML_ExpatVersionInfoPPC(ULONG
*regarray
)
739 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
740 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
741 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
743 return Self
->XML_ExpatVersionInfo();
745 struct EmuTrap stub_XML_ExpatVersionInfo
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ExpatVersionInfoPPC
};
747 static int stub_XML_ParserResetPPC(ULONG
*regarray
)
749 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
750 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
751 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
753 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
754 return Self
->XML_ParserReset(p
->p
, (const XML_Char
*)regarray
[9]);
756 struct EmuTrap stub_XML_ParserReset
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ParserResetPPC
};
758 static void stub_XML_SetSkippedEntityHandlerPPC(ULONG
*regarray
)
760 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
761 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
762 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
764 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
765 p
->skippedentityhandler
= (void *)regarray
[9];
766 Self
->XML_SetSkippedEntityHandler(p
->p
, _68k_skippedentityhandler
);
768 struct EmuTrap stub_XML_SetSkippedEntityHandler
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_SetSkippedEntityHandlerPPC
};
770 static int stub_XML_UseForeignDTDPPC(ULONG
*regarray
)
772 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
773 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
774 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
776 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
777 return Self
->XML_UseForeignDTD(p
->p
, (XML_Bool
)regarray
[0]);
779 struct EmuTrap stub_XML_UseForeignDTD
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_UseForeignDTDPPC
};
781 static const XML_Feature
* stub_XML_GetFeatureListPPC(ULONG
*regarray
)
783 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
784 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
785 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
787 return Self
->XML_GetFeatureList();
789 struct EmuTrap stub_XML_GetFeatureList
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetFeatureListPPC
};
791 static int stub_XML_StopParserPPC(ULONG
*regarray
)
793 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
794 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
795 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
797 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
798 return Self
->XML_StopParser(p
->p
, (XML_Bool
)regarray
[0]);
800 struct EmuTrap stub_XML_StopParser
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_StopParserPPC
};
802 static int stub_XML_ResumeParserPPC(ULONG
*regarray
)
804 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
805 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
806 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
808 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
809 return Self
->XML_ResumeParser(p
->p
);
811 struct EmuTrap stub_XML_ResumeParser
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_ResumeParserPPC
};
813 static void stub_XML_GetParsingStatusPPC(ULONG
*regarray
)
815 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
816 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
817 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
819 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
820 Self
->XML_GetParsingStatus(p
->p
, (XML_ParsingStatus
*)regarray
[9]);
822 struct EmuTrap stub_XML_GetParsingStatus
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_GetParsingStatusPPC
};
824 static void stub_XML_FreeContentModelPPC(ULONG
*regarray
)
826 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
827 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
828 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
830 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
831 Self
->XML_FreeContentModel(p
->p
, (XML_Content
*)regarray
[9]);
833 struct EmuTrap stub_XML_FreeContentModel
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_FreeContentModelPPC
};
835 static void *stub_XML_MemMallocPPC(ULONG
*regarray
)
837 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
838 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
839 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
841 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
842 return Self
->XML_MemMalloc(p
->p
, (size_t)regarray
[0]);
844 struct EmuTrap stub_XML_MemMalloc
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_MemMallocPPC
};
846 static void *stub_XML_MemReallocPPC(ULONG
*regarray
)
848 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
849 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
850 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
852 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
853 return Self
->XML_MemRealloc(p
->p
, (void *)regarray
[9], (size_t)regarray
[0]);
855 struct EmuTrap stub_XML_MemRealloc
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_MemReallocPPC
};
857 static void stub_XML_MemFreePPC(ULONG
*regarray
)
859 struct Library
*Base
= (struct Library
*) regarray
[REG68K_A6
/4];
860 struct ExtendedLibrary
*ExtLib
= (struct ExtendedLibrary
*) ((ULONG
)Base
+ Base
->lib_PosSize
);
861 struct ExpatIFace
*Self
= (struct ExpatIFace
*) ExtLib
->MainIFace
;
863 M68kXML_Parser p
= (M68kXML_Parser
)regarray
[8];
864 Self
->XML_MemFree(p
->p
, (void *)regarray
[9]);
866 struct EmuTrap stub_XML_MemFree
= { TRAPINST
, TRAPTYPE
, (ULONG (*)(ULONG
*))stub_XML_MemFreePPC
};
868 ULONG VecTable68K
[] = {
871 (ULONG
)&stub_Expunge
,
872 (ULONG
)&stub_Reserved
,
873 (ULONG
)&stub_XML_ParserCreate
,
874 (ULONG
)&stub_XML_ParserCreateNS
,
875 (ULONG
)&stub_XML_ParserCreate_MM
,
876 (ULONG
)&stub_XML_ExternalEntityParserCreate
,
877 (ULONG
)&stub_XML_ParserFree
,
878 (ULONG
)&stub_XML_Parse
,
879 (ULONG
)&stub_XML_ParseBuffer
,
880 (ULONG
)&stub_XML_GetBuffer
,
881 (ULONG
)&stub_XML_SetStartElementHandler
,
882 (ULONG
)&stub_XML_SetEndElementHandler
,
883 (ULONG
)&stub_XML_SetElementHandler
,
884 (ULONG
)&stub_XML_SetCharacterDataHandler
,
885 (ULONG
)&stub_XML_SetProcessingInstructionHandler
,
886 (ULONG
)&stub_XML_SetCommentHandler
,
887 (ULONG
)&stub_XML_SetStartCdataSectionHandler
,
888 (ULONG
)&stub_XML_SetEndCdataSectionHandler
,
889 (ULONG
)&stub_XML_SetCdataSectionHandler
,
890 (ULONG
)&stub_XML_SetDefaultHandler
,
891 (ULONG
)&stub_XML_SetDefaultHandlerExpand
,
892 (ULONG
)&stub_XML_SetExternalEntityRefHandler
,
893 (ULONG
)&stub_XML_SetExternalEntityRefHandlerArg
,
894 (ULONG
)&stub_XML_SetUnknownEncodingHandler
,
895 (ULONG
)&stub_XML_SetStartNamespaceDeclHandler
,
896 (ULONG
)&stub_XML_SetEndNamespaceDeclHandler
,
897 (ULONG
)&stub_XML_SetNamespaceDeclHandler
,
898 (ULONG
)&stub_XML_SetXmlDeclHandler
,
899 (ULONG
)&stub_XML_SetStartDoctypeDeclHandler
,
900 (ULONG
)&stub_XML_SetEndDoctypeDeclHandler
,
901 (ULONG
)&stub_XML_SetDoctypeDeclHandler
,
902 (ULONG
)&stub_XML_SetElementDeclHandler
,
903 (ULONG
)&stub_XML_SetAttlistDeclHandler
,
904 (ULONG
)&stub_XML_SetEntityDeclHandler
,
905 (ULONG
)&stub_XML_SetUnparsedEntityDeclHandler
,
906 (ULONG
)&stub_XML_SetNotationDeclHandler
,
907 (ULONG
)&stub_XML_SetNotStandaloneHandler
,
908 (ULONG
)&stub_XML_GetErrorCode
,
909 (ULONG
)&stub_XML_ErrorString
,
910 (ULONG
)&stub_XML_GetCurrentByteIndex
,
911 (ULONG
)&stub_XML_GetCurrentLineNumber
,
912 (ULONG
)&stub_XML_GetCurrentColumnNumber
,
913 (ULONG
)&stub_XML_GetCurrentByteCount
,
914 (ULONG
)&stub_XML_GetInputContext
,
915 (ULONG
)&stub_XML_SetUserData
,
916 (ULONG
)&stub_XML_DefaultCurrent
,
917 (ULONG
)&stub_XML_UseParserAsHandlerArg
,
918 (ULONG
)&stub_XML_SetBase
,
919 (ULONG
)&stub_XML_GetBase
,
920 (ULONG
)&stub_XML_GetSpecifiedAttributeCount
,
921 (ULONG
)&stub_XML_GetIdAttributeIndex
,
922 (ULONG
)&stub_XML_SetEncoding
,
923 (ULONG
)&stub_XML_SetParamEntityParsing
,
924 (ULONG
)&stub_XML_SetReturnNSTriplet
,
925 (ULONG
)&stub_XML_ExpatVersion
,
926 (ULONG
)&stub_XML_ExpatVersionInfo
,
927 (ULONG
)&stub_XML_ParserReset
,
928 (ULONG
)&stub_XML_SetSkippedEntityHandler
,
929 (ULONG
)&stub_XML_UseForeignDTD
,
930 (ULONG
)&stub_XML_GetFeatureList
,
931 (ULONG
)&stub_XML_StopParser
,
932 (ULONG
)&stub_XML_ResumeParser
,
933 (ULONG
)&stub_XML_GetParsingStatus
,
934 (ULONG
)&stub_XML_FreeContentModel
,
935 (ULONG
)&stub_XML_MemMalloc
,
936 (ULONG
)&stub_XML_MemRealloc
,
937 (ULONG
)&stub_XML_MemFree
,