/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2004--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2004--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
private:
friend class Context_handle;
- int iterator_count_;
+ /* how many Context_handles point to this Context */
+ int client_count_;
/* Used internally by create_context */
Stream_event *infant_event_;
virtual Moment now_mom () const;
virtual Context *get_default_interpreter (string context_id = "");
+ // It would make some sense to have the following just available in
+ // a global context. It would be decidedly tricky, however, to have
+ // it initialized before the constructor of its Context base class
+ // was able to trigger garbage collection.
+ SCM ancestor_lookup_;
+ SCM make_event_class (SCM);
+
bool is_alias (SCM) const;
void add_alias (SCM);
void add_context (Context *trans);