summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-16 21:09:11 +0200
committerDavid Robillard <d@drobilla.net>2018-09-16 21:12:33 +0200
commitd6744d73957bb23a57a5d2c1f207eb239d1a6d0d (patch)
tree0d96084528407848f4c13f37729b8590d02d587d /raul
parentc36cd340ac0037ff75c9c287cf4c82e2f58beb2f (diff)
downloadraul-d6744d73957bb23a57a5d2c1f207eb239d1a6d0d.tar.gz
raul-d6744d73957bb23a57a5d2c1f207eb239d1a6d0d.tar.bz2
raul-d6744d73957bb23a57a5d2c1f207eb239d1a6d0d.zip
Clean up includes
Diffstat (limited to 'raul')
-rw-r--r--raul/Array.hpp5
-rw-r--r--raul/Exception.hpp1
-rw-r--r--raul/Maid.hpp6
-rw-r--r--raul/Path.hpp6
-rw-r--r--raul/Process.hpp4
-rw-r--r--raul/RingBuffer.hpp13
-rw-r--r--raul/Semaphore.hpp10
-rw-r--r--raul/Socket.hpp14
-rw-r--r--raul/Symbol.hpp4
-rw-r--r--raul/TimeSlice.hpp6
-rw-r--r--raul/TimeStamp.hpp5
11 files changed, 38 insertions, 36 deletions
diff --git a/raul/Array.hpp b/raul/Array.hpp
index 1920b4a..5f1d4e6 100644
--- a/raul/Array.hpp
+++ b/raul/Array.hpp
@@ -17,11 +17,12 @@
#ifndef RAUL_ARRAY_HPP
#define RAUL_ARRAY_HPP
+#include "raul/Maid.hpp"
+
#include <algorithm>
#include <cassert>
#include <cstddef>
-
-#include "raul/Maid.hpp"
+#include <memory>
namespace Raul {
diff --git a/raul/Exception.hpp b/raul/Exception.hpp
index 78e9f08..a1c5dfd 100644
--- a/raul/Exception.hpp
+++ b/raul/Exception.hpp
@@ -16,6 +16,7 @@
#include <exception>
#include <string>
+#include <utility>
#ifndef RAUL_EXCEPTION_HPP
#define RAUL_EXCEPTION_HPP
diff --git a/raul/Maid.hpp b/raul/Maid.hpp
index 73cb82a..26845b6 100644
--- a/raul/Maid.hpp
+++ b/raul/Maid.hpp
@@ -17,12 +17,12 @@
#ifndef RAUL_MAID_HPP
#define RAUL_MAID_HPP
-#include <atomic>
-#include <memory>
-
#include "raul/Deletable.hpp"
#include "raul/Noncopyable.hpp"
+#include <atomic>
+#include <memory>
+
namespace Raul {
/** Explicit garbage-collector.
diff --git a/raul/Path.hpp b/raul/Path.hpp
index 2d0c9c7..d5116d2 100644
--- a/raul/Path.hpp
+++ b/raul/Path.hpp
@@ -17,12 +17,12 @@
#ifndef RAUL_PATH_HPP
#define RAUL_PATH_HPP
-#include <algorithm>
-#include <string>
-
#include "raul/Exception.hpp"
#include "raul/Symbol.hpp"
+#include <algorithm>
+#include <string>
+
namespace Raul {
/** A restricted path of Symbols separated by, and beginning with, "/".
diff --git a/raul/Process.hpp b/raul/Process.hpp
index 61fb501..0b3a819 100644
--- a/raul/Process.hpp
+++ b/raul/Process.hpp
@@ -17,14 +17,14 @@
#ifndef RAUL_PROCESS_HPP
#define RAUL_PROCESS_HPP
+#include "raul/Noncopyable.hpp"
+
#include <sys/resource.h>
#include <sys/time.h>
#include <unistd.h>
#include <string>
-#include "raul/Noncopyable.hpp"
-
namespace Raul {
/** A child process.
diff --git a/raul/RingBuffer.hpp b/raul/RingBuffer.hpp
index 1ec5e4e..d92c16b 100644
--- a/raul/RingBuffer.hpp
+++ b/raul/RingBuffer.hpp
@@ -17,14 +17,15 @@
#ifndef RAUL_RING_BUFFER_HPP
#define RAUL_RING_BUFFER_HPP
-#include <assert.h>
-#include <atomic>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "raul/Noncopyable.hpp"
+#include <atomic>
+#include <cassert>
+#include <cstdint>
+#include <cstdlib>
+#include <cstring>
+#include <memory>
+
namespace Raul {
/**
diff --git a/raul/Semaphore.hpp b/raul/Semaphore.hpp
index ee79ba7..e0fbf18 100644
--- a/raul/Semaphore.hpp
+++ b/raul/Semaphore.hpp
@@ -17,19 +17,19 @@
#ifndef RAUL_SEMAPHORE_HPP
#define RAUL_SEMAPHORE_HPP
-#include <chrono>
-#include <stdexcept>
-
#ifdef __APPLE__
# include <mach/mach.h>
#elif defined(_WIN32)
# include <windows.h>
#else
-# include <errno.h>
+# include <cerrno>
+# include <ctime>
# include <semaphore.h>
-# include <time.h>
#endif
+#include <chrono>
+#include <stdexcept>
+
namespace Raul {
/**
diff --git a/raul/Socket.hpp b/raul/Socket.hpp
index fed58dd..7da4388 100644
--- a/raul/Socket.hpp
+++ b/raul/Socket.hpp
@@ -17,21 +17,21 @@
#ifndef RAUL_SOCKET_HPP
#define RAUL_SOCKET_HPP
-#include <memory>
-#include <string>
+#include "raul/Noncopyable.hpp"
-#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <poll.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
-#include "raul/Noncopyable.hpp"
+#include <cerrno>
+#include <cstdint>
+#include <cstdlib>
+#include <cstring>
+#include <memory>
+#include <string>
namespace Raul {
diff --git a/raul/Symbol.hpp b/raul/Symbol.hpp
index 1ec775f..1189b7b 100644
--- a/raul/Symbol.hpp
+++ b/raul/Symbol.hpp
@@ -17,10 +17,10 @@
#ifndef RAUL_SYMBOL_HPP
#define RAUL_SYMBOL_HPP
-#include <string>
-
#include "raul/Exception.hpp"
+#include <string>
+
namespace Raul {
/** A restricted string which is a valid C identifier and Path component.
diff --git a/raul/TimeSlice.hpp b/raul/TimeSlice.hpp
index 5cc1dc2..92979b0 100644
--- a/raul/TimeSlice.hpp
+++ b/raul/TimeSlice.hpp
@@ -17,12 +17,12 @@
#ifndef RAUL_TIME_SLICE_HPP
#define RAUL_TIME_SLICE_HPP
-#include <cassert>
-#include <cmath>
-
#include "raul/Noncopyable.hpp"
#include "raul/TimeStamp.hpp"
+#include <cassert>
+#include <cmath>
+
namespace Raul {
/* FIXME: all the conversion here is wrong now */
diff --git a/raul/TimeStamp.hpp b/raul/TimeStamp.hpp
index ef0df5d..dbbc163 100644
--- a/raul/TimeStamp.hpp
+++ b/raul/TimeStamp.hpp
@@ -17,10 +17,9 @@
#ifndef RAUL_TIME_STAMP_HPP
#define RAUL_TIME_STAMP_HPP
-#include <math.h>
-#include <stdint.h>
-
#include <cassert>
+#include <cmath>
+#include <cstdint>
#include <iostream>
#include <limits>