]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/property-iterator.cc
(set_spacing_rods): new
[lilypond.git] / lily / property-iterator.cc
index 20f9dc68e8aba9b8e3ad24a82b56b288b0a5aaa1..56ec9998874ec397427f0236719b7eb6516dda0b 100644 (file)
@@ -3,10 +3,11 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "property-iterator.hh"
+
 #include "music.hh"
 #include "context-def.hh"
 #include "global-context.hh"
@@ -21,10 +22,10 @@ void
 Property_iterator::process (Moment m)
 {
   SCM sym = get_music ()->get_property ("symbol");
-  if (ly_c_symbol_p (sym))
+  if (scm_is_symbol (sym))
     {
       SCM val = get_music ()->get_property ("value");
-      bool ok= true;
+      bool ok = true;
       if (val != SCM_EOL)
        ok = type_check_assignment (sym, val, ly_symbol2scm ("translation-type?"));
       if (ok)
@@ -43,7 +44,7 @@ Property_unset_iterator::process (Moment m)
   Simple_music_iterator::process (m);
 }
 
-MAKE_SCHEME_CALLBACK (Property_iterator,once_finalization, 2);
+MAKE_SCHEME_CALLBACK (Property_iterator, once_finalization, 2);
 SCM
 Property_iterator::once_finalization (SCM translator, SCM music )
 {
@@ -114,7 +115,7 @@ Push_property_iterator::process (Moment m)
   Simple_music_iterator::process (m);
 }
 
-MAKE_SCHEME_CALLBACK (Push_property_iterator,once_finalization, 2);
+MAKE_SCHEME_CALLBACK (Push_property_iterator, once_finalization, 2);
 SCM
 Push_property_iterator::once_finalization (SCM trans, SCM music)
 {
@@ -139,7 +140,7 @@ Push_property_iterator::do_quit ()
       SCM trans = get_outlet ()->self_scm ();
       SCM music = get_music ()->self_scm ();
 
-      Global_context * tg=  get_outlet ()->get_global_context ();
+      Global_context * tg =  get_outlet ()->get_global_context ();
       tg->add_finalization (scm_list_n (once_finalization_proc,
                                        trans, music, SCM_UNDEFINED));
     }