]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.4
authorfred <fred>
Mon, 21 Oct 1996 21:45:05 +0000 (21:45 +0000)
committerfred <fred>
Mon, 21 Oct 1996 21:45:05 +0000 (21:45 +0000)
.dstreamrc
tstream.cc

index ec6e96fabc685956b257e15c5664d6565ea38fe7..b5fa669d14f81cb13fb8316adee185e206c6187d 100644 (file)
@@ -12,4 +12,5 @@ PScore                        1
 Parser                 1
 Lexer                  1
 parse_duration         1
-parse_pitch            1
\ No newline at end of file
+parse_pitch            1
+
index c47fca6da6da3b2f52be6da849d012cf7c01fb8d..b7c88f1b0bc7a379d6c1c1be9e3bf84e512da2b3 100644 (file)
@@ -1,16 +1,15 @@
 #include <fstream.h>
 #include <time.h>
 #include "tex.hh"
-#include "misc.hh"
+#include "main.hh"
 #include "tstream.hh"
 #include "debug.hh"
 
 Tex_stream::Tex_stream(String filename) 
 {
-    
     os = new ofstream(filename);
     if (!*os)
-       error("can't open " + filename);
+       error("can't open `" + filename+"\'");
     nest_level = 0;
     outputting_comment=false;
     header();
@@ -18,16 +17,16 @@ Tex_stream::Tex_stream(String filename)
 void
 Tex_stream::header()
 {
-    *os << "% Creator: " << get_version() << "\n";
+    *os << "% Creator: " << get_version();
     *os << "% Automatically generated, at ";
     time_t t(time(0));
-    *os << ctime(&t)<<"\n";
+    *os << ctime(&t);
 //*os << "% from input file ..\n";    
 }
 Tex_stream::~Tex_stream()
 {
-    assert(nest_level == 0);
     delete os;
+    assert(nest_level == 0);
 }
 
 // print string. don't forget indent.