From fceee50c8bd6d930fc1f152ede4185ce7dc44c40 Mon Sep 17 00:00:00 2001 From: couriersud Date: Wed, 29 Jan 2020 19:00:10 +0100 Subject: netlist: Parameters evaluated when netlist is created. [Couriersud] Parameters are now passed to the netlist core as strings. During netlist creation they are evaluated as functions. This opens the path to parameters on subdevice level. Examples: PARAM(device.XY, (1+2*0.005)) RES(R1, 2.05*RES_K(1)+1) In addition the commit contains dead code removal. --- src/lib/netlist/plib/ppreprocessor.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lib/netlist/plib/ppreprocessor.cpp') diff --git a/src/lib/netlist/plib/ppreprocessor.cpp b/src/lib/netlist/plib/ppreprocessor.cpp index e2058a5b5ad..74d32fcd477 100644 --- a/src/lib/netlist/plib/ppreprocessor.cpp +++ b/src/lib/netlist/plib/ppreprocessor.cpp @@ -226,7 +226,6 @@ namespace plib { { pstring s(STR); pi++; - // FIXME : \" while (pi < tmp.size() && tmp[pi] != STR) { s += tmp[pi]; @@ -454,7 +453,6 @@ namespace plib { line = process_comments(m_line); pstring lt = plib::trim(plib::replace_all(line, "\t", " ")); - // FIXME ... revise and extend macro handling if (plib::startsWith(lt, "#")) { string_list lti(psplit(lt, " ", true)); @@ -462,7 +460,6 @@ namespace plib { { m_if_level++; lt = replace_macros(lt); - //std::vector t(psplit(replace_all(lt.substr(3), " ", ""), m_expr_sep)); auto t(simple_iter(this, tokenize(lt.substr(3), m_expr_sep, true, true))); auto val = static_cast(prepro_expr(t, 255)); t.skip_ws(); -- cgit v1.2.3