X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debug.cc;h=874937573e346bda16f067d0139aea65ee0b2a84;hb=3daac955f29e408aa2aa271a883195ddc54633f4;hp=69c5a04a5b3e9ed58c165d2877b5a1e5f159ae6e;hpb=727cdcbadf23c1986b0aed547aa645c9813f351b;p=lilypond.git diff --git a/debug.cc b/debug.cc index 69c5a04a5b..874937573e 100644 --- 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); +}