/*..........................................................................*/ static QHsm *Entry_ctor(raid5_entry_t *rentry) { Entry *me; Entry *entry; /* allocate the memory */ me = entry = entry_alloc(); Q_ASSERT(me != NULL); QS_OBJ_DICTIONARY(entry); /* QS_OBJ_DICTIONARY(entry->x); */ QS_SIG_DICTIONARY(DIR_REQUEST_SIG, me); QS_SIG_DICTIONARY(DIR_UPDATE_SIG, me); QS_SIG_DICTIONARY(DIR_INSERT_SIG, me); /* adding free list */ list_add_tail(&me->entry, &rentry->free); /* call QHsm */ QHsm_ctor(&me->super, (QStateHandler)&Entry_initial); return &me->super; }
/*${SMs::ToastOven_ctor} ...................................................*/ void ToastOven_ctor(void) { ToastOven *me = &l_oven; QHsm_ctor(&me->super, Q_STATE_CAST(&ToastOven_initial)); }
/*..........................................................................*/ void NumEntry_ctor(NumEntry *me) { /* ctor */ QHsm_ctor(&me->super, (QStateHandler)&NumEntry_initial); }
/*..........................................................................*/ void QHsmTst_ctor(void) { QHsmTst *me = &l_hsmtst; QHsm_ctor(&me->super, (QStateHandler)&QHsmTst_initial); }
/* @(/1/1) .................................................................*/ void QHsmTst_ctor(void) { QHsmTst *me = &l_hsmtst; QHsm_ctor(&me->super, Q_STATE_CAST(&QHsmTst_initial)); }
/*..........................................................................*/ void QHsmTst_ctor(void) { QHsm_ctor(&HSM_QHsmTst.super, (QStateHandler)&QHsmTst_initial); }
/*..........................................................................*/ void UltimateHook_ctor(UltimateHook *me) { QHsm_ctor(&me->super, (QStateHandler)&UltimateHook_initial); }
/*..........................................................................*/ static void ToastOven_ctor(ToastOven * const me) { /* default ctor */ QHsm_ctor(&me->super, Q_STATE_CAST(&ToastOven_initial)); }
/*..........................................................................*/ void ToasterOven_ctor(ToasterOven *me) { /* default ctor */ QHsm_ctor(&me->super, (QStateHandler)&ToasterOven_initial); }
/* @(/1/10) ................................................................*/ void Tag_ctor(Tag *me) { QHsm_ctor(&me->super, (QStateHandler)&Tag_Initial); }
void QCalc_ctor(QCalc *me) { QHsm_ctor(&me->super, (QStateHandler)&QCalc_initial); }
/*${AOs::Philo::ctor} ......................................................*/ void Philo_ctor(Philo * const me, uint8_t num) { QHsm_ctor(&me->super, Q_STATE_CAST(&Philo_initial)); me->num = num; }
/*..........................................................................*/ void Calc_ctor(void) { Calc *me = &l_calc; QHsm_ctor(&me->super, Q_STATE_CAST(&Calc_initial)); }