chiark / gitweb /
realtime: break out new function movpos.c:ouposn_feat
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 13 Feb 2011 21:26:25 +0000 (21:26 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 13 Feb 2011 21:26:25 +0000 (21:26 +0000)
hostside/movpos.c

index 02ed4b39b84947b8a3f8f0b73ea0805794aab924..b13326761792cb50868b7ebb44cdab775948ed25 100644 (file)
@@ -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);