]> git.donarmstrong.com Git - lilypond.git/blob - lily/spring-smob.cc
Clean up spring stuff.
[lilypond.git] / lily / spring-smob.cc
1 /*
2   spring.cc -- implement Spring
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "spring.hh"
10 #include "warn.hh"
11 #include "ly-smobs.icc"
12
13 Spring::Spring ()
14 {
15   distance_ = 1.0;
16   min_distance_ = 1.0;
17   inverse_stretch_strength_ = 1.0;
18   inverse_compress_strength_ = 1.0;
19   other_ = 0;
20 }
21
22 IMPLEMENT_SIMPLE_SMOBS (Spring);
23
24 SCM
25 Spring::mark_smob (SCM x)
26 {
27   (void)x;
28
29   return SCM_UNSPECIFIED;
30 }
31
32 int
33 Spring::print_smob (SCM, SCM p, scm_print_state *)
34 {
35   scm_puts ("#<Spring smob>", p);
36   return 1;
37 }
38
39 SCM
40 Spring::equal_p (SCM a, SCM b)
41 {
42   return a == b? SCM_BOOL_T : SCM_BOOL_F;
43 }
44