+2004-05-02 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/include/audio-column.hh: remove unused variables.
+ (patch by Michael Welsh Duggan)
+
+ * flower/include/axes.hh (other_axis): inline Axes function
+ (thanks to David Brandon).
+
2004-05-02 Jan Nieuwenhuizen <janneke@gnu.org>
* cygwin/mknetrel: Install image links (backportme).
return to_string (char (a + 'x'));
}
-
-Axis
-other_axis (Axis a)
-{
- return a == Y_AXIS ? X_AXIS : Y_AXIS;
-}
-
-/*
- TODO inline these.
- */
-Axis
-post_incr (Axis &a)
-{
- assert (a < NO_AXES);
- Axis b= a;
- a = Axis (int (a) + 1);
- return b;
-}
-
-Axis
-incr (Axis &a)
-{
- assert (a < NO_AXES);
- a = Axis (int (a) + 1);
- return a;
-}
-
#ifndef AXES_HH
#define AXES_HH
+#include <assert.h>
+
enum Axis {
X_AXIS =0,
Y_AXIS =1,
NO_AXES=2,
};
-
-class String;
-
-String axis_name_string (Axis);
-
-
-/**
- the operator ++ for Axis.
- */
-Axis other_axis (Axis);
-Axis post_incr (Axis &);
-Axis incr (Axis &);
-//Axis operator++ (Axis);
-
-
+static inline
+Axis
+incr (Axis &a)
+{
+ assert (a < NO_AXES);
+ a = Axis (int (a) + 1);
+ return a;
+}
+
+static inline
+Axis
+other_axis (Axis a)
+{
+ return a == Y_AXIS ? X_AXIS : Y_AXIS;
+}
#endif // AXES_HH
#include "real.hh"
#include "axes.hh"
#include "arithmetic-operator.hh"
+#include "string.hh"
Offset complex_multiply (Offset, Offset);
Offset complex_divide (Offset, Offset);
Audio_column::Audio_column (Moment at_mom)
{
at_mom_ = at_mom;
- performance_ = 0;
}
void
#include "box.hh"
#include "array.hh"
+#include "axes.hh"
void
Box::translate (Offset o)
#ifndef ALIGN_INTERFACE_HH
#define ALIGN_INTERFACE_HH
-#include "axes.hh"
#include "lily-proto.hh"
#include "lily-guile.hh"
void add_audio_item (Audio_item* i);
Moment at_mom () const;
- void print () const;
Link_array<Audio_item> audio_items_;
- Performance * performance_;
private:
Audio_column (Audio_column const&);
#include "real.hh"
#include "drul-array.hh"
#include "interval.hh"
-#include "axes.hh"
#include "offset.hh"
#include "array.hh"
#include "polynomial.hh"
#include "real.hh"
#include "interval.hh"
#include "offset.hh"
-#include "axes.hh"
-
struct Box
{
#include <stdlib.h> // size_t
#include "lily-proto.hh"
#include "box.hh"
-#include "axes.hh"
#include "direction.hh"
#include "lily-guile.hh"
#include "smobs.hh"
Translator (Translator const &);
- void removal_processing ();
SCM internal_get_property (SCM symbol) const;
virtual Music_output_def *get_output_def () const;
for (int i = 0; !i || i < outdef_count; i++)
{
Music_output_def *def = outdef_count ? defs_[i] : default_def;
- SCM context = ly_run_translator (music_, def->self_scm ());
- if (Global_context *g = dynamic_cast<Global_context*>
- (unsmob_context (context)))
+ if (!(no_paper_global_b && dynamic_cast<Paper_def*> (def)))
{
- SCM s = ly_format_output (context, out);
- if (s != SCM_UNDEFINED)
+ SCM context = ly_run_translator (music_, def->self_scm ());
+ if (Global_context *g = dynamic_cast<Global_context*>
+ (unsmob_context (context)))
{
- systems = s;
- /* Ugh. */
- Music_output *output = g->get_output ();
- if (Paper_score *ps = dynamic_cast<Paper_score*> (output))
- *paper = ps->paper_;
+ SCM s = ly_format_output (context, out);
+ if (s != SCM_UNDEFINED)
+ {
+ systems = s;
+ /* Ugh. */
+ Music_output *output = g->get_output ();
+ if (Paper_score *ps = dynamic_cast<Paper_score*> (output))
+ *paper = ps->paper_;
+ }
}
}
}