X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fprob.cc;h=e55e84afc100debf240b973d814d44a0b6885ba3;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=7438de3dcb05fa6a1500db02cf3f672a07c8014e;hpb=16cb456cabf477f6d398ff731aa0f10b60913394;p=lilypond.git diff --git a/lily/prob.cc b/lily/prob.cc index 7438de3dcb..e55e84afc1 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);