X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fprob.cc;h=9d75d744f381cc45ffb2b02f732ce1ab3e56a325;hb=bb91de5b7f8c4f753452730101c2422946067cc3;hp=7438de3dcb05fa6a1500db02cf3f672a07c8014e;hpb=474c8729dc274a30558102a015a01fa5882673db;p=lilypond.git diff --git a/lily/prob.cc b/lily/prob.cc index 7438de3dcb..9d75d744f3 100644 --- a/lily/prob.cc +++ b/lily/prob.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2007 Jan Nieuwenhuizen + (c) 2004--2008 Jan Nieuwenhuizen */ #include "prob.hh" @@ -47,7 +47,7 @@ Prob::equal_p (SCM sa, SCM sb) SCM bprop = props[1][i]; for (; - scm_is_pair (aprop) && scm_is_pair(bprop); + scm_is_pair (aprop) && scm_is_pair (bprop); aprop = scm_cdr (aprop), bprop = scm_cdr (bprop)) { SCM aval = scm_cdar (aprop); @@ -111,7 +111,7 @@ Prob::derived_mark () const SCM Prob::mark_smob (SCM smob) { - ASSERT_LIVE_IS_ALLOWED(); + ASSERT_LIVE_IS_ALLOWED (); Prob *system = (Prob *) SCM_CELL_WORD_1 (smob); scm_gc_mark (system->mutable_property_alist_); @@ -157,19 +157,16 @@ Prob::internal_get_property (SCM sym) const return (s == SCM_BOOL_F) ? SCM_EOL : scm_cdr (s); } +/* We don't (yet) instrument probs */ void -Prob::internal_set_property (SCM sym, SCM val -#ifndef NDEBUG - , char const *file, int line, char const *fun -#endif - ) +Prob::instrumented_set_property (SCM sym, SCM val, const char*, int, const char*) { -#ifndef NDEBUG - (void) file; - (void) line; - (void) fun; -#endif + internal_set_property (sym, val); +} +void +Prob::internal_set_property (SCM sym, SCM val) +{ if (do_internal_type_checking_global) type_check_assignment (sym, val); @@ -177,10 +174,9 @@ Prob::internal_set_property (SCM sym, SCM val } void -Prob::type_check_assignment (SCM sym, SCM val) const +Prob::type_check_assignment (SCM, SCM) const { - (void) sym; - (void) val; + /* empty */ } SCM