* scm/beam.scm (check-slope-callbacks): check sign of slope.
[lilypond.git] / lily / spring-smob.cc
blobe27a72e93db50dcb3e19431b7f2f73bba34bdd1a
1 /*
2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "spring.hh"
11 #include "warn.hh"
12 #include "ly-smobs.icc"
14 Spring_smob::Spring_smob ()
16 distance_ =0.;
17 strength_ =1.0;
18 expand_only_b_ = false;
19 other_ = 0;
23 IMPLEMENT_SIMPLE_SMOBS (Spring_smob);
25 SCM
26 Spring_smob::mark_smob (SCM) { return SCM_UNSPECIFIED; }
28 int
29 Spring_smob::print_smob (SCM s, SCM p, scm_print_state *)
31 scm_puts ("#<Spring smob>", p);
32 return 1;
35 SCM
36 Spring_smob::equal_p (SCM a , SCM b)
38 return a==b? SCM_BOOL_T : SCM_BOOL_F;