X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftranslator.cc;h=efa375549fba042301a1f4903b0c567113999573;hb=a73104e2c14edcb69e6740e928c5ea68ca4e0682;hp=ae1dfbe7ff5158e4a755dd08047022b7044e80fe;hpb=82ea2eb404974976ce5d9279c8e47e1cfa8369cc;p=lilypond.git diff --git a/lily/translator.cc b/lily/translator.cc index ae1dfbe7ff..efa375549f 100644 --- a/lily/translator.cc +++ b/lily/translator.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2007 Han-Wen Nienhuys + (c) 1997--2009 Han-Wen Nienhuys */ #include "translator.hh" @@ -132,7 +132,8 @@ ensure_listened_hash () LY_DEFINE (ly_get_listened_event_classes, "ly:get-listened-event-classes", 0, 0, 0, (), - "Returns a list of all event classes that some translator listens to.") + "Return a list of all event classes that some translator listens" + " to.") { ensure_listened_hash (); return ly_hash_table_keys (listened_event_class_table); @@ -170,7 +171,7 @@ Translator::add_translator_listener (translator_listener_record **listener_list, { /* ev_class is the C++ identifier name. Convert to scm symbol */ string name = string (ev_class); - name = replace_all (name, '_', '-'); + name = replace_all (&name, '_', '-'); name += "-event"; SCM class_sym = scm_str2symbol (name.c_str ()); @@ -274,7 +275,7 @@ add_acknowledger (Engraver_void_function_engraver_grob_info ptr, string interface_name (func_name); - interface_name = replace_all (interface_name, '_', '-'); + interface_name = replace_all (&interface_name, '_', '-'); interface_name += "-interface"; /* @@ -341,7 +342,7 @@ internal_event_assignment (Stream_event **old_ev, Stream_event *new_ev, const ch /* "listen_foo_bar" -> "foo-bar" */ ev_class.erase (0, strlen (prefix)); - replace_all (ev_class, '_', '-'); + replace_all (&ev_class, '_', '-'); new_ev->origin ()->warning (_f ("Two simultaneous %s events, junking this one", ev_class.c_str ())); (*old_ev)->origin ()->warning (_f ("Previous %s event here", ev_class.c_str ())); @@ -355,7 +356,15 @@ internal_event_assignment (Stream_event **old_ev, Stream_event *new_ev, const ch } ADD_TRANSLATOR (Translator, - "Base class. Not instantiated.", + /* doc */ + "Base class. Not instantiated.", + + /* create */ "", + + /* read */ "", - ""); + + /* write */ + "" + );