diff options
author | 2020-01-19 20:56:53 +0100 | |
---|---|---|
committer | 2020-01-19 20:56:53 +0100 | |
commit | 0f69abe4dc6e757713f45e09102cfbedca25a473 (patch) | |
tree | 9ec15e467f5e2142f6be8ccce5317b111c169e47 /src/lib/netlist/prg/nltool.cpp | |
parent | b4e82448271a3e572a532e479d88d2e9ab1d033d (diff) |
netlist: clang tidy fixes. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r-- | src/lib/netlist/prg/nltool.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
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); |