summaryrefslogtreecommitdiff
path: root/command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'command.cc')
-rw-r--r--command.cc42
1 files changed, 12 insertions, 30 deletions
diff --git a/command.cc b/command.cc
index 6375c7e6d3..23edf1ec36 100644
--- a/command.cc
+++ b/command.cc
@@ -5,39 +5,14 @@
bool
Command::isbreak()const
{
- return (code >= BREAK_PRE&&code <= BREAK_END);
+ return (code >= BREAK_PRE && code <= BREAK_END);
}
-Command*
-get_bar_command(Real w)
-{
- Command*c = new Command;
- c->when = w;
- c->code = TYPESET;
- c->args.add( "BAR");
- c->args.add( "|");
- return c;
-}
-
-Command *
-get_meter_command(Real w, int n, int m)
-{
- Command*c = new Command;
-
- c->when = w;
- c->code = TYPESET;
- c->args.add( "METER");
- c->args.add( n );
- c->args.add( m );
- return c;
-}
-
-
-
Command::Command()
{
code = NOP;
when = -1;
+ priority=0;
}
@@ -46,12 +21,19 @@ Command::Command(Real w)
{
code = NOP;
when = w;
+ priority=0;
}
+
void
Command::print() const
{
- mtor << "command code: " << code << " args: ";
- for (int i = 0; i<args.sz(); i++)
- mtor << args[i];
+#ifndef NPRINT
+ mtor << "command at " << when << ", code " << code << " prio " << priority;
+ if (args.sz()) {
+ mtor<< " args: ";
+ for (int i = 0; i<args.sz(); i++)
+ mtor << "`"<<args[i] <<"',";
+ }
mtor << "\n";
+#endif
}