]> git.donarmstrong.com Git - lilypond.git/blob - lily/spring-smob.cc
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond...
[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--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "spring.hh"
10 #include "warn.hh"
11 #include "ly-smobs.icc"
12
13 IMPLEMENT_SIMPLE_SMOBS (Spring);
14
15 SCM
16 Spring::mark_smob (SCM)
17 {
18   return SCM_UNSPECIFIED;
19 }
20
21 int
22 Spring::print_smob (SCM, SCM p, scm_print_state *)
23 {
24   scm_puts ("#<Spring smob>", p);
25   return 1;
26 }
27
28 SCM
29 Spring::equal_p (SCM a, SCM b)
30 {
31   return a == b? SCM_BOOL_T : SCM_BOOL_F;
32 }
33