From bcfa9eae6f16c35254a5cee1fb992f988c0a86ce Mon Sep 17 00:00:00 2001 From: couriersud Date: Fri, 15 Nov 2019 21:55:41 +0100 Subject: netlist: maintenance and bug fixes, remove DUMMY_INPUT. [Couriersud] - Removed DUMMY_INPUT. NC (not connected) pins should now use NC_PIN. If a NC_PIN is actually connected, an error will be logged and validation will fail. - Enabled "extended" validation. This will catch now if power terminals are not connected. - Added const and noexcept where appropriate. - Removed dead code. - Fixed the 7414 Schmitt-Trigger device to use nld_power_pins --- src/lib/netlist/plib/pstring.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/netlist/plib/pstring.cpp') diff --git a/src/lib/netlist/plib/pstring.cpp b/src/lib/netlist/plib/pstring.cpp index 7af1228ef6d..b6ec39c25ed 100644 --- a/src/lib/netlist/plib/pstring.cpp +++ b/src/lib/netlist/plib/pstring.cpp @@ -10,7 +10,7 @@ #include template -int pstring_t::compare(const pstring_t &right) const +int pstring_t::compare(const pstring_t &right) const noexcept { if (mem_t_size() == 0 && right.mem_t_size() == 0) return 0; @@ -54,7 +54,7 @@ pstring_t pstring_t::substr(size_type start, size_type nlen) const } template -typename pstring_t::size_type pstring_t::find(const pstring_t &search, size_type start) const +typename pstring_t::size_type pstring_t::find(const pstring_t &search, size_type start) const noexcept { auto istart = std::next(begin(), static_cast(start)); for (; istart != end(); ++istart) @@ -74,7 +74,7 @@ typename pstring_t::size_type pstring_t::find(const pstring_t &search, siz } template -typename pstring_t::size_type pstring_t::find(code_t search, size_type start) const +typename pstring_t::size_type pstring_t::find(code_t search, size_type start) const noexcept { pstring_t ss; traits_type::encode(search, ss.m_str); -- cgit v1.2.3-70-g09d2