source file of the GNU LilyPond music typesetter
- (c) 1997--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1997--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/
-
-#include <errno.h>
-
#include "midi-stream.hh"
+#include <cerrno>
+using namespace std;
+
#include "stream.hh"
#include "string-convert.hh"
#include "main.hh"
#include "misc.hh"
#include "midi-item.hh"
#include "warn.hh"
-#include "scm-option.hh"
+#include "program-option.hh"
Midi_stream::Midi_stream (String file_name)
{
sz, n, out_file_);
if (written != sz * n)
- warning (_ ("could not write file: `%s'"));
+ warning (_ ("can't write to file: `%s'"));
return *this;
}
String str = midi_c_r.to_string ();
// ugh, should have separate debugging output with Midi*::print routines
- if (midi_debug_global_b)
+ if (do_midi_debugging_global)
{
str = String_convert::bin2hex (str) + "\n";
for (int i = str.index ("0a"); i >= 0; i = str.index ("0a"))
return operator << (str);
}
-Midi_stream&
+Midi_stream &
Midi_stream::operator << (int i)
{
// output binary string ourselves