X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslator.hh;h=d342d3363cbcfb03c1159c1d57eb894f287a85d7;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=858af4ce21454b4a6b710811c269cdb022b0626a;hpb=40aac0ae57ee113faa860ba221d83d9e6312173e;p=lilypond.git diff --git a/lily/include/translator.hh b/lily/include/translator.hh index 858af4ce21..d342d3363c 100644 --- a/lily/include/translator.hh +++ b/lily/include/translator.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2014 Han-Wen Nienhuys + Copyright (C) 1997--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 @@ -117,8 +117,14 @@ enum Translator_precompute_index /* Translate music into grobs. */ -class Translator +class Translator : public Smob { +public: + int print_smob (SCM, scm_print_state *); + SCM mark_smob (); + static const char type_p_name_[]; + virtual ~Translator (); +private: void init (); public: @@ -148,7 +154,6 @@ public: Global_context *get_global_context () const; TRANSLATOR_DECLARATIONS (Translator); - DECLARE_SMOBS (Translator); protected: // should be private. Context *daddy_context_; @@ -172,7 +177,6 @@ void add_translator (Translator *trans); Translator *get_translator (SCM s); Moment get_event_length (Stream_event *s, Moment now); Moment get_event_length (Stream_event *s); -DECLARE_UNSMOB (Translator, translator); /* This helper is only meaningful inside listen_* methods.