Preprocessor macro expanding to structure entries
#include <SPAD/AC.H>
struct s { IORQ_HEAD; more entries ...; };
This macro can be prepended at the beginning of a structure to add IORQ entries. The strucure with IORQ_HEAD
at the beginning can be cast to structure AST
or structure IORQ
and can be passed to functions and macros that expect AST
or IORQ
.
IORQ_HEAD
adds these entries to the structure:
AST_STUB *fn;
unsigned long tmp1;
unsigned long tmp2;
unsigned long tmp3;
unsigned long status;
It may add additional architecture-specific entries.