summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2014-02-19 20:53:31 +0000
committer Couriersud <couriersud@users.noreply.github.com>2014-02-19 20:53:31 +0000
commitf3548f7f41eb75fdaebc3d380496e0a17a616137 (patch)
treec5b737df176b997404bd10f0f9f35716aed2c0e3 /src/tools
parentf8f702157d85c5a96ed2cded50122a7b6414ac2a (diff)
Abstracted netlist sources. This is a first step to support libraries (e.g. for opamps). [Couriersud]
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/nltool.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/nltool.c b/src/tools/nltool.c
index c88fb19dce0..ea62c1d5bca 100644
--- a/src/tools/nltool.c
+++ b/src/tools/nltool.c
@@ -16,6 +16,7 @@
#include "sha1.h"
#include "netlist/nl_base.h"
#include "netlist/nl_setup.h"
+#include "netlist/nl_parser.h"
#include "netlist/nl_util.h"
#include "options.h"
@@ -124,9 +125,12 @@ public:
{
// read the netlist ...
- //m_setup_func(*m_setup);
- m_setup->parse(buffer);
+ netlist_sources_t sources;
+
+ sources.add(netlist_source_t(buffer));
+ sources.parse(*m_setup,"");
+ //m_setup->parse(buffer);
log_setup();
// start devices