*** empty log message ***
[lilypond.git] / lily / spring-smob.cc
blob7eb382074587f04bfb27c29970a63252e648e19d
1 /*
2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "spring.hh"
10 #include "warn.hh"
11 #include "ly-smobs.icc"
13 Spring_smob::Spring_smob ()
15 distance_ = 0.;
16 strength_ = 1.0;
17 expand_only_b_ = false;
18 other_ = 0;
21 IMPLEMENT_SIMPLE_SMOBS (Spring_smob);
23 SCM
24 Spring_smob::mark_smob (SCM) { return SCM_UNSPECIFIED; }
26 int
27 Spring_smob::print_smob (SCM, SCM p, scm_print_state *)
29 scm_puts ("#<Spring smob>", p);
30 return 1;
33 SCM
34 Spring_smob::equal_p (SCM a, SCM b)
36 return a == b? SCM_BOOL_T : SCM_BOOL_F;