]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/item.cc
(try_music): add moments for
[lilypond.git] / lily / item.cc
index 2077c17b450e8ff779c1a3671f8bdd534af5699f..f857ff55917f038a80652eb9136da4d41ed5c1ab 100644 (file)
@@ -41,8 +41,8 @@ Item::is_breakable (Grob*me)
   if (!dynamic_cast<Item*> (me))
     me->programming_error ("only items can be breakable.");
   
-  Item * i  =dynamic_cast<Item*> (me->get_parent (X_AXIS));
-  return (i) ?  Item::is_breakable (i) : to_boolean (me->get_property ("breakable"));
+  Item * i dynamic_cast<Item*> (me->get_parent (X_AXIS));
+  return (i) ? Item::is_breakable (i) : to_boolean (me->get_property ("breakable"));
 }
 
 Paper_column *
@@ -153,12 +153,12 @@ Item::handle_prebroken_dependencies ()
     more complicated things.
   */
   SCM vis = get_property ("break-visibility");
-  if (gh_procedure_p (vis))
+  if (ly_c_procedure_p (vis))
     {
-      SCM args = scm_list_n (gh_int2scm (break_status_dir ()), SCM_UNDEFINED);
-      SCM result = gh_apply (vis, args);
-      bool trans = gh_scm2bool (ly_car (result));
-      bool empty = gh_scm2bool (ly_cdr (result));
+      SCM args = scm_list_n (scm_int2num (break_status_dir ()), SCM_UNDEFINED);
+      SCM result = scm_apply_0 (vis, args);
+      bool trans = ly_scm2bool (ly_car (result));
+      bool empty = ly_scm2bool (ly_cdr (result));
       
       if (empty && trans)
        suicide ();
@@ -190,7 +190,7 @@ unsmob_item (SCM s )
 
 
 
-ADD_INTERFACE(Item,
+ADD_INTERFACE (Item,
              "item-interface",
              "\n"
              "\n"