diff options
author | 2017-03-30 20:20:00 +0200 | |
---|---|---|
committer | 2017-03-30 22:06:03 +0200 | |
commit | ac13946ffbec538f5fc193843fae7dd513b9c58e (patch) | |
tree | 44ee3cdb306b6cbd214c12bd8cb46dc1e6e6fb19 /src/devices/machine/netlist.cpp | |
parent | ac856bc4d1d22a4be0cd8c86ec7da66761becc96 (diff) |
Change pstring to use std::string as storage container.
This removes all allocation code from pstring. const_iterator is
consequently now based on pstring::const_iterator.
Removed pstring_buffer. This was class wasn't a good idea.
Vas was right: This change did not impact runtime performance. Startup
performance (string intensive) increased. (nw)
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r-- | src/devices/machine/netlist.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp index 3c61bb60c2b..953ad23c72b 100644 --- a/src/devices/machine/netlist.cpp +++ b/src/devices/machine/netlist.cpp @@ -501,7 +501,7 @@ void netlist_mame_analog_output_t::static_set_params(device_t &device, const cha void netlist_mame_analog_output_t::custom_netlist_additions(netlist::setup_t &setup) { const pstring pin(m_in, pstring::UTF8); - pstring dname = "OUT_" + pin; + pstring dname = pstring("OUT_") + pin; m_delegate.bind_relative_to(owner()->machine().root_device()); plib::owned_ptr<netlist::device_t> dev = plib::owned_ptr<netlist::device_t>::Create<NETLIB_NAME(analog_callback)>(setup.netlist(), setup.build_fqn(dname)); @@ -783,7 +783,7 @@ netlist_mame_device_t::netlist_mame_device_t(const machine_config &mconfig, devi netlist_mame_device_t::~netlist_mame_device_t() { - pstring::resetmem(); + LOG_DEV_CALLS(("~netlist_mame_device_t\n")); } void netlist_mame_device_t::static_set_constructor(device_t &device, void (*setup_func)(netlist::setup_t &)) @@ -795,9 +795,15 @@ void netlist_mame_device_t::static_set_constructor(device_t &device, void (*setu void netlist_mame_device_t::device_config_complete() { - LOG_DEV_CALLS(("device_config_complete\n")); + LOG_DEV_CALLS(("device_config_complete %s %s\n", this->mconfig().gamedrv().name, this->tag())); +} + +void netlist_mame_device_t::device_validity_check(validity_checker &valid) const +{ + LOG_DEV_CALLS(("device_validity_check %s\n", this->mconfig().gamedrv().name)); } + void netlist_mame_device_t::device_start() { LOG_DEV_CALLS(("device_start entry %s\n", tag())); @@ -970,8 +976,6 @@ void netlist_mame_cpu_device_t::device_start() { netlist_mame_device_t::device_start(); - LOG_DEV_CALLS(("cpu device_start %s\n", tag())); - // State support state_add(STATE_GENPC, "GENPC", m_genPC).noshow(); |