diff --git a/src/lib/netlist/nl_base.cpp b/src/lib/netlist/nl_base.cpp index fa789ba59a9..ca4a8600cd2 100644 --- a/src/lib/netlist/nl_base.cpp +++ b/src/lib/netlist/nl_base.cpp @@ -5,9 +5,9 @@ #include "solver/nld_solver.h" #include "plib/palloc.h" +#include "plib/pfmtlog.h" #include "plib/pmempool.h" #include "plib/putil.h" -#include "plib/pfmtlog.h" #include "devices/nlid_proxy.h" #include "devices/nlid_system.h" diff --git a/src/lib/netlist/nl_config.h b/src/lib/netlist/nl_config.h index 0fc82ae4f79..3ce69e9595f 100644 --- a/src/lib/netlist/nl_config.h +++ b/src/lib/netlist/nl_config.h @@ -149,7 +149,7 @@ /// | 63 | 1,000,000,000,000 | 9,223,372 | 107| 0.3 | /// -static constexpr const auto NETLIST_INTERNAL_RES = 10'000'000'000ll; +static constexpr const auto NETLIST_INTERNAL_RES = 10'000'000'000LL; /// \brief Recommended clock to be used /// diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h index 1aa23682ca6..c1269e3752c 100644 --- a/src/lib/netlist/plib/palloc.h +++ b/src/lib/netlist/plib/palloc.h @@ -9,9 +9,9 @@ /// #include "pconfig.h" +#include "pmath.h" #include "pstring.h" #include "ptypes.h" -#include "pmath.h" #include // for std::max_align_t (usually long long) #include diff --git a/src/lib/netlist/plib/plists.h b/src/lib/netlist/plib/plists.h index 82a963735f5..efa0326f431 100644 --- a/src/lib/netlist/plib/plists.h +++ b/src/lib/netlist/plib/plists.h @@ -156,7 +156,7 @@ namespace plib { C14CONSTEXPR LC* operator->() const noexcept { return p; } }; - constexpr linkedlist_t() : m_head(nullptr) {} + constexpr linkedlist_t() noexcept : m_head(nullptr) {} constexpr iter_t begin() const noexcept { return iter_t(m_head); } constexpr iter_t end() const noexcept { return iter_t(nullptr); } diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index b6594b02d79..dd4a82acea7 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -675,16 +675,12 @@ void tool_app_t::header_entry(const netlist::factory::element_t *e) for (const auto &s : v) { - pstring r(plib::replace_all(plib::replace_all(plib::replace_all(s, "+", ""), ".", "_"), "@","")); - if (plib::startsWith(s, "+")) - vs += ", p" + r; - else if (plib::startsWith(s, "@")) + if (!plib::startsWith(s, "@")) { - // automatically connected - //mac_out("\tNET_CONNECT(name, " + r + ", " + r + ")"); - } - else + // @ gets automatically connected + const pstring r(plib::replace_all(plib::replace_all(plib::replace_all(s, "+", ""), ".", "_"), "@","")); vs += ", p" + r; + } } mac_out("\tNET_REGISTER_DEVEXT(" + e->name() +", name" + vs + ")", false);