]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.9
authorfred <fred>
Thu, 10 Oct 1996 19:42:39 +0000 (19:42 +0000)
committerfred <fred>
Thu, 10 Oct 1996 19:42:39 +0000 (19:42 +0000)
hdr/tstream.hh [new file with mode: 0644]
src/version.cc [new file with mode: 0644]

diff --git a/hdr/tstream.hh b/hdr/tstream.hh
new file mode 100644 (file)
index 0000000..9474dd6
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef TSTREAM__HH
+#define TSTREAM__HH
+
+#include <iostream.h>
+#include "string.hh"
+
+/// TeX output
+struct Tex_stream {
+    bool outputting_comment;
+    ostream *os;
+    int nest_level;
+    
+    /// open a file for writing
+    Tex_stream(String filename);
+    void header();
+    /// delegate conversion to string class.
+    Tex_stream &operator<<(String);
+
+    /// close the file
+    ~Tex_stream();
+};
+/**
+  Use this class for writing to a TeX file.
+  It counts braces to prevent nesting errors, and
+  it will add a comment sign before each newline.
+  */
+#endif
diff --git a/src/version.cc b/src/version.cc
new file mode 100644 (file)
index 0000000..401273b
--- /dev/null
@@ -0,0 +1,9 @@
+#include "version.hh"
+
+static char *s = "LilyPond version " VERSIONSTR " compiled on " __DATE__ " at " __TIME__ "\n";
+
+const char *
+get_version()
+{
+   return s;
+}