summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_parser.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-07-21 11:05:55 +0200
committer couriersud <couriersud@arcor.de>2016-07-21 11:05:55 +0200
commit1e40d95e8b47d834d1ede706921dc19850aaaff2 (patch)
treef2e74d4451a527313fdc52f49b10955153f1dbd5 /src/lib/netlist/nl_parser.cpp
parent7a69d48edd6e1f59c92271eb7fa217eaf0a714c7 (diff)
Netlist updates:
- Removed trampolines (OUTLOGIC, INPLOGIC and friends). - Started using doxygen comment and documentation style. Added doxygen files to documentation folder. - Refactored code triggered by doxygen output. - Moved internal and support classes into namespace detail. - Use an anordered map in parser. - -Wconversion fixes - All done now. - Fixed -Wold-style-cast warnings in netlist code. - Added iterators to pstring. - Moved two macros, added more RAII and improved exceptions. Fixed some bugs in parser code. - Fixed a number of bugs in parser code and exception handling. [Couriersud]
Diffstat (limited to 'src/lib/netlist/nl_parser.cpp')
-rw-r--r--src/lib/netlist/nl_parser.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp
index c0b0b56bdf1..6760873a4af 100644
--- a/src/lib/netlist/nl_parser.cpp
+++ b/src/lib/netlist/nl_parser.cpp
@@ -152,9 +152,9 @@ void parser_t::net_truthtable_start()
{
pstring name = get_identifier();
require_token(m_tok_comma);
- unsigned ni = get_number_long();
+ long ni = get_number_long();
require_token(m_tok_comma);
- unsigned no = get_number_long();
+ long no = get_number_long();
require_token(m_tok_comma);
pstring def_param = get_string();
require_token(m_tok_param_right);
@@ -162,8 +162,8 @@ void parser_t::net_truthtable_start()
netlist::tt_desc desc;
desc.classname = name;
desc.name = name;
- desc.ni = ni;
- desc.no = no;
+ desc.ni = static_cast<unsigned long>(ni);
+ desc.no = static_cast<unsigned long>(no);
desc.def_param = "+" + def_param;
desc.family = "";
@@ -317,8 +317,8 @@ void parser_t::dippins()
}
if ((pins.size() % 2) == 1)
error("You must pass an equal number of pins to DIPPINS");
- unsigned n = pins.size();
- for (unsigned i = 0; i < n / 2; i++)
+ std::size_t n = pins.size();
+ for (std::size_t i = 0; i < n / 2; i++)
{
m_setup.register_alias(plib::pfmt("{1}")(i+1), pins[i*2]);
m_setup.register_alias(plib::pfmt("{1}")(n-i), pins[i*2 + 1]);
'commitgraph'>* ay8910: finished MCFG macros removal (nw) Ivan Vangelista2018-11-141-6/+6 * tms9928a: Configuration modernization (nw) AJR2018-08-211-5/+5 * more private: use (K,L,M) (#3714) David Haywood2018-06-301-2/+4 * as if millions of this pointers suddenly cried out in terror, and were sudden... Vas Crabb2018-06-081-2/+2 * Removed DRIVER_INIT-related macros, made driver init entry in GAME/COMP/CONS ... MooglyGuy2018-05-131-2/+2 * dsp16: fix condition mask in disassembler (nw) Vas Crabb2018-05-091-1/+1 * Streamline machine configuration macros - everyone's a device edition. Vas Crabb2018-05-061-8/+8 * Address maps macros removal, pass 1 [O. Galibert] Olivier Galibert2018-03-141-15/+17 * API change: Memory maps are now methods of the owner class [O. Galibert] Olivier Galibert2018-02-121-2/+4 * xtal.h is dead, long live to xtal.cpp [O. Galibert] Olivier Galibert2018-01-231-3/+3 * API Change: Machine configs are now a method of the owner class, and the prot... Olivier Galibert2018-01-171-1/+2 * Move static data out of devices into the device types. This is a significant... Vas Crabb2017-05-141-3/+3 * Self-registering devices prep: Vas Crabb2017-02-271-1/+6 * NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-3/+3 * Turn image init/validate into scoped enums to avoid accidental casts to/from ... Vas Crabb2016-08-011-2/+2 * more trampolines removal (nw) Ivan Vangelista2016-06-201-7/+1 * reverting: Miodrag Milanovic2016-01-201-1/+1 * tags are now strings (nw) Miodrag Milanovic2016-01-161-1/+1 * overrides in drivers (nw) Miodrag Milanovic2015-12-061-2/+2