From 45a608b57f75a6e1f1d8f33a6423da5d4947502b Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Sat, 2 Jan 2021 17:58:58 +0100
Subject: Make namespace name lowercase

---
 NEWS                          |  5 +++--
 include/raul/Array.hpp        |  4 ++--
 include/raul/Deletable.hpp    |  4 ++--
 include/raul/DoubleBuffer.hpp |  4 ++--
 include/raul/Exception.hpp    |  4 ++--
 include/raul/Maid.hpp         |  6 +++---
 include/raul/Noncopyable.hpp  |  4 ++--
 include/raul/Path.hpp         |  8 ++++----
 include/raul/Process.hpp      |  4 ++--
 include/raul/RingBuffer.hpp   |  4 ++--
 include/raul/Semaphore.hpp    |  4 ++--
 include/raul/Socket.hpp       |  6 +++---
 include/raul/Symbol.hpp       |  4 ++--
 test/array_test.cpp           |  6 +++---
 test/build_test.cpp           | 26 +++++++++++++-------------
 test/double_buffer_test.cpp   |  2 +-
 test/maid_test.cpp            |  2 +-
 test/path_test.cpp            |  4 ++--
 test/ringbuffer_test.cpp      |  2 +-
 test/sem_test.cpp             |  8 ++++----
 test/socket_test.cpp          |  6 +++---
 test/symbol_test.cpp          |  2 +-
 test/thread_test.cpp          |  2 +-
 wscript                       |  2 +-
 24 files changed, 62 insertions(+), 61 deletions(-)

diff --git a/NEWS b/NEWS
index bfe9a7f..583ada4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-raul (0.8.10) unstable;
+raul (1.1.0) unstable;
 
   * Add INSTALL file
   * Add ThreadVar, a thread-specific variable class
@@ -7,6 +7,7 @@ raul (0.8.10) unstable;
   * Implement Semaphore for Windows
   * Improve RingBuffer
   * Improve test suite
+  * Make namespace name lowercase
   * Remove OSC and RDF library dependent code
   * Remove TimeSlice and TimeStamp
   * Remove URI class
@@ -17,7 +18,7 @@ raul (0.8.10) unstable;
   * Remove several questionable classes
   * Update license to GPL3+
 
- -- David Robillard <d@drobilla.net>  Sat, 02 Jan 2021 14:42:30 +0000
+ -- David Robillard <d@drobilla.net>  Sat, 02 Jan 2021 16:58:02 +0000
 
 raul (0.8.0) stable;
 
diff --git a/include/raul/Array.hpp b/include/raul/Array.hpp
index 9e7e24c..10f352d 100644
--- a/include/raul/Array.hpp
+++ b/include/raul/Array.hpp
@@ -23,7 +23,7 @@
 #include <cstddef>
 #include <memory>
 
-namespace Raul {
+namespace raul {
 
 /** A disposable array with size.
  *
@@ -156,6 +156,6 @@ private:
   std::unique_ptr<T[]> _elems;
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_ARRAY_HPP
diff --git a/include/raul/Deletable.hpp b/include/raul/Deletable.hpp
index 39262c8..e8f33bc 100644
--- a/include/raul/Deletable.hpp
+++ b/include/raul/Deletable.hpp
@@ -16,7 +16,7 @@
 #ifndef RAUL_DELETABLE_HPP
 #define RAUL_DELETABLE_HPP
 
-namespace Raul {
+namespace raul {
 
 /** Something with a virtual destructor.
  *
@@ -36,6 +36,6 @@ public:
   virtual ~Deletable() = default;
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_DELETABLE_HPP
diff --git a/include/raul/DoubleBuffer.hpp b/include/raul/DoubleBuffer.hpp
index 1c1ee69..1693f25 100644
--- a/include/raul/DoubleBuffer.hpp
+++ b/include/raul/DoubleBuffer.hpp
@@ -19,7 +19,7 @@
 #include <atomic>
 #include <utility>
 
-namespace Raul {
+namespace raul {
 
 /** Double buffer.
  *
@@ -99,6 +99,6 @@ private:
   T                  _vals[2];
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_DOUBLEBUFFER_HPP
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp
index 919ece2..595800f 100644
--- a/include/raul/Exception.hpp
+++ b/include/raul/Exception.hpp
@@ -20,7 +20,7 @@
 #include <string>
 #include <utility>
 
-namespace Raul {
+namespace raul {
 
 /** An exception (unexpected error). */
 class Exception : public std::exception
@@ -38,6 +38,6 @@ private:
   const std::string _what;
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_EXCEPTION_HPP
diff --git a/include/raul/Maid.hpp b/include/raul/Maid.hpp
index 9176d8b..bc0ac4f 100644
--- a/include/raul/Maid.hpp
+++ b/include/raul/Maid.hpp
@@ -23,7 +23,7 @@
 #include <memory>
 #include <utility>
 
-namespace Raul {
+namespace raul {
 
 /** Explicit garbage-collector.
  *
@@ -60,7 +60,7 @@ public:
   /** Disposable wrapper for any type. */
   template<typename T>
   class Managed
-    : public Raul::Maid::Disposable
+    : public raul::Maid::Disposable
     , public T
   {
   public:
@@ -170,6 +170,6 @@ private:
 template<typename T>
 using managed_ptr = Maid::managed_ptr<T>;
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_MAID_HPP
diff --git a/include/raul/Noncopyable.hpp b/include/raul/Noncopyable.hpp
index 6cfd0ed..f5aadbb 100644
--- a/include/raul/Noncopyable.hpp
+++ b/include/raul/Noncopyable.hpp
@@ -16,7 +16,7 @@
 #ifndef RAUL_NONCOPYABLE_HPP
 #define RAUL_NONCOPYABLE_HPP
 
-namespace Raul {
+namespace raul {
 
 class Noncopyable
 {
@@ -32,6 +32,6 @@ protected:
   ~Noncopyable() = default;
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_NONCOPYABLE_HPP
diff --git a/include/raul/Path.hpp b/include/raul/Path.hpp
index 8da985a..e5ca5c9 100644
--- a/include/raul/Path.hpp
+++ b/include/raul/Path.hpp
@@ -23,7 +23,7 @@
 #include <cstddef>
 #include <string>
 
-namespace Raul {
+namespace raul {
 
 /** A restricted path of Symbols separated by, and beginning with, "/".
  *
@@ -139,7 +139,7 @@ public:
    *
    * This is what is called the "basename" for file paths, the "method name"
    * for OSC paths, and so on.  Since the root path does not have a symbol,
-   * this does not return a Raul::Symbol but may return the empty string.
+   * this does not return a raul::Symbol but may return the empty string.
    */
   inline const char* symbol() const
   {
@@ -175,7 +175,7 @@ public:
   }
 
   /** Return a direct child Path of this Path with the given Symbol. */
-  inline Path child(const Raul::Symbol& symbol) const
+  inline Path child(const raul::Symbol& symbol) const
   {
     return Path(base() + symbol.c_str());
   }
@@ -223,6 +223,6 @@ public:
   }
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_PATH_HPP
diff --git a/include/raul/Process.hpp b/include/raul/Process.hpp
index 1c5deed..b05b038 100644
--- a/include/raul/Process.hpp
+++ b/include/raul/Process.hpp
@@ -21,7 +21,7 @@
 #include <sys/resource.h>
 #include <unistd.h>
 
-namespace Raul {
+namespace raul {
 
 /** A child process.
  *
@@ -79,6 +79,6 @@ private:
   Process() = default;
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_PROCESS_HPP
diff --git a/include/raul/RingBuffer.hpp b/include/raul/RingBuffer.hpp
index 5460de2..d194ca4 100644
--- a/include/raul/RingBuffer.hpp
+++ b/include/raul/RingBuffer.hpp
@@ -24,7 +24,7 @@
 #include <cstring>
 #include <memory>
 
-namespace Raul {
+namespace raul {
 
 /**
    A lock-free RingBuffer.
@@ -228,6 +228,6 @@ private:
   const std::unique_ptr<char[]> _buf; ///< Contents
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_RINGBUFFER_HPP
diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp
index 5e9303b..9e8dbb1 100644
--- a/include/raul/Semaphore.hpp
+++ b/include/raul/Semaphore.hpp
@@ -30,7 +30,7 @@
 #include <chrono>
 #include <stdexcept>
 
-namespace Raul {
+namespace raul {
 
 /**
    Unnamed (process local) counting semaphore.
@@ -271,6 +271,6 @@ Semaphore::timed_wait(const std::chrono::duration<Rep, Period>& wait)
 
 #endif
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_SEMAPHORE_HPP
diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp
index 7da3555..55d2f70 100644
--- a/include/raul/Socket.hpp
+++ b/include/raul/Socket.hpp
@@ -29,10 +29,10 @@
 #include <string>
 #include <utility>
 
-namespace Raul {
+namespace raul {
 
 /** A safe and simple interface for UNIX or TCP sockets. */
-class Socket : public Raul::Noncopyable
+class Socket : public raul::Noncopyable
 {
 public:
   enum class Type { UNIX, TCP };
@@ -254,6 +254,6 @@ Socket::shutdown() // NOLINT(readability-make-member-function-const)
   }
 }
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_SOCKET_HPP
diff --git a/include/raul/Symbol.hpp b/include/raul/Symbol.hpp
index 5794440..10446d0 100644
--- a/include/raul/Symbol.hpp
+++ b/include/raul/Symbol.hpp
@@ -22,7 +22,7 @@
 #include <cstddef>
 #include <string>
 
-namespace Raul {
+namespace raul {
 
 /** A restricted string which is a valid C identifier and Path component.
  *
@@ -129,6 +129,6 @@ public:
   }
 };
 
-} // namespace Raul
+} // namespace raul
 
 #endif // RAUL_SYMBOL_HPP
diff --git a/test/array_test.cpp b/test/array_test.cpp
index 8053732..b3cb905 100644
--- a/test/array_test.cpp
+++ b/test/array_test.cpp
@@ -23,7 +23,7 @@
 int
 main()
 {
-  Raul::Array<int> array1(32, 2);
+  raul::Array<int> array1(32, 2);
 
   array1[0] = 42;
   assert(array1[0] == 42);
@@ -38,12 +38,12 @@ main()
   array1.alloc(8, 0);
   assert(array1.size() == 8);
 
-  Raul::Array<int> array2(array1);
+  raul::Array<int> array2(array1);
   for (size_t i = 0; i < array1.size(); ++i) {
     assert(array2[i] == array1[i]);
   }
 
-  Raul::Array<int> array3(8, 47);
+  raul::Array<int> array3(8, 47);
   assert(array3[0] == 47);
   assert(array3.size() == 8);
 
diff --git a/test/build_test.cpp b/test/build_test.cpp
index 72c9793..52559bf 100644
--- a/test/build_test.cpp
+++ b/test/build_test.cpp
@@ -29,36 +29,36 @@
 #  include "raul/Socket.hpp"
 #endif
 
-class DeletableThing : public Raul::Deletable
+class DeletableThing : public raul::Deletable
 {};
 
-class NonCopyableThing : public Raul::Noncopyable
+class NonCopyableThing : public raul::Noncopyable
 {};
 
 int
 main()
 {
-  Raul::Array<int>        array;
+  raul::Array<int>        array;
   DeletableThing          deletable;
-  Raul::DoubleBuffer<int> double_buffer(0);
-  Raul::Maid              maid;
+  raul::DoubleBuffer<int> double_buffer(0);
+  raul::Maid              maid;
   NonCopyableThing        non_copyable;
-  Raul::Path              path;
-  Raul::RingBuffer        ring_buffer(64u);
-  Raul::Semaphore         semaphore(0u);
-  Raul::Symbol            symbol("foo");
+  raul::Path              path;
+  raul::RingBuffer        ring_buffer(64u);
+  raul::Semaphore         semaphore(0u);
+  raul::Symbol            symbol("foo");
 
   try {
-    Raul::Symbol bad_symbol("not a valid symbol!");
+    raul::Symbol bad_symbol("not a valid symbol!");
     (void)bad_symbol;
-  } catch (const Raul::Exception&) {
+  } catch (const raul::Exception&) {
   }
 
 #ifndef _WIN32
   const char* cmd[] = {"echo"};
-  Raul::Process::launch(cmd);
+  raul::Process::launch(cmd);
 
-  Raul::Socket socket(Raul::Socket::Type::UNIX);
+  raul::Socket socket(raul::Socket::Type::UNIX);
 
   (void)socket;
 #endif
diff --git a/test/double_buffer_test.cpp b/test/double_buffer_test.cpp
index 0f58ea2..cb7fb97 100644
--- a/test/double_buffer_test.cpp
+++ b/test/double_buffer_test.cpp
@@ -22,7 +22,7 @@
 int
 main()
 {
-  Raul::DoubleBuffer<int> db(0);
+  raul::DoubleBuffer<int> db(0);
 
   assert(db.get() == 0);
 
diff --git a/test/maid_test.cpp b/test/maid_test.cpp
index ee2ee7f..13284c2 100644
--- a/test/maid_test.cpp
+++ b/test/maid_test.cpp
@@ -25,7 +25,7 @@
 #include <thread>
 #include <vector>
 
-using Raul::Maid;
+using raul::Maid;
 
 static const size_t n_threads         = 8U;
 static const size_t n_junk_per_thread = 1U << 16U;
diff --git a/test/path_test.cpp b/test/path_test.cpp
index 5681ec1..aeea0da 100644
--- a/test/path_test.cpp
+++ b/test/path_test.cpp
@@ -26,8 +26,8 @@
 int
 main()
 {
-  using Path   = Raul::Path;
-  using Symbol = Raul::Symbol;
+  using Path   = raul::Path;
+  using Symbol = raul::Symbol;
 
   assert(Path("/foo/bar").parent() == Path("/foo"));
   assert(Path("/foo").parent() == Path("/"));
diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp
index 6bf32ce..ee9af30 100644
--- a/test/ringbuffer_test.cpp
+++ b/test/ringbuffer_test.cpp
@@ -31,7 +31,7 @@ constexpr const auto MSG_SIZE = 20u;
 
 namespace {
 
-using RingBuffer = Raul::RingBuffer;
+using RingBuffer = raul::RingBuffer;
 
 struct Context {
   std::unique_ptr<RingBuffer> ring{};
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 2e8f8f8..9087b68 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -22,13 +22,13 @@
 #include <thread>
 
 static void
-wait_for_sem(Raul::Semaphore* sem)
+wait_for_sem(raul::Semaphore* sem)
 {
   sem->wait();
 }
 
 static void
-timed_wait_for_sem(Raul::Semaphore* sem)
+timed_wait_for_sem(raul::Semaphore* sem)
 {
   while (!sem->timed_wait(std::chrono::milliseconds(100))) {
   }
@@ -37,7 +37,7 @@ timed_wait_for_sem(Raul::Semaphore* sem)
 int
 main()
 {
-  Raul::Semaphore sem(0);
+  raul::Semaphore sem(0);
   assert(!sem.try_wait());
 
   // Check that semaphore wakes up strict waiter
@@ -63,7 +63,7 @@ main()
   assert(!sem.timed_wait(std::chrono::milliseconds(100)));
 
   // Check that initial value works correctly
-  Raul::Semaphore sem2(2);
+  raul::Semaphore sem2(2);
   assert(sem2.wait());
   assert(sem2.wait());
   assert(!sem2.try_wait());
diff --git a/test/socket_test.cpp b/test/socket_test.cpp
index e1638d6..964a8ae 100644
--- a/test/socket_test.cpp
+++ b/test/socket_test.cpp
@@ -29,7 +29,7 @@
 int
 main()
 {
-  using Socket = Raul::Socket;
+  using Socket = raul::Socket;
 
   std::string unix_uri("unix:///tmp/raul_test_sock");
   std::string tcp_uri("tcp://127.0.0.1:12345");
@@ -88,8 +88,8 @@ main()
   }
 
   // This is the child (client) process
-  Raul::Socket unix_sock(Socket::Type::UNIX);
-  Raul::Socket tcp_sock(Socket::Type::TCP);
+  raul::Socket unix_sock(Socket::Type::UNIX);
+  raul::Socket tcp_sock(Socket::Type::TCP);
 
   assert(unix_sock.connect(unix_uri));
   assert(tcp_sock.connect(tcp_uri));
diff --git a/test/symbol_test.cpp b/test/symbol_test.cpp
index e52a294..1a73903 100644
--- a/test/symbol_test.cpp
+++ b/test/symbol_test.cpp
@@ -25,7 +25,7 @@
 int
 main()
 {
-  using Symbol = Raul::Symbol;
+  using Symbol = raul::Symbol;
 
   std::list<std::string> names;
   names.emplace_back("Dry/Wet Balance");
diff --git a/test/thread_test.cpp b/test/thread_test.cpp
index 8c2d13a..8cc59cf 100644
--- a/test/thread_test.cpp
+++ b/test/thread_test.cpp
@@ -24,7 +24,7 @@
 
 namespace {
 
-using Semaphore = Raul::Semaphore;
+using Semaphore = raul::Semaphore;
 
 thread_local int var(0);
 std::atomic<int> n_errors(0);
diff --git a/wscript b/wscript
index 44a312e..81cb762 100644
--- a/wscript
+++ b/wscript
@@ -10,7 +10,7 @@ from waflib.extras import autowaf
 # major increment <=> incompatible changes
 # minor increment <=> compatible changes (additions)
 # micro increment <=> no interface changes
-RAUL_VERSION       = '1.0.0'
+RAUL_VERSION       = '1.1.0'
 RAUL_MAJOR_VERSION = '1'
 
 # Mandatory waf variables
-- 
cgit v1.2.1