summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ingen/client/SigClientInterface.hpp3
-rw-r--r--src/Configuration.cpp7
-rw-r--r--src/Log.cpp2
-rw-r--r--src/Serialiser.cpp5
-rw-r--r--src/SocketReader.cpp3
-rw-r--r--src/URIMap.cpp2
-rw-r--r--src/client/PluginModel.cpp2
-rw-r--r--src/gui/PortMenu.cpp2
-rw-r--r--src/gui/Style.hpp3
-rw-r--r--src/gui/rgba.hpp2
-rw-r--r--src/ingen/ingen.cpp2
-rw-r--r--src/runtime_paths.cpp5
-rw-r--r--src/server/BlockFactory.cpp2
-rw-r--r--src/server/BlockImpl.cpp4
-rw-r--r--src/server/Buffer.cpp6
-rw-r--r--src/server/ControlBindings.cpp2
-rw-r--r--src/server/ControlBindings.hpp5
-rw-r--r--src/server/EventWriter.hpp1
-rw-r--r--src/server/LV2Block.cpp3
-rw-r--r--src/server/PortAudioDriver.hpp3
-rw-r--r--src/server/PostProcessor.cpp2
-rw-r--r--src/server/SocketListener.cpp2
-rw-r--r--src/server/internals/BlockDelay.cpp2
-rw-r--r--src/server/internals/Controller.cpp2
-rw-r--r--src/server/mix.hpp2
-rw-r--r--src/server/types.hpp3
-rw-r--r--tests/ingen_test.cpp2
27 files changed, 36 insertions, 43 deletions
diff --git a/ingen/client/SigClientInterface.hpp b/ingen/client/SigClientInterface.hpp
index 6e94b257..8ac8dca4 100644
--- a/ingen/client/SigClientInterface.hpp
+++ b/ingen/client/SigClientInterface.hpp
@@ -17,8 +17,7 @@
#ifndef INGEN_CLIENT_SIGCLIENTINTERFACE_HPP
#define INGEN_CLIENT_SIGCLIENTINTERFACE_HPP
-#include <stdint.h>
-
+#include <cstdint>
#include <string>
#include "raul/Path.hpp"
diff --git a/src/Configuration.cpp b/src/Configuration.cpp
index 6cda3289..bdbf07bc 100644
--- a/src/Configuration.cpp
+++ b/src/Configuration.cpp
@@ -14,10 +14,9 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
-#include <errno.h>
-#include <string.h>
-
+#include <cassert>
+#include <cerrno>
+#include <cstring>
#include <iostream>
#include <thread>
diff --git a/src/Log.cpp b/src/Log.cpp
index 397e8047..6145bcd1 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdio.h>
+#include <cstdio>
#include "ingen/Log.hpp"
#include "ingen/Node.hpp"
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index b572b453..2f976d53 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -14,11 +14,10 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <errno.h>
-#include <string.h>
-
#include <cassert>
+#include <cerrno>
#include <cstdlib>
+#include <cstring>
#include <set>
#include <string>
#include <utility>
diff --git a/src/SocketReader.cpp b/src/SocketReader.cpp
index 56aeeba7..13e95430 100644
--- a/src/SocketReader.cpp
+++ b/src/SocketReader.cpp
@@ -14,7 +14,8 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <errno.h>
+#include <cerrno>
+
#include <poll.h>
#include "ingen/AtomForgeSink.hpp"
diff --git a/src/URIMap.cpp b/src/URIMap.cpp
index 0be308d7..01d48c00 100644
--- a/src/URIMap.cpp
+++ b/src/URIMap.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
+#include <cstdint>
#include <glib.h>
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 0cf1419d..5427b75e 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -14,8 +14,6 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <ctype.h>
-
#include <string>
#include <algorithm>
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp
index 4cff55f7..c6ec8fa1 100644
--- a/src/gui/PortMenu.cpp
+++ b/src/gui/PortMenu.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <math.h>
+#include <cmath>
#include "ingen/Interface.hpp"
#include "ingen/client/GraphModel.hpp"
diff --git a/src/gui/Style.hpp b/src/gui/Style.hpp
index f92d884e..8e628a3d 100644
--- a/src/gui/Style.hpp
+++ b/src/gui/Style.hpp
@@ -17,8 +17,7 @@
#ifndef INGEN_GUI_STYLE_HPP
#define INGEN_GUI_STYLE_HPP
-#include <stdint.h>
-
+#include <cstdint>
#include <string>
namespace Ingen { namespace Client { class PortModel; } }
diff --git a/src/gui/rgba.hpp b/src/gui/rgba.hpp
index 8648aece..dae3f179 100644
--- a/src/gui/rgba.hpp
+++ b/src/gui/rgba.hpp
@@ -17,7 +17,7 @@
#ifndef INGEN_GUI_RGBA_HPP
#define INGEN_GUI_RGBA_HPP
-#include <math.h>
+#include <cmath>
namespace Ingen {
namespace GUI {
diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp
index 5630e56b..a9047d1b 100644
--- a/src/ingen/ingen.cpp
+++ b/src/ingen/ingen.cpp
@@ -15,8 +15,8 @@
*/
#include <signal.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <chrono>
#include <iostream>
#include <memory>
diff --git a/src/runtime_paths.cpp b/src/runtime_paths.cpp
index aeb86433..bc3bf302 100644
--- a/src/runtime_paths.cpp
+++ b/src/runtime_paths.cpp
@@ -14,11 +14,10 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <climits>
+#include <cstdlib>
#include <string>
-#include <limits.h>
-#include <stdlib.h>
-
#include <dlfcn.h>
#include <glibmm/module.h>
diff --git a/src/server/BlockFactory.cpp b/src/server/BlockFactory.cpp
index 65108483..7dcfd6af 100644
--- a/src/server/BlockFactory.cpp
+++ b/src/server/BlockFactory.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
+#include <cstdlib>
#include "lilv/lilv.h"
diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp
index e2c202a8..e95645f9 100644
--- a/src/server/BlockImpl.cpp
+++ b/src/server/BlockImpl.cpp
@@ -14,8 +14,8 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
-#include <stdint.h>
+#include <cassert>
+#include <cstdint>
#include "raul/Array.hpp"
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index 287c6011..d609a2af 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -16,10 +16,10 @@
#define __STDC_LIMIT_MACROS 1
-#include <math.h>
+#include <cmath>
+#include <cstdint>
+#include <cstring>
#include <new>
-#include <stdint.h>
-#include <string.h>
#ifdef __SSE__
# include <xmmintrin.h>
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp
index 7feed87e..8d4d6974 100644
--- a/src/server/ControlBindings.cpp
+++ b/src/server/ControlBindings.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <math.h>
+#include <cmath>
#include "ingen/Log.hpp"
#include "ingen/URIMap.hpp"
diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp
index 756ddd66..3160f8b2 100644
--- a/src/server/ControlBindings.hpp
+++ b/src/server/ControlBindings.hpp
@@ -18,10 +18,11 @@
#define INGEN_ENGINE_CONTROLBINDINGS_HPP
#include <atomic>
+#include <cstdint>
+#include <vector>
+
#include <boost/intrusive/options.hpp>
#include <boost/intrusive/set.hpp>
-#include <stdint.h>
-#include <vector>
#include "ingen/Atom.hpp"
#include "ingen/types.hpp"
diff --git a/src/server/EventWriter.hpp b/src/server/EventWriter.hpp
index 023761d6..2d4b9724 100644
--- a/src/server/EventWriter.hpp
+++ b/src/server/EventWriter.hpp
@@ -17,7 +17,6 @@
#ifndef INGEN_ENGINE_EVENTWRITER_HPP
#define INGEN_ENGINE_EVENTWRITER_HPP
-#include <inttypes.h>
#include <memory>
#include <string>
diff --git a/src/server/LV2Block.cpp b/src/server/LV2Block.cpp
index 054d55ae..53bed410 100644
--- a/src/server/LV2Block.cpp
+++ b/src/server/LV2Block.cpp
@@ -14,10 +14,9 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-
#include <cassert>
#include <cmath>
+#include <cstdint>
#include <glibmm/miscutils.h>
#include <glibmm/convert.h>
diff --git a/src/server/PortAudioDriver.hpp b/src/server/PortAudioDriver.hpp
index 11772a88..b1545f64 100644
--- a/src/server/PortAudioDriver.hpp
+++ b/src/server/PortAudioDriver.hpp
@@ -21,9 +21,10 @@
#include <atomic>
#include <memory>
-#include <portaudio.h>
#include <string>
+#include <portaudio.h>
+
#include "raul/Semaphore.hpp"
#include "lv2/lv2plug.in/ns/ext/atom/forge.h"
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index f0a58b18..b275c36a 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
+#include <cassert>
#include "Engine.hpp"
#include "Event.hpp"
diff --git a/src/server/SocketListener.cpp b/src/server/SocketListener.cpp
index eecc28d1..a6faa863 100644
--- a/src/server/SocketListener.cpp
+++ b/src/server/SocketListener.cpp
@@ -14,12 +14,12 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <errno.h>
#include <poll.h>
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <cerrno>
#include <sstream>
#include <string>
#include <thread>
diff --git a/src/server/internals/BlockDelay.cpp b/src/server/internals/BlockDelay.cpp
index e9667cc5..6b27ed83 100644
--- a/src/server/internals/BlockDelay.cpp
+++ b/src/server/internals/BlockDelay.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <limits.h>
+#include <climits>
#include <cmath>
diff --git a/src/server/internals/Controller.cpp b/src/server/internals/Controller.cpp
index a0b2320b..4c1cf45a 100644
--- a/src/server/internals/Controller.cpp
+++ b/src/server/internals/Controller.cpp
@@ -14,7 +14,7 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <math.h>
+#include <cmath>
#include "ingen/URIs.hpp"
#include "internals/Controller.hpp"
diff --git a/src/server/mix.hpp b/src/server/mix.hpp
index 58986750..3d8880db 100644
--- a/src/server/mix.hpp
+++ b/src/server/mix.hpp
@@ -17,7 +17,7 @@
#ifndef INGEN_ENGINE_MIX_HPP
#define INGEN_ENGINE_MIX_HPP
-#include <stdint.h>
+#include <cstdint>
namespace Ingen {
diff --git a/src/server/types.hpp b/src/server/types.hpp
index 3747e3ea..e7dae117 100644
--- a/src/server/types.hpp
+++ b/src/server/types.hpp
@@ -17,8 +17,7 @@
#ifndef INGEN_ENGINE_TYPES_HPP
#define INGEN_ENGINE_TYPES_HPP
-#include <stdint.h>
-#include <cstddef>
+#include <cstdint>
typedef float Sample;
typedef uint32_t SampleCount;
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index ccd39d9c..ab7cbc7d 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -15,8 +15,8 @@
*/
#include <signal.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <iostream>
#include <string>