From: fred Date: Wed, 4 Dec 1996 18:52:15 +0000 (+0000) Subject: lilypond-0.0.14 X-Git-Tag: release/1.5.59~6675 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=329956c38a1085d82a92faacdb56f0c1ea88de99;p=lilypond.git lilypond-0.0.14 --- 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;