]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/prob-scheme.cc
Run grand replace for 2015.
[lilypond.git] / lily / prob-scheme.cc
index 51bd53c48aa8b8629ee6e875180ab539b9686aa9..a57cb7aa9ffe6418f0eea1d7f334c897256d4f36 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2005--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ LY_DEFINE (ly_prob_set_property_x, "ly:prob-set-property!",
            "Set property @var{sym} of @var{obj} to @var{value}.")
 {
   LY_ASSERT_SMOB (Prob, obj, 1);
-  Prob *ps = unsmob_prob (obj);
+  Prob *ps = Prob::unsmob (obj);
   LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
 
   ps->set_property (sym, value);
@@ -48,13 +48,13 @@ LY_DEFINE (ly_prob_property, "ly:prob-property",
            " @code{'()} if @var{val} is not specified.")
 {
   LY_ASSERT_SMOB (Prob, prob, 1);
-  Prob *ps = unsmob_prob (prob);
+  Prob *ps = Prob::unsmob (prob);
   LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
 
   if (val == SCM_UNDEFINED)
     val = SCM_EOL;
 
-  SCM retval = ps->internal_get_property (sym);
+  SCM retval = ps->get_property (sym);
   if (retval == SCM_EOL)
     return val;
   else
@@ -66,7 +66,7 @@ LY_DEFINE (ly_prob_type_p, "ly:prob-type?",
            (SCM obj, SCM type),
            "Is @var{obj} the specified prob-type?")
 {
-  Prob *prob = unsmob_prob (obj);
+  Prob *prob = Prob::unsmob (obj);
   return scm_from_bool (prob && prob->type () == type);
 }
 
@@ -95,7 +95,7 @@ LY_DEFINE (ly_prob_mutable_properties, "ly:prob-mutable-properties",
            "Retrieve an alist of mutable properties.")
 {
   LY_ASSERT_SMOB (Prob, prob, 1);
-  Prob *ps = unsmob_prob (prob);
+  Prob *ps = Prob::unsmob (prob);
   return ps->get_property_alist (true);
 }
 
@@ -105,7 +105,7 @@ LY_DEFINE (ly_prob_immutable_properties, "ly:prob-immutable-properties",
            "Retrieve an alist of immutable properties.")
 {
   LY_ASSERT_SMOB (Prob, prob, 1);
-  Prob *ps = unsmob_prob (prob);
+  Prob *ps = Prob::unsmob (prob);
   return ps->get_property_alist (false);
 }