diff options
author | 2016-06-07 15:15:37 -0400 | |
---|---|---|
committer | 2016-06-07 21:40:30 +0200 | |
commit | b27790890530b658e178846e7da01045185f0fce (patch) | |
tree | 95c027c901b343de6600a65d8d8f1beda51cbcdf /src/lib/netlist/plib/pstate.cpp | |
parent | 9137ace16ae5bed3f7164409a8622f61a9db2b80 (diff) |
- Minor cosmetic refactoring. Added a "uninitialised array" template to
allow in-place creation (for increased locality) of netlist classes.
Main use is in truthtable class.
- Remove PLIB_NAMESPACE macros.
- Remove namespace macros. Use explicit namespace declarations.
- Moved device definitions into cpp files.
- Moved more device definitions into cpp files.
- New prefix "nlid" for include files flags purely internal include
files not to be leaked into userland.
- Fix factory code.
Diffstat (limited to 'src/lib/netlist/plib/pstate.cpp')
-rw-r--r-- | src/lib/netlist/plib/pstate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/pstate.cpp b/src/lib/netlist/plib/pstate.cpp index f0763d5eab4..bd16ee172e2 100644 --- a/src/lib/netlist/plib/pstate.cpp +++ b/src/lib/netlist/plib/pstate.cpp @@ -7,7 +7,7 @@ #include "pstate.h" -PLIB_NAMESPACE_START() +namespace plib { pstate_manager_t::pstate_manager_t() { @@ -38,7 +38,7 @@ ATTR_COLD void pstate_manager_t::save_state_ptr(const pstring &stname, const pst "DT_FLOAT" }; - auto p = pmake_unique<pstate_entry_t>(stname, dt, owner, size, count, ptr, is_ptr); + auto p = plib::make_unique<pstate_entry_t>(stname, dt, owner, size, count, ptr, is_ptr); m_save.push_back(std::move(p)); } @@ -72,9 +72,9 @@ template<> ATTR_COLD void pstate_manager_t::save_item(pstate_callback_t &state, { //save_state_ptr(stname, DT_CUSTOM, 0, 1, &state); pstate_callback_t *state_p = &state; - auto p = pmake_unique<pstate_entry_t>(stname, owner, state_p); + auto p = plib::make_unique<pstate_entry_t>(stname, owner, state_p); m_save.push_back(std::move(p)); state.register_state(*this, stname); } -PLIB_NAMESPACE_END() +} |