]> git.donarmstrong.com Git - lilypond.git/blob - lily/spring-smob.cc
Merge with master
[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_smob::Spring_smob ()
14 {
15   distance_ = 0.;
16   inverse_strength_ = 1.0;
17   expand_only_b_ = false;
18   other_ = 0;
19 }
20
21 IMPLEMENT_SIMPLE_SMOBS (Spring_smob);
22
23 SCM
24 Spring_smob::mark_smob (SCM x)
25 {
26   (void)x;
27
28   return SCM_UNSPECIFIED;
29 }
30
31 int
32 Spring_smob::print_smob (SCM, SCM p, scm_print_state *)
33 {
34   scm_puts ("#<Spring smob>", p);
35   return 1;
36 }
37
38 SCM
39 Spring_smob::equal_p (SCM a, SCM b)
40 {
41   return a == b? SCM_BOOL_T : SCM_BOOL_F;
42 }
43