2 spring.cc -- implement Spring
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 #include "ly-smobs.icc"
14 Spring_smob::Spring_smob ()
18 expand_only_b_ = false;
23 IMPLEMENT_SIMPLE_SMOBS (Spring_smob);
26 Spring_smob::mark_smob (SCM) { return SCM_UNSPECIFIED; }
29 Spring_smob::print_smob (SCM s, SCM p, scm_print_state *)
31 Spring_smob *ss = unsmob_spring (s);
32 scm_puts (_f ("#<spring smob d= %f>", ss->distance_).to_str0 (), p);
37 Spring_smob::equal_p (SCM a , SCM b)
39 return a==b? SCM_BOOL_T : SCM_BOOL_F;
43 Spring_smob::smobbed_copy ()const
45 Spring_smob * p = new Spring_smob (*this);
46 return p->smobbed_self ();