X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=src%2Fbase%2Fcl_debugout.cc;h=c195f8f67c85b6f3d2c43511d862213462b9dae6;hb=2691282fd91d682114fc954f30d04b5fe32c7e56;hp=ad5a5c2cadd72f95e775a324cc9d548a8265954a;hpb=dd9e0f894eec7e2a8cf85078330ddc0a6639090b;p=cln.git diff --git a/src/base/cl_debugout.cc b/src/base/cl_debugout.cc index ad5a5c2..c195f8f 100644 --- a/src/base/cl_debugout.cc +++ b/src/base/cl_debugout.cc @@ -4,24 +4,18 @@ #include "cl_sysdep.h" // Specification. -#include "cl_io.h" +#include "cln/io.h" // Implementation. // Just assume that the debugger runs on /dev/tty, independently of -// cl_stdin, cl_stdout, cl_stderr. +// cin, cout, cerr. -#if defined(CL_IO_STDIO) +#include -FILE* cl_debugout = fopen("/dev/tty","a"); +namespace cln { -#endif +std::ostream * cl_debugout_stream = new std::ofstream ("/dev/tty"); -#if defined(CL_IO_IOSTREAM) - -#include - -ostream* cl_debugout_stream = new ofstream ("/dev/tty"); - -#endif +} // namespace cln