summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_parser.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-03-05 17:11:04 +0100
committer couriersud <couriersud@arcor.de>2016-03-14 20:24:29 +0100
commit41c8a9f6fa49b10c021196463adc654ecce25790 (patch)
tree2e59db2aa4d0730711e7e0a9541905b2f6380479 /src/lib/netlist/nl_parser.cpp
parent0e48eb2a4392df8dd020f42432d90f614d73c6b3 (diff)
netlist updates:
- First steps to move towards c++11. - Base plist on std::vector - Replace pstack with std::stack - Remove pnamed_list - use c++ "for each" in a number of places - Fixed two "time bombs" [couriersud]
Diffstat (limited to 'src/lib/netlist/nl_parser.cpp')
-rw-r--r--src/lib/netlist/nl_parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp
index 638bbae219a..2f4be0f9a57 100644
--- a/src/lib/netlist/nl_parser.cpp
+++ b/src/lib/netlist/nl_parser.cpp
@@ -168,13 +168,13 @@ void parser_t::net_truthtable_start()
if (token.is(m_tok_TT_HEAD))
{
require_token(m_tok_param_left);
- ttd->m_desc.add(get_string());
+ ttd->m_desc.push_back(get_string());
require_token(m_tok_param_right);
}
else if (token.is(m_tok_TT_LINE))
{
require_token(m_tok_param_left);
- ttd->m_desc.add(get_string());
+ ttd->m_desc.push_back(get_string());
require_token(m_tok_param_right);
}
else if (token.is(m_tok_TT_FAMILY))
@@ -296,13 +296,13 @@ void parser_t::dippins()
{
pstring_list_t pins;
- pins.add(get_identifier());
+ pins.push_back(get_identifier());
require_token(m_tok_comma);
while (true)
{
pstring t1 = get_identifier();
- pins.add(t1);
+ pins.push_back(t1);
token_t n = get_token();
if (n.is(m_tok_param_right))
break;