]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/lilypond-version.hh
cleanup version error messages. Fixes #133
[lilypond.git] / lily / include / lilypond-version.hh
diff --git a/lily/include/lilypond-version.hh b/lily/include/lilypond-version.hh
new file mode 100644 (file)
index 0000000..12c4782
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+  lilypond-version.hh -- declare LilyPond_version
+
+  source file of the GNU LilyPond music typesetter
+
+  (c) 1998--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
+
+#ifndef LILYPOND_VERSION_HH
+#define LILYPOND_VERSION_HH
+
+#include "std-string.hh"
+
+struct Lilypond_version
+{
+  Lilypond_version (int major, int minor, int patch);
+  Lilypond_version (string str);
+
+  string to_string () const;
+  operator int () const;
+
+  int major_;
+  int minor_;
+  int patch_;
+  string extra_patch_string_;
+};
+
+extern Lilypond_version oldest_version;
+
+#endif // LILYPOND_VERSION_HH