]> git.donarmstrong.com Git - lilypond.git/blobdiff - debug.cc
partial: 0.0.4.hanjan
[lilypond.git] / debug.cc
index 548a76c1863f68c2a0696b1a7174681da4feeeb6..874937573e346bda16f067d0139aea65ee0b2a84 100644 (file)
--- a/debug.cc
+++ b/debug.cc
@@ -1,15 +1,11 @@
 #include "debug.hh"
-int debug_flags;
+#include "dstream.hh"
+#include "vector.hh"
+
+Dstream monitor(&cout,".dstreamrc");
 
 void
-set_debug(String s)
+debug_init()
 {
-    if (s.pos ('t')) {
-       debug_flags |= DEBUGTOKEN;
-       mtor << " Turning on token debug\n";
-    }
-    if (s.pos ('p')){
-       debug_flags |= DEBUGPARSER;
-       mtor << "Turning on parser debugger\n";
-    }
-}
+    set_matrix_debug(monitor);
+}