2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Defines and macros to create and fill an inittable Lang: english
8 # define _INITSTRUCT_H_
10 # include <exec/types.h>
17 # define S_DEF(i,l) union \
19 struct _##i { l } _l; \
20 char _s[(sizeof(struct _##i)+AROS_LONGALIGN-1)&~(AROS_LONGALIGN-1)]; \
28 # define S_CPY(i,n,t) S_DEF(i,UBYTE _cmd; type_##t _data[(n)];)
29 # define S_REP(i,n,t) S_DEF(i,UBYTE _cmd; type_##t _data;)
30 # define S_CPYO(i,n,t) S_DEF(i,UBYTE _cmd; UBYTE _ofst; type_##t _data[(n)];)
31 # define S_CPYO24(i,n,t) S_DEF(i,ULONG _cmd; type_##t _data[(n)];)
32 # define S_END(i) UBYTE _##i
33 # define I_CPY(n,t) CODE_##t|((n)-1)
34 # define I_REP(n,t) 0x40|CODE_##t|((n)-1)
35 # define I_CPYO(n,t,o) 0x80|CODE_##t|((n)-1), (o)
37 # define I_CPYO24(n,t,o) (0xc0|CODE_##t|((n)-1))<<24|(o)
39 # define I_CPYO24(n,t,o) 0xc0|CODE_##t|((n)-1)|(o)<<8