typedef struct {
unsigned short control_flag;
int qfd;
...
} scratchpad;
scratchpad *options;
FNC_Phase Phase;
if (FNC_GetPhase(&Phase) == TBL_MODE_CONST)
{
switch(Phase)
{
case TBL_PRE_INIT:
{
...
}
case TBL_INIT:
{
options = FNC_TblGetCtx();
if (options->control_flag)
{
...
}
}
...
}
}
...