Skip to content

Commit

Permalink
Renamed libutil namespace -> util
Browse files Browse the repository at this point in the history
Removed debugging options
  • Loading branch information
mbcrawfo committed Nov 11, 2014
1 parent 2d1d38f commit 2c62ed6
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 77 deletions.
43 changes: 0 additions & 43 deletions include/debug.h

This file was deleted.

2 changes: 1 addition & 1 deletion include/log/ILogFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "prereqs.h"
#include "log/LogMessage.h"

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/log/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <cstdarg>
#include <sstream>

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/log/LogMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <chrono>
#include <string>

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/log/LogWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "log/LogMessage.h"
#include "log/ILogFormatter.h"

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/log/StreamLogWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "log/LogWriter.h"
#include <ostream>

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/memory/MemoryAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "prereqs.h"
#include "memory/MemoryCounter.h"

namespace libutil
namespace util
{

/**
Expand Down
10 changes: 9 additions & 1 deletion include/memory/MemoryCounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@
#include "prereqs.h"
#include <unordered_map>

namespace libutil
// Enables tracking of memory allocations when defined
//#define LU_DEBUG_MEMORY_TRACK

// Enables detailed memory tracking when defined. LU_DEBUG_MEMORY_TRACK must
// also be defined. When enabled, current usage is tracked as well as total
// usage
//#define LU_DEBUG_MEMORY_TRACK_DETAIL

namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/memory/StdLibAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "prereqs.h"
#include <limits>

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/memory/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "memory/MemoryAllocator.h"
#include "memory/StdLibAllocator.h"

namespace libutil
namespace util
{

/**
Expand Down
12 changes: 0 additions & 12 deletions include/prereqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#define COMMON_H_INCLUDED__

#include "platform.h"
#include "debug.h"

// Use to suppress warnings on unused code.
#define LU_UNUSED(x) static_cast<void>(x)
Expand All @@ -41,18 +40,7 @@
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX

#if defined(LU_DEBUG_STL)
#define _ITERATOR_DEBUG_LEVEL 1
#else
#define _ITERATOR_DEBUG_LEVEL 0
#endif

#elif LU_COMPILER == LU_COMPILER_GNUCXX
#if defined(LU_DEBUG_STL)
#define _GLIBCXX_DEBUG
#else
#undef _GLIBCXX_DEBUG
#endif

#elif LU_COMPILER == LU_COMPILER_CLANG
#if defined(LU_DEBUG_STL)
Expand Down
2 changes: 1 addition & 1 deletion include/utility/IHashable.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "prereqs.h"

namespace libutil
namespace util
{

/**
Expand Down
4 changes: 2 additions & 2 deletions include/utility/IToString.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <string>
#include <ostream>

namespace libutil
namespace util
{

/**
Expand All @@ -49,7 +49,7 @@ class IToString

}

std::ostream& operator<<(std::ostream& os, const libutil::IToString& its)
std::ostream& operator<<(std::ostream& os, const util::IToString& its)
{
os << its.toString();
return os;
Expand Down
2 changes: 1 addition & 1 deletion include/utility/Singleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "prereqs.h"

namespace libutil
namespace util
{

/**
Expand Down
2 changes: 1 addition & 1 deletion include/utility/Singularity.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "prereqs.h"

namespace libutil
namespace util
{

/**
Expand Down
1 change: 0 additions & 1 deletion msvc/libutil.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\include\debug.h" />
<ClInclude Include="..\include\log\ILogFormatter.h" />
<ClInclude Include="..\include\log\Log.h" />
<ClInclude Include="..\include\log\LogMessage.h" />
Expand Down
3 changes: 0 additions & 3 deletions msvc/libutil.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\include\debug.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\platform.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down
2 changes: 1 addition & 1 deletion src/log/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

static const int PRINTF_BUFFER_SIZE = 256;

namespace libutil
namespace util
{

Log::Log(const std::string& logName, LogLevel outputLevel)
Expand Down
2 changes: 1 addition & 1 deletion src/log/LogMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "log/LogMessage.h"

namespace libutil
namespace util
{

std::string toString(const LogLevel level)
Expand Down
2 changes: 1 addition & 1 deletion src/log/LogWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "log/LogWriter.h"

namespace libutil
namespace util
{

LogWriter::LogWriter()
Expand Down
2 changes: 1 addition & 1 deletion src/log/StreamLogWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "log/StreamLogWriter.h"

namespace libutil
namespace util
{

StreamLogWriter::StreamLogWriter(std::ostream& stream)
Expand Down

0 comments on commit 2c62ed6

Please sign in to comment.