+2005-09-13 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/*.cc: remove <cmath> everywhere. <cmath> is included from real.hh
+
2005-09-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
* stepmake/stepmake/c++-vars.make (#EXTRA_CXXFLAGS): don't add
(c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include <cmath>
-using namespace std;
+
#include "accidental-placement.hh"
#include "skyline.hh"
#include "bar-line.hh"
-#include <cmath>
-using namespace std;
-
#include "all-font-metrics.hh"
#include "font-interface.hh"
#include "lookup.hh"
Determine whether a beam is concave.
*/
-#include <cmath>
-using namespace std;
-
#include "pointer-group-interface.hh"
#include "array.hh"
#include "stem.hh"
#include "beam.hh"
#include <algorithm>
-#include <cmath>
using namespace std;
#include "warn.hh"
- beam_translation is the offset between Y centers of the beam.
*/
-#include <cmath> // tanh.
-using namespace std;
-
#include "beam.hh"
#include "interval-set.hh"
#include "directional-element-interface.hh"
(c) 1998--2005 Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include <cmath>
-using namespace std;
-
#include "misc.hh"
#include "bezier.hh"
(c) 1998--2005 Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include <cmath>
-using namespace std;
-
#include "bezier.hh"
#include "warn.hh"
#include "libc-extension.hh"
(c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include <cmath>
-using namespace std;
#include "break-align-interface.hh"
}
MAKE_SCHEME_CALLBACK (Clef, print, 1)
- SCM
+SCM
Clef::print (SCM smob)
{
Grob *me = unsmob_grob (smob);
(c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include <cmath>
-using namespace std;
#include "dimension-cache.hh"
#include "warn.hh"
(c) 2003--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
-#include <cmath>
-using namespace std;
#include "dimensions.hh"
#include "all-font-metrics.hh"
*/
#include <cstring>
-#include <cmath>
-using namespace std;
#include "main.hh"
#include "input-smob.hh"
#include "grob.hh"
#include <cstring>
-#include <cmath>
-using namespace std;
#include "main.hh"
#include "input-smob.hh"
public:
DECLARE_SCHEME_CALLBACK (print, (SCM));
DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
+
static bool has_interface (Grob *);
-
static String get_fontcharname (String style, int alteration);
static Array<Box> Accidental_interface::accurate_boxes (Grob *me,
Grob **common);
#ifndef CLEF_HH
#define CLEF_HH
+
#include "lily-guile.hh"
#include "lily-proto.hh"
{ \
TYPE ::FUNC ## _proc = scm_c_define_gsubr (#TYPE "::" #FUNC, \
(ARGCOUNT), 0, 0, \
- (Scheme_function_unknown)TYPE ::FUNC); \
+ (Scheme_function_unknown) TYPE::FUNC); \
scm_c_export (#TYPE "::" #FUNC, NULL); \
} \
\
#include <cstdlib>
#include <cstring> /* strdup, strchr */
#include <cctype>
+
using namespace std;
#include "config.hh"
#include "line-spanner.hh"
-#include <cmath>
-using namespace std;
#include "spanner.hh"
#include "output-def.hh"
#include "lyric-extender.hh"
-#include <cmath>
-using namespace std;
#include "warn.hh"
#include "lookup.hh"
#include "lyric-hyphen.hh"
-#include <cmath>
-using namespace std;
#include "lookup.hh"
#include "output-def.hh"
Pal Benko <benkop@freestart.hu>
*/
-#include <cmath>
-using namespace std;
#include "mensural-ligature.hh"
#include "item.hh"
(c) 1997--2005 Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include <cmath>
-using namespace std;
#include "misc.hh"
#include "output-def.hh"
Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include <cmath>
-using namespace std;
#include "misc.hh"
#include "string.hh"
#include "note-collision.hh"
-#include <cmath>
-using namespace std;
#include "warn.hh"
#include "note-column.hh"
(c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
-#include <cmath>
-using namespace std;
#include "dimensions.hh"
#include "all-font-metrics.hh"
#include "percent-repeat-item.hh"
-#include <cmath>
-using namespace std;
#include "lookup.hh"
#include "font-interface.hh"
*/
#include <cstdio>
-#include <cmath>
-using namespace std;
#include "paper-column.hh"
#include "spring.hh"
*/
#include <cstdio>
-#include <cmath>
-using namespace std;
#include "libc-extension.hh" // isinf
#include "simple-spacer.hh"
#include "slur-configuration.hh"
-#include <cmath>
-using namespace std;
#include "stem.hh"
#include "warn.hh"
Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include <cmath>
-using namespace std;
#include "slur-scoring.hh"
#include "libc-extension.hh"
#include "slur.hh"
-#include <cmath>
-using namespace std;
#include "beam.hh"
#include "bezier.hh"
#include "spaceable-grob.hh"
#include <cstdio>
-#include <cmath>
-using namespace std;
#include "warn.hh"
#include "spring.hh"
#include "spanner.hh"
-#include <cmath>
-using namespace std;
#include "pointer-group-interface.hh"
#include "libc-extension.hh"
#include "staff-symbol-referencer.hh"
-#include <cmath>
-using namespace std;
#include "staff-symbol.hh"
#include "output-def.hh"
(c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include <cmath>
-using namespace std;
#include "font-metric.hh"
#include "libc-extension.hh"
#include "stencil.hh"
-#include <cmath>
-using namespace std;
#include "dimensions.hh"
#include "font-metric.hh"
#include "system-start-delimiter.hh"
-#include <cmath>
-using namespace std;
#include "spanner.hh"
#include "axis-group-interface.hh"
#include "system.hh"
-#include <cmath>
-using namespace std;
#include "align-interface.hh"
#include "axis-group-interface.hh"
#include "text-interface.hh"
-#include <cmath>
-using namespace std;
#include "main.hh"
#include "config.hh"
*/
for (int i = 1; i < tie_configs.size(); i++)
{
- if (fabs (tie_configs[i-1].position_ - tie_configs[i].position_) <= 1)
+ Real diff = tie_configs[i-1].position_ - tie_configs[i].position_;
+ if (fabs (diff) <= 1)
{
if (!tie_configs[i-1].dir_)
tie_configs[i-1].dir_ = DOWN;
*/
-#include <cmath>
-using namespace std;
#include "tie.hh"
#include "bezier.hh"
#include "tie.hh"
-#include <cmath>
-using namespace std;
#include "spanner.hh"
#include "lookup.hh"
todo: handle breaking elegantly.
*/
-#include <cmath>
-using namespace std;
#include "tuplet-bracket.hh"
#include "line-interface.hh"
#include "vaticana-ligature.hh"
-#include <cmath>
-using namespace std;
#include "item.hh"
#include "font-interface.hh"