summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/prg/nltool.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2017-03-31 18:07:35 +0200
committer couriersud <couriersud@gmx.org>2017-04-04 02:02:56 +0200
commit58aa97913fa966b03d3b5bed77c6670e49821f1e (patch)
tree22aa0c6d2a40ed4a751226ae33d28db6ae149be3 /src/lib/netlist/prg/nltool.cpp
parent9e78adc115a11d4495d291b10d5177a9d06d62f2 (diff)
pstring, pdynlib, pfmtlog refactoring :
pstring: - added support for UTF16LE to pstring. - renamed size() to mem_t_size() - renmaed len() to length() - added size() == length() - added empty() - added simple compare() pfmtlog: - Simplified pfmtlog, added more c++ pdynlib: - add a dynproc type to dynlib to wrap dynamic library calls. various: - fix two coverty scan issue. - various clang warnings fixed. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rwxr-xr-x[-rw-r--r--]src/lib/netlist/prg/nltool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp
index bde2bcd5b6c..cca0fbe2741 100644..100755
--- a/src/lib/netlist/prg/nltool.cpp
+++ b/src/lib/netlist/prg/nltool.cpp
@@ -591,7 +591,7 @@ void tool_app_t::listdevices()
for (auto & f : list)
{
- pstring out = plib::pfmt("{1} {2}(<id>")(f->classname(),"-20")(f->name());
+ pstring out = plib::pfmt("{1:-20} {2}(<id>")(f->classname())(f->name());
std::vector<pstring> terms;
f->macro_actions(nt.setup().netlist(), f->name() + "_lc");
@@ -602,7 +602,7 @@ void tool_app_t::listdevices()
{
if (t.second->name().startsWith(d->name()))
{
- pstring tn(t.second->name().substr(d->name().len()+1));
+ pstring tn(t.second->name().substr(d->name().length()+1));
if (tn.find(".") == pstring::npos)
terms.push_back(tn);
}
@@ -612,7 +612,7 @@ void tool_app_t::listdevices()
{
if (t.first.startsWith(d->name()))
{
- pstring tn(t.first.substr(d->name().len()+1));
+ pstring tn(t.first.substr(d->name().length()+1));
//printf("\t%s %s %s\n", t.first.c_str(), t.second.c_str(), tn.c_str());
if (tn.find(".") == pstring::npos)
{
@@ -621,7 +621,7 @@ void tool_app_t::listdevices()
//printf("\t%s %s %s\n", t.first.c_str(), t.second.c_str(), resolved.c_str());
if (resolved != t.first)
{
- auto found = std::find(terms.begin(), terms.end(), resolved.substr(d->name().len()+1));
+ auto found = std::find(terms.begin(), terms.end(), resolved.substr(d->name().length()+1));
if (found!=terms.end())
terms.erase(found);
}