+2005-01-10 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * stepmake/aclocal.m4: do NDEBUG for optimizing builds.
+
+ * lily/include/beam.hh (DEBUG_QUANTING): performance: only switch
+ on BEAMQUANTING for non-NDEBUG builds.
+
+ * lily/stem.cc (head_count): performance: avoid String::String()
+ inside oft called function.
+
2005-01-09 Graham Percival <gperlist@shaw.ca>
* Documentation/user/examles.itely: attempted fix for broken
PACKAGE_NAME=LilyPond
MAJOR_VERSION=2
MINOR_VERSION=5
-PATCH_LEVEL=7
+PATCH_LEVEL=8
MY_PATCH_LEVEL=
den_= 1;
}
-static
+static inline
int gcd (int a, int b)
{
int t;
return b;
}
-#if 0
-static
-int lcm (int a, int b)
-{
- return abs (a*b / gcd (a,b));
-}
-#endif
void
Rational::set_infinite (int s)
LY_DEFINE (ly_format_output, "ly:format-output",
2, 0, 0, (SCM context, SCM outname),
- "Given a Score context in its final state,"
+ "Given a Global context in its final state, "
"process it and return the (rendered) result.")
{
Global_context *g = dynamic_cast<Global_context*> (unsmob_context (context));
}
-void
-Group_interface::add_thing (Grob*me, String name, SCM thing)
-{
- add_thing (me, ly_symbol2scm (name.to_str0 ()), thing);
-}
-
int
-Group_interface::count (Grob *me, String name)
+Group_interface::count (Grob *me, SCM sym)
{
- return scm_ilength (me->get_property (name.to_str0 ()));
+ return scm_ilength (me->internal_get_property (sym));
}
const int REGION_SIZE = 2;
+#ifndef NDEBUG
#define DEBUG_QUANTING 1
+#endif
#endif /* BEAM_HH */
struct Group_interface
{
public:
- static int count (Grob* , String);
+ static int count (Grob*, SCM);
static void add_thing (Grob*, SCM, SCM);
- static void add_thing (Grob*, String nm, SCM);
};
struct Pointer_group_interface : public Group_interface {
int
Stem::head_count (Grob *me)
{
- return Pointer_group_interface::count (me, "note-heads");
+ return Pointer_group_interface::count (me, ly_symbol2scm ("note-heads"));
}
/* The note head which forms one end of the stem.
&& Tie_column::has_interface (s->get_parent (Y_AXIS)))
return ;
- if (! Pointer_group_interface::count (me, "ties"))
+ if (!Pointer_group_interface::count (me, ly_symbol2scm ("ties")))
{
dynamic_cast<Spanner*> (me)->set_bound (LEFT, Tie::head (s,LEFT));
dynamic_cast<Spanner*> (me)->set_bound (RIGHT, Tie::head (s,RIGHT));
increment := 0.5pt#;
y := 10pt#;
-
-
-
for i := 0 step 1 until font_count:
%% We can't store more than 64 (65?) height dimensions in a TFM
CFLAGS=${CFLAGS-""}
CXXFLAGS=${CXXFLAGS-$CFLAGS}
LDFLAGS=${LDFLAGS-""}
- checking_b=yes
optimise_b=yes
profile_b=no
debug_b=yes
pipe_b=yes
- AC_ARG_ENABLE(checking,
- [ --enable-checking set runtime checks (assert calls). Default: on],
- [checking_b=$enableval] )
-
AC_ARG_ENABLE(debugging,
[ --enable-debugging compile with debugging info. Default: on],
[debug_b=$enableval])
[ --enable-pipe compile with -pipe. Default: on],
[pipe_b=$enableval])
- if test "$checking_b" = no; then
- # ugh
+ if test "$optimise_b" = yes; then
AC_DEFINE(NDEBUG)
DEFINES="$DEFINES -DNDEBUG"
- fi
-
- if test "$optimise_b" = yes; then
OPTIMIZE="-O2 -finline-functions"
fi