From 329956c38a1085d82a92faacdb56f0c1ea88de99 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 4 Dec 1996 18:52:15 +0000 Subject: [PATCH] lilypond-0.0.14 --- src/inputcursor.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/inputcursor.cc b/src/inputcursor.cc index c6f4bfbabd..4dc5f9310f 100644 --- a/src/inputcursor.cc +++ b/src/inputcursor.cc @@ -3,13 +3,14 @@ */ #include "inputcommands.hh" +#include "inputcommand.hh" #include "debug.hh" #include "staffcommands.hh" #include "getcommand.hh" #include "command.hh" void -interpret_meter(Command *c, int &beats_per_meas, int& one_beat, +interpret_meter(Input_command *c, int &beats_per_meas, int& one_beat, Real& whole_per_measure) { beats_per_meas = c->args[1].value(); @@ -41,8 +42,8 @@ Input_cursor::reset() last=0; } -Input_cursor :: Input_cursor(PCursorc) - :PCursor(c) +Input_cursor :: Input_cursor(PCursorc) + :PCursor(c) { reset(); } @@ -65,11 +66,11 @@ void Input_cursor::operator++(int) { last = when(); - (*(PCursor *) this) ++; + (*(PCursor *) this) ++; if (ok()) { sync(); - if (ptr()->code == INTERPRET && ptr()->args[0] == "METER") { + if (ptr()->args[0] == "METER") { int i,j; interpret_meter(ptr(), i, j, whole_per_measure); } @@ -77,7 +78,7 @@ Input_cursor::operator++(int) } void -Input_cursor::addbot(Command*c) +Input_cursor::addbot(Input_command*c) { assert(!ok()); add(c); @@ -85,9 +86,9 @@ Input_cursor::addbot(Command*c) void -Input_cursor::add(Command*c) +Input_cursor::add(Input_command*c) { - PCursor ::add(c); + PCursor ::add(c); (*this)++; } @@ -95,7 +96,7 @@ void Input_cursor::last_command_here() { assert(ok()); - PCursor next = (*this)+1; + PCursor next = (*this)+1; while (next.ok() && next->when == when()){ *this = next; next = *this +1; -- 2.39.5