]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.46.jcn1
authorfred <fred>
Fri, 28 Mar 1997 00:20:54 +0000 (00:20 +0000)
committerfred <fred>
Fri, 28 Mar 1997 00:20:54 +0000 (00:20 +0000)
lily/include/swallow-reg.hh [new file with mode: 0644]

diff --git a/lily/include/swallow-reg.hh b/lily/include/swallow-reg.hh
new file mode 100644 (file)
index 0000000..9785fa2
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+  swallow-reg.hh -- declare Swallow_register
+
+  source file of the LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+#ifndef SWALLOW_REG_HH
+#define SWALLOW_REG_HH
+
+#include "register.hh"
+
+/**
+  This register swallows everything given to it silently. The purpose of
+  this is to prevent spurious "request junked" warnings.
+ */
+class Swallow_register : public Request_register {
+protected:
+    bool acceptable_request_b(Request*) const;
+    bool try_request(Request*) ;
+public:
+    NAME_MEMBERS(Swallow_register);
+};
+#endif // SWALLOW_REG_HH