From: Ian Jackson Date: Sun, 13 Feb 2011 21:26:25 +0000 (+0000) Subject: realtime: break out new function movpos.c:ouposn_feat X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=e029d4ed678cc3eb16156a48466552e884fb0d1f;p=trains.git realtime: break out new function movpos.c:ouposn_feat --- diff --git a/hostside/movpos.c b/hostside/movpos.c index 02ed4b3..b133267 100644 --- a/hostside/movpos.c +++ b/hostside/movpos.c @@ -117,6 +117,11 @@ static void ouposn_stable(const Segment *move) { ouprintf("movpos %s position %s stable\n", move->i->pname, movpos_pname(move, move->movposcomb)); } +static void ouposn_feat(const Segment *move, const MovFeatInfo *feati, + MovPosComb posn, const Method *m) { + ouprintf("movpos %s feat %s %d %s\n", move->i->pname, + feati->pname, posn, m->pname); +} MovPosComb movposcomb_update_feature(MovPosComb startpoint, const MovFeatInfo *mfi, @@ -698,8 +703,7 @@ static Method *methods[]= { static void method_update_feature(Method *m, MovPosChange *indep, const Motion *mo) { - ouprintf("movpos %s feat %s %d %s\n", indep->move->i->pname, - mo->i->pname, mo->posn, m->pname); + ouposn_feat(indep->move, mo->i, mo->posn, m); if (SOMEP(indep->actual)) indep->actual= movposcomb_update_feature(indep->actual, mo->i, mo->posn);