Mercurial > hg > Members > koba > t_dandy
view spe/SimpleState.cc @ 27:871f7d9a2f35
running.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 27 Dec 2010 17:21:24 +0900 (2010-12-27) |
parents | 927401604461 |
children |
line wrap: on
line source
#include "SimpleState.h" #include "Character_state.h" #include "tobject.h" SchedDefineTask(SimpleState); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); p = (*p->state)(p); smanager->swap(); return 0; }