/[libvob]/libvob/src/util/Debug.cxx
ViewVC logotype

Diff of /libvob/src/util/Debug.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by tjl, Sun Apr 20 10:51:38 2003 UTC revision 1.6 by tjl, Sun Apr 20 11:08:27 2003 UTC
# Line 38  namespace Vob { Line 38  namespace Vob {
38  namespace Debug {  namespace Debug {
39            
40      std::ostream *debugStream() {      std::ostream *debugStream() {
41          const char *str = std::getenv("VOBLOG");          static const char *str = std::getenv("VOBLOG");
42          static std::ostream *dbgstream =          static std::ostream *dbgstream =
43              (str ? new std::ofstream(str) : &std::cout);              (str ? new std::ofstream(str) : &std::cout);
44          if(str) {          static bool setbufyet = false;
45            if(!setbufyet && str) {
46              dbgstream->rdbuf()->pubsetbuf(0,0);              dbgstream->rdbuf()->pubsetbuf(0,0);
47                setbufyet = true;
48          }          }
49          return &std::cout;          return &std::cout;
50      }      }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26