Switch to unified view

a/src/utils/debuglog.cpp b/src/utils/debuglog.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid [] = "@(#$Id: debuglog.cpp,v 1.3 2006-01-23 13:32:28 dockes Exp $  (C) 2002 OKYZ";
2
static char rcsid [] = "@(#$Id: debuglog.cpp,v 1.4 2006-11-08 15:34:20 dockes Exp $  (C) 2002 OKYZ";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
40
#ifndef NO_NAMESPACES
40
#ifndef NO_NAMESPACES
41
using namespace std;
41
using namespace std;
42
namespace DebugLog {
42
namespace DebugLog {
43
43
44
#endif // NO_NAMESPACES
44
#endif // NO_NAMESPACES
45
46
bool DebugLog::isspecialname(const char *logname) 
47
{
48
    return !strcmp(logname, "stdout") || !strcmp(logname, "stderr");
49
}
45
50
46
class DebugLogWriter {
51
class DebugLogWriter {
47
  public:
52
  public:
48
    virtual ~DebugLogWriter() {}
53
    virtual ~DebugLogWriter() {}
49
    virtual int put(const char *s) = 0;
54
    virtual int put(const char *s) = 0;