arch/cpu.resource: remove dead code
[AROS.git] / workbench / classes / zune / texteditor / include / mccclass_68k.c
blob59139145a7d3c83b4454c6fac06bbbfea09ba3cb
1 /*
2 ** This file was automatically generated by fdtrans 51.14.
3 ** Do not edit it by hand. Instead, edit the sfd file
4 ** that was used to generate this file
5 */
7 #ifdef __USE_INLINE__
8 #undef __USE_INLINE__
9 #endif
10 #ifndef __NOGLOBALIFACE__
11 #define __NOGLOBALIFACE__
12 #endif
14 #include <exec/interfaces.h>
15 #include <exec/libraries.h>
16 #include <exec/emulation.h>
17 #include <interfaces/exec.h>
18 #include <interfaces/mccclass.h>
19 #include <proto/mccclass.h>
22 static inline int8 convert_int8 (uint32 x) { return x; }
23 static inline int16 convert_int16(uint32 x) { return x; }
26 STATIC struct Library * stub_OpenPPC(ULONG *regarray)
28 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
29 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
30 struct LibraryManagerInterface *Self = (struct LibraryManagerInterface *) ExtLib->ILibrary;
32 return Self->Open(0);
34 STATIC CONST struct EmuTrap stub_Open = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_OpenPPC };
36 STATIC APTR stub_ClosePPC(ULONG *regarray)
38 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
39 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
40 struct LibraryManagerInterface *Self = (struct LibraryManagerInterface *) ExtLib->ILibrary;
42 return Self->Close();
44 STATIC CONST struct EmuTrap stub_Close = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_ClosePPC };
46 STATIC APTR stub_ExpungePPC(ULONG *regarray __attribute__((unused)))
48 return NULL;
50 STATIC CONST struct EmuTrap stub_Expunge = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_ExpungePPC };
52 STATIC ULONG stub_ReservedPPC(ULONG *regarray __attribute__((unused)))
54 return 0UL;
56 STATIC CONST struct EmuTrap stub_Reserved = { TRAPINST, TRAPTYPE, stub_ReservedPPC };
58 static ULONG stub_MCC_QueryPPC(ULONG *regarray)
60 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
61 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
62 struct MCCClassIFace *Self = (struct MCCClassIFace *) ExtLib->MainIFace;
64 return Self->MCC_Query(
65 (LONG)regarray[0]
68 STATIC CONST struct EmuTrap stub_MCC_Query = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_MCC_QueryPPC };
70 CONST CONST_APTR VecTable68K[] =
72 &stub_Open,
73 &stub_Close,
74 &stub_Expunge,
75 &stub_Reserved,
76 &stub_MCC_Query,
77 (CONST_APTR)-1