summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
authorGravatarGravatar couriersud <couriersud@gmx.org>2019-11-04 00:32:47 +0100
committerGravatarGravatar couriersud <couriersud@gmx.org>2019-11-04 00:32:47 +0100
commite896b3914ecb262b5ec143b3918404d9866fa555 (patch)
treeb6d11926b1388d4c3149cf43d5831d75b4ce2593 /src/lib
parentfb72f2f7642dd94bb196adbf6f2c645562414902 (diff)
netlist: code maintenance. (nw)
- leave a note that cstdlib is needed for getenv. - Remove commented out includes - make sure all headers are self - contained, i.e. compile
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/netlist/nltypes.h1
-rw-r--r--src/lib/netlist/plib/palloc.h1
-rw-r--r--src/lib/netlist/plib/pchrono.h1
-rw-r--r--src/lib/netlist/plib/pfmtlog.cpp1
-rw-r--r--src/lib/netlist/plib/pmempool.h1
-rw-r--r--src/lib/netlist/plib/putil.cpp2
-rw-r--r--src/lib/netlist/plib/vector_ops.h1
7 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/netlist/nltypes.h b/src/lib/netlist/nltypes.h
index 236b6dc1519..90c672af84c 100644
--- a/src/lib/netlist/nltypes.h
+++ b/src/lib/netlist/nltypes.h
@@ -22,7 +22,6 @@
#include "plib/ptime.h"
#include "plib/putil.h"
-//#include <cstdint>
#include <unordered_map>
namespace netlist
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h
index 9c6512bb949..2873d5a0be9 100644
--- a/src/lib/netlist/plib/palloc.h
+++ b/src/lib/netlist/plib/palloc.h
@@ -13,7 +13,6 @@
#include "ptypes.h"
#include <cstddef> // for std::max_align_t (usually long long)
-//#include <cstdlib>
#include <memory>
#include <type_traits>
#include <utility>
diff --git a/src/lib/netlist/plib/pchrono.h b/src/lib/netlist/plib/pchrono.h
index 21890099d3f..869998cc1df 100644
--- a/src/lib/netlist/plib/pchrono.h
+++ b/src/lib/netlist/plib/pchrono.h
@@ -12,7 +12,6 @@
#include "ptypes.h"
#include <chrono>
-//#include <cstdint>
namespace plib {
namespace chrono {
diff --git a/src/lib/netlist/plib/pfmtlog.cpp b/src/lib/netlist/plib/pfmtlog.cpp
index f832599ab23..44801e2d96b 100644
--- a/src/lib/netlist/plib/pfmtlog.cpp
+++ b/src/lib/netlist/plib/pfmtlog.cpp
@@ -12,7 +12,6 @@
#include <algorithm>
#include <array>
-#include <cmath>
#include <iomanip>
#include <iostream>
diff --git a/src/lib/netlist/plib/pmempool.h b/src/lib/netlist/plib/pmempool.h
index 562b4a15625..3c87622bb07 100644
--- a/src/lib/netlist/plib/pmempool.h
+++ b/src/lib/netlist/plib/pmempool.h
@@ -15,7 +15,6 @@
#include "putil.h"
#include <algorithm>
-//#include <cstddef>
#include <memory>
#include <unordered_map>
#include <utility>
diff --git a/src/lib/netlist/plib/putil.cpp b/src/lib/netlist/plib/putil.cpp
index e0388ba9610..986f5eb75ec 100644
--- a/src/lib/netlist/plib/putil.cpp
+++ b/src/lib/netlist/plib/putil.cpp
@@ -7,7 +7,7 @@
#include "ptypes.h"
#include <algorithm>
-#include <cstdlib>
+#include <cstdlib> // needed for getenv ...
#include <initializer_list>
namespace plib
diff --git a/src/lib/netlist/plib/vector_ops.h b/src/lib/netlist/plib/vector_ops.h
index bb94b0793f3..c603a3c43db 100644
--- a/src/lib/netlist/plib/vector_ops.h
+++ b/src/lib/netlist/plib/vector_ops.h
@@ -11,6 +11,7 @@
#define PLIB_VECTOR_OPS_H_
#include "pconfig.h"
+#include "pmath.h"
#include <algorithm>
#include <array>