From: fred Date: Thu, 10 Oct 1996 19:42:39 +0000 (+0000) Subject: lilypond-0.0.9 X-Git-Tag: release/1.5.59~7110 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4076498d4f9a052f1e453ca10f1c826a12ff629b;p=lilypond.git lilypond-0.0.9 --- 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; +}