X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fprob.cc;h=9d75d744f381cc45ffb2b02f732ce1ab3e56a325;hb=eeec992b7029d0982bf4ed0eb3995e9ca99c10e9;hp=9c3b40d712640c79aad814c8ed24c3b85c889c25;hpb=6bdc0c76319dc6a67b056d0c8e92808262c90d06;p=lilypond.git diff --git a/lily/prob.cc b/lily/prob.cc index 9c3b40d712..9d75d744f3 100644 --- a/lily/prob.cc +++ b/lily/prob.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2006 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