summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_setup.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-17 23:41:56 +0200
committer couriersud <couriersud@gmx.org>2020-05-20 07:58:57 +0200
commit40628bc2693c81501c0b2e08122fa9c25e7f1818 (patch)
tree6ede7258efe37c32d82713b80c41489c8344f469 /src/lib/netlist/nl_setup.cpp
parentdaadbfe6b78b45e91dd405f37d19d5f381f1184b (diff)
netlist: simplify factory call structure. (nw)
This change will make it a lot easier to add enhanced functionality to the factory infrastructure. Using integral constants also improves linking stability.
Diffstat (limited to 'src/lib/netlist/nl_setup.cpp')
-rwxr-xr-xsrc/lib/netlist/nl_setup.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp
index b6df8b562e5..2c89542c52d 100755
--- a/src/lib/netlist/nl_setup.cpp
+++ b/src/lib/netlist/nl_setup.cpp
@@ -170,7 +170,6 @@ namespace netlist
throw nl_exception(MF_NOT_FOUND_IN_SOURCE_COLLECTION(netlist_name));
}
-
void nlparse_t::namespace_push(const pstring &aname)
{
if (m_namespace_stack.empty())
@@ -234,10 +233,9 @@ namespace netlist
m_abstract.m_defparams.emplace_back(namespace_prefix() + name, def);
}
- void nlparse_t::register_lib_entry(const pstring &name, const
- pstring &paramdef, plib::source_location &&sourceloc)
+ void nlparse_t::register_lib_entry(const pstring &name, factory::properties &&props)
{
- m_factory.add(plib::make_unique<factory::library_element_t>(name, paramdef, std::move(sourceloc)));
+ m_factory.add(plib::make_unique<factory::library_element_t>(name, std::move(props)));
}
void nlparse_t::register_frontier(const pstring &attach, const pstring &r_IN,
@@ -273,9 +271,9 @@ namespace netlist
register_link(attach, frontier_name + ".Q");
}
- void nlparse_t::truthtable_create(tt_desc &desc, plib::source_location &&sourceloc)
+ void nlparse_t::truthtable_create(tt_desc &desc, factory::properties &&props)
{
- auto fac = factory::truthtable_create(desc, std::move(sourceloc));
+ auto fac = factory::truthtable_create(desc, std::move(props));
m_factory.add(std::move(fac));
}