]> git.donarmstrong.com Git - lilypond.git/blob - lily/spring-smob.cc
* flower
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.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   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) { return SCM_UNSPECIFIED; }
25
26 int
27 Spring_smob::print_smob (SCM, SCM p, scm_print_state *)
28 {
29   scm_puts ("#<Spring smob>", p);
30   return 1;
31 }
32
33 SCM
34 Spring_smob::equal_p (SCM a, SCM b)
35 {
36   return a == b? SCM_BOOL_T : SCM_BOOL_F;
37 }
38