TOPLEVEL_MAJOR_VERSION = 0
TOPLEVEL_MINOR_VERSION = 1
-TOPLEVEL_PATCH_LEVEL = 11
+TOPLEVEL_PATCH_LEVEL = 12
# use to send patches, always empty for released version:
TOPLEVEL_MY_PATCH_LEVEL =
MAJOR_VERSION = 0
MINOR_VERSION = 1
-PATCH_LEVEL = 11
+PATCH_LEVEL = 12
# use to send patches, always empty for released version:
# include separator: ".postfix", "-pl" makes rpm barf
Header::TeX_string() const
{
String s;
+
+ s+= "\\def\\LilyIdString{" + lily_id_str_ + "}";
+
for (Assoc_iter<String, String> i(*this); i.ok(); i++)
{
s += "\\def\\mudela" + i.key() + "{" + i.val() + "}";
struct Header : Assoc<String, String>
{
+ String lily_id_str_;
String TeX_string() const;
};
+/*
+ main.hh -- declare global entry points
+
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
#ifndef MAIN_HH
#define MAIN_HH
#include "lily-proto.hh"
Input_score* current_iscore_l();
String find_file (String);
String get_version_str();
+String get_version_number_str();
extern Sources* source_l_g;
extern bool only_midi;
extern int exit_status_i_;
#include "version.hh"
#include <stdio.h>
-static char *s = "GNU LilyPond " MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL MY_PATCH_LEVEL " #%d";
+
+#define VERSION_SZ MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL MY_PATCH_LEVEL
+static char *s = "GNU LilyPond " VERSION_SZ " #%d";
static const int build=
#include ".build"
;
+char const *
+lily_version_number_sz()
+{
+ return VERSION_SZ;
+}
+
char const *
lily_version_sz()
{
#include "debug.hh"
#include "music-output-def.hh"
#include "music-output.hh"
-#include "main.hh"
#include "source.hh"
#include "source-file.hh"
#include "music-iterator.hh"
#include "score.hh"
#include "string.hh"
#include "paper-def.hh"
+#include "header.hh"
#include "debug.hh"
+#include "parray.hh"
-static Array<Score*> score_array_global;
+static Link_array<Score> global_score_array;
String default_out_fn = "lelie";
void
do_scores()
{
- for (int i=0; i < score_array_global.size(); i++)
+ for (int i=0; i < global_score_array.size(); i++)
{
- Score *&is_p = score_array_global[i];
-
-
+ Score *&is_p = global_score_array[i];
+ if (is_p->header_p_)
+ is_p->header_p_->lily_id_str_ = "Lily was here, " +
+ get_version_number_str();
if (is_p->errorlevel_i_)
{
is_p->warning ("Score contains errors. Will not process it. ");
is_p =0;
}
- score_array_global.clear();
+ global_score_array.clear();
}
void
add_score (Score * s)
{
- score_array_global.push (s);
+ global_score_array.push (s);
}
void
#include "string.hh"
-extern char const * lily_version_sz();
+char const * lily_version_sz();
+char const * lily_version_number_sz();
String
get_version_str()
s+=flower_version_sz();
return s;
}
+
+String
+get_version_number_str()
+{
+ return lily_version_number_sz();
+}