]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
* lily/slur-scoring.cc (get_bound_info): robustness: substitute
[lilypond.git] / lily / swallow-engraver.cc
index 053a8f9560aea4722ac5953f4aebaf797062723b..e9178e7142526840b740a164453cbde666320b4f 100644 (file)
@@ -1,17 +1,36 @@
 /*
-  swallow-reg.cc -- implement Swallow_engraver
+  swallow-engraver.cc -- implement Swallow_engraver
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
-#include "swallow-engraver.hh"
+#include "engraver.hh"
 
-ADD_THIS_TRANSLATOR (Swallow_engraver);
+class Swallow_engraver : public Engraver
+{
+public:
+  TRANSLATOR_DECLARATIONS (Swallow_engraver);
+protected:
+  bool try_music (Music *);
+};
 
 bool
-Swallow_engraver::do_try_music (Music*) 
+Swallow_engraver::try_music (Music *)
 {
   return true;
 }
+
+Swallow_engraver::Swallow_engraver ()
+{
+}
+
+ADD_TRANSLATOR (Swallow_engraver,
+               /* descr */ "This engraver swallows everything given to it silently. The purpose of "
+               "this is to prevent spurious \"event junked\" warnings.",
+               /* creats*/ "",
+               /* accepts */ "general-music",
+               /* acks  */ "",
+               /* reads */ "",
+               /* write */ "");