chiark / gitweb /
safety: movpos: rename movposcomb_update_feature to movposcomb_feature_update (and...
[trains.git] / hostside / movpos.c
index 4222103c3b3c3b431b3752fbf128b706ff9bedb5..2d05b3c4b5de711d1c72e42d995c0f76c006cc27 100644 (file)
@@ -131,9 +131,8 @@ static void ouposn_feat(const Segment *move, const MovFeatInfo *feati,
           feati->pname, posn, m->pname);
 }
 
-MovPosComb movposcomb_update_feature(MovPosComb startpoint,
-                                    const MovFeatInfo *mfi,
-                                    int featpos) {
+MovPosComb movposcomb_feature_update(const MovFeatInfo *mfi,
+                                    MovPosComb startpoint, int featpos) {
   MovPosComb above_weight= mfi->weight * mfi->posns;
   MovPosComb above= startpoint / above_weight;
   MovPosComb below= startpoint % mfi->weight;
@@ -711,7 +710,7 @@ static void method_update_feature(Method *m, MovPosChange *indep,
   assert(featix >= 0 && featix < indep->move->i->n_movfeats);
   ouposn_feat(indep->move, mo->i, mo->posn, m);
   indep->actualpos=
-    movposcomb_update_feature(indep->actualpos, mo->i, mo->posn);
+    movposcomb_feature_update(mo->i, indep->actualpos, mo->posn);
   indep->actualunk &= ~unkfeatbit(featix);
   ouposn_moving(indep);
 }