From 4076498d4f9a052f1e453ca10f1c826a12ff629b Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 10 Oct 1996 19:42:39 +0000 Subject: [PATCH] lilypond-0.0.9 --- hdr/tstream.hh | 27 +++++++++++++++++++++++++++ src/version.cc | 9 +++++++++ 2 files changed, 36 insertions(+) create mode 100644 hdr/tstream.hh create mode 100644 src/version.cc diff --git a/hdr/tstream.hh b/hdr/tstream.hh new file mode 100644 index 0000000000..9474dd69a8 --- /dev/null +++ b/hdr/tstream.hh @@ -0,0 +1,27 @@ +#ifndef TSTREAM__HH +#define TSTREAM__HH + +#include +#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 index 0000000000..401273b6b1 --- /dev/null +++ b/src/version.cc @@ -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; +} -- 2.39.5