Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3509)

Unified Diff: lily/include/scheme-engraver.hh

Issue 296260043: Merge get_acknowledger and get_end_acknowledger
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lily/include/translator.hh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/include/scheme-engraver.hh
diff --git a/lily/include/scheme-engraver.hh b/lily/include/scheme-engraver.hh
index 7ec28c4c9a6972249c703e4e3a23ad8ebf1c8b9a..59cab571fbe4058a9f6b8b33dc663c5d464438ba 100644
--- a/lily/include/scheme-engraver.hh
+++ b/lily/include/scheme-engraver.hh
@@ -41,13 +41,10 @@ protected:
virtual bool must_be_last () const;
private:
- virtual SCM get_acknowledger (SCM sym)
+ virtual SCM get_acknowledger (SCM sym, Direction start_end)
{
- return generic_get_acknowledger (sym, interface_acknowledger_hash_);
- }
- virtual SCM get_end_acknowledger (SCM sym)
- {
- return generic_get_acknowledger (sym, interface_end_acknowledger_hash_);
+ return generic_get_acknowledger
+ (sym, interface_acknowledger_hash_[start_end]);
}
SCM init_acknowledgers (SCM alist);
@@ -62,8 +59,7 @@ private:
SCM precomputable_methods_ [TRANSLATOR_METHOD_PRECOMPUTE_COUNT];
// hashq table of interface-symbol -> scheme-function
- SCM interface_acknowledger_hash_;
- SCM interface_end_acknowledger_hash_;
+ Drul_array<SCM> interface_acknowledger_hash_;
// Alist of listened-symbol . scheme-function
SCM per_instance_listeners_;
« no previous file with comments | « no previous file | lily/include/translator.hh » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b