summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/prg/nltool.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2017-01-15 23:59:33 +0100
committer couriersud <couriersud@gmx.org>2017-01-16 19:49:44 +0100
commit969e6ed6a0f46aa98a6fbc8c98c4dc575fc9ca9c (patch)
treea4957f569b040190edd7e0d91705c7fad5889c60 /src/lib/netlist/prg/nltool.cpp
parent10a4ab4af1d71d4c9eee2af68f872db00e718db7 (diff)
Keep track were registry elements are created. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r--src/lib/netlist/prg/nltool.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp
index 3850dd935e4..1d796201fd9 100644
--- a/src/lib/netlist/prg/nltool.cpp
+++ b/src/lib/netlist/prg/nltool.cpp
@@ -365,8 +365,17 @@ static void create_header(tool_options_t &opts)
pout(" * ---------------------------------------------------------------------------*/\n");
pout("\n");
+ pstring last_source("");
+
for (auto &e : nt.setup().factory())
{
+ if (last_source != e->sourcefile())
+ {
+ last_source = e->sourcefile();
+ pout("{1}\n", pstring("// ").rpad("-", 72));
+ pout("{1}\n", pstring("// Source: ").cat(e->sourcefile().replace("../","")));
+ pout("{1}\n", pstring("// ").rpad("-", 72));
+ }
auto v = plib::pstring_vector_t(e->param_desc(), ",");
pstring vs;
for (auto s : v)