]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / swallow-engraver.cc
index bda9d59b145b5ac14254569dc2dedda85630e77d..0b6a7248171fa702f5e917a5aef3b7beac58c08b 100644 (file)
@@ -1,29 +1,45 @@
 /*
-  swallow-reg.cc -- implement Swallow_engraver
+  swallow-engraver.cc -- implement Swallow_engraver
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "engraver.hh"
 
-/**
-  This engraver swallows everything given to it silently. The purpose of
-  this is to prevent spurious "request junked" warnings.
- */
 class Swallow_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Swallow_engraver);
+  TRANSLATOR_DECLARATIONS (Swallow_engraver);
 protected:
-  bool try_music (Music*) ;
+  bool try_music (Music *);
 };
 
-
-
 bool
-Swallow_engraver::try_music (Music*) 
+Swallow_engraver::try_music (Music *)
 {
   return true;
 }
+
+Swallow_engraver::Swallow_engraver ()
+{
+}
+
+#include "translator.icc"
+
+ADD_TRANSLATOR (Swallow_engraver,
+               /* doc */
+               "This engraver swallows everything given to it silently."
+               "  The purpose of this is to prevent spurious @q{event junked}"
+               " warnings.",
+
+               /* create */
+               "",
+
+               /* read */
+               "",
+
+               /* write */
+               ""
+               );