X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrob-array.cc;h=2747e0d77fb052e66339263500d21cd9996a90a4;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=593ce6a568462236441fbabda7109c5197e13b2f;hpb=bf090c279f6f8e0ebbffc72d7ee435172dfaddc8;p=lilypond.git diff --git a/lily/grob-array.cc b/lily/grob-array.cc index 593ce6a568..2747e0d77f 100644 --- a/lily/grob-array.cc +++ b/lily/grob-array.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2014 Han-Wen Nienhuys + Copyright (C) 2005--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -52,27 +52,22 @@ Grob_array::array () const } SCM -Grob_array::mark_smob (SCM s) +Grob_array::mark_smob () { - (void) s; - #if 0 /* see System::derived_mark () const */ - Grob_array *ga = Grob_array::unsmob (s); - for (vsize i = 0; i < ga->grobs_.size (); i++) - scm_gc_mark (ga->grobs_[i]->self_scm ()); + for (vsize i = 0; i < grobs_.size (); i++) + scm_gc_mark (grobs_[i]->self_scm ()); #endif return SCM_UNDEFINED; } int -Grob_array::print_smob (SCM arr, SCM port, scm_print_state *) +Grob_array::print_smob (SCM port, scm_print_state *) { scm_puts ("#size (); i++) + for (vsize i = 0; i < size (); i++) { - scm_display (grob_arr->grob (i)->self_scm (), port); + scm_display (grob (i)->self_scm (), port); scm_puts (" ", port); } scm_puts (">", port);