I am trying to compile the following code
int backend_sm_run( struct interface_data *ctx)
{
xsup_assert((ct x != NULL), "ctx != NULL", TRUE);
xsup_assert((ct x->statemachine != NULL), "ctx->statemachine != NULL",
TRUE);
backend_sm_chec k_globals(check );
switch (ctx->statemachine->beCurState)
{
case INITIALIZE:
// We should *NEVER* get here!
backend_sm_do_i nitialize(ctx);
break;
case IDLE:
backend_sm_do_i dle(ctx);
break;
case REQUEST:
backend_sm_do_r equest(ctx);
break;
case RESPONSE:
backend_sm_do_r esponse(ctx);
break;
}
return XENONE;
}
"dereferenc ing pointer to incomplete type" error is thrown at lines
xsup_assert((ct x->statemachine != NULL), "ctx->statemachine != NULL",
TRUE);
and
switch (ctx->statemachine->beCurState).
interface_data structure is defined in "profile.h" which is been included.
Pls reply for any clarifications/suggestions
int backend_sm_run( struct interface_data *ctx)
{
xsup_assert((ct x != NULL), "ctx != NULL", TRUE);
xsup_assert((ct x->statemachine != NULL), "ctx->statemachine != NULL",
TRUE);
backend_sm_chec k_globals(check );
switch (ctx->statemachine->beCurState)
{
case INITIALIZE:
// We should *NEVER* get here!
backend_sm_do_i nitialize(ctx);
break;
case IDLE:
backend_sm_do_i dle(ctx);
break;
case REQUEST:
backend_sm_do_r equest(ctx);
break;
case RESPONSE:
backend_sm_do_r esponse(ctx);
break;
}
return XENONE;
}
"dereferenc ing pointer to incomplete type" error is thrown at lines
xsup_assert((ct x->statemachine != NULL), "ctx->statemachine != NULL",
TRUE);
and
switch (ctx->statemachine->beCurState).
interface_data structure is defined in "profile.h" which is been included.
Pls reply for any clarifications/suggestions
Comment