]> git.donarmstrong.com Git - lilypond.git/blobdiff - debug.cc
release: 0.0.3
[lilypond.git] / debug.cc
index 69c5a04a5b3e9ed58c165d2877b5a1e5f159ae6e..874937573e346bda16f067d0139aea65ee0b2a84 100644 (file)
--- a/debug.cc
+++ b/debug.cc
@@ -1,18 +1,11 @@
 #include "debug.hh"
 #include "dstream.hh"
-int debug_flags;
+#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";
-    }
-}
-
-Dstream monitor(cout,".dstreamrc");
+    set_matrix_debug(monitor);
+}