From 969e6ed6a0f46aa98a6fbc8c98c4dc575fc9ca9c Mon Sep 17 00:00:00 2001 From: couriersud Date: Sun, 15 Jan 2017 23:59:33 +0100 Subject: Keep track were registry elements are created. (nw) --- src/lib/netlist/prg/nltool.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/netlist/prg/nltool.cpp') 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) -- cgit v1.2.3