From 319be2dfd271ebf81ba3cf651be0b30695ec0d06 Mon Sep 17 00:00:00 2001 From: couriersud Date: Wed, 1 Jul 2020 20:59:04 +0200 Subject: netlist: code maintenance and bug fixes. * palloc.h/pmatrix2d.h: Fix static_assert warnings at the origin. * Rework hints to broaden their use and fix NC hint. * 74377: use NC hint * plists.h: Fix debugging in MSVC * Include cleanup: Move everything not needed by netlists from nl_setup.h into core/setup.h * Fix some clang tidy warnings * srcclean --- src/lib/netlist/nl_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/netlist/nl_parser.cpp') diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp index 9a8561f4cf3..7c0ad9e7ff7 100644 --- a/src/lib/netlist/nl_parser.cpp +++ b/src/lib/netlist/nl_parser.cpp @@ -133,7 +133,7 @@ void parser_t::parse_netlist(const pstring &nlname) { require_token(m_tok_paren_left); // FIXME: Need to pass in parameter definition FIXME: get line number right - m_setup.register_lib_entry(get_identifier(), factory::properties("", plib::source_location("parser: " + nlname, 1))); + m_setup.register_lib_entry(get_identifier(), "", plib::source_location("parser: " + nlname, 1)); require_token(m_tok_paren_right); } else if (token.is(m_tok_NETLIST_END)) @@ -199,7 +199,7 @@ void parser_t::net_truthtable_start(const pstring &nlname) require_token(m_tok_paren_left); require_token(m_tok_paren_right); // FIXME: proper location - m_setup.truthtable_create(desc, factory::properties("+" + def_param, plib::source_location(nlname, 1))); + m_setup.truthtable_create(desc, "+" + def_param, plib::source_location(nlname, 1)); return; } } @@ -378,7 +378,7 @@ void parser_t::netdev_hint() pstring id(get_identifier()); require_token(m_tok_comma); pstring hint(get_identifier()); - m_setup.register_hint(id + ".HINT_" + hint); + m_setup.register_hint(id, ".HINT_" + hint); require_token(m_tok_paren_right); } -- cgit v1.2.3