]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/text-stream.cc
release: 1.5.36
[lilypond.git] / flower / text-stream.cc
index cb88bcd498165d5db03eff0170050c90c5b524cf..e6a1202a14769970432b83edced5768433eba07b 100644 (file)
@@ -1,9 +1,10 @@
+#include <stdlib.h>
 #include <iostream.h>
 #include "text-stream.hh"
 
 Text_stream::Text_stream (String fn)
 {
-  ios::sync_with_stdio();
+  ios::sync_with_stdio ();
   if (fn == "")
     {
       name = _ ("<stdin>");
@@ -19,7 +20,7 @@ Text_stream::Text_stream (String fn)
   if (!f)
     {
       cerr << __FUNCTION__ 
-          << ": " << _f ("Can't open file: `%s'", fn) << '\n';
+          << ": " << _f ("can't open file: `%s'", fn) << '\n';
       exit (1);
     }
 
@@ -29,7 +30,7 @@ Text_stream::Text_stream (String fn)
 void
 Text_stream::message (String s)
 {
-  cerr << '\n'<<get_name() << ": " << line ()<<": "<<s<<endl;
+  cerr << '\n'<<get_name () << ": " << line ()<<": "<<s<<endl;
 }
 
 bool
@@ -41,9 +42,9 @@ Text_stream::eof_b ()
       feof (f);
 }
 
-Text_stream::~Text_stream()
+Text_stream::~Text_stream ()
 {
-    if (!eof_b()) 
+    if (!eof_b ()) 
       cerr <<__FUNCTION__<< ": closing unended file";
     
     fclose (f);