X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fscm-hash.cc;h=5eb048f6d177694dda7bb88873b5286bc6fdbd57;hb=74c0623356c6f780ce1611a32b488a77fae2d46a;hp=1944b537e18cfeef68b53ea27eab7c483d1d7679;hpb=00b9619cea1020f6773f23df8764ef85ee2912bf;p=lilypond.git diff --git a/lily/scm-hash.cc b/lily/scm-hash.cc index 1944b537e1..5eb048f6d1 100644 --- a/lily/scm-hash.cc +++ b/lily/scm-hash.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1999--2014 Han-Wen Nienhuys + Copyright (C) 1999--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 @@ -50,6 +50,7 @@ Scheme_hash_table::Scheme_hash_table () } Scheme_hash_table::Scheme_hash_table (Scheme_hash_table const &src) + : Smob () { hash_tab_ = SCM_EOL; smobify_self (); @@ -78,12 +79,10 @@ Scheme_hash_table::mark_smob () } int -Scheme_hash_table::print_smob (SCM s, SCM p, scm_print_state *) +Scheme_hash_table::print_smob (SCM p, scm_print_state *) { - assert (unsmob (s)); scm_puts ("#hash_tab_, p); + scm_display (hash_tab_, p); scm_puts ("> ", p); return 1; }