diff options
author | 2020-01-27 21:47:41 +0100 | |
---|---|---|
committer | 2020-01-27 21:47:41 +0100 | |
commit | f7d8a10da53e07747ab4f11d5c7b4827869e5763 (patch) | |
tree | 1ae8c2b3a06a6abd253814bd159cb151dd6cc20a /src/lib/netlist/plib/ptokenizer.cpp | |
parent | 8c2bb6236774977e848c62fad35eb665a6d8e58b (diff) |
netlist: Code maintenance. (nw)
- Fixed some clang lint warnings
- Removed dead code
- Experimental parser code to allow calculations in parameter value.
This already works for compiled netlists. These changes are
currently disabled. Updated pong netlist (and CRC/SHA) to work
with this new code.
Diffstat (limited to 'src/lib/netlist/plib/ptokenizer.cpp')
-rw-r--r-- | src/lib/netlist/plib/ptokenizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/ptokenizer.cpp b/src/lib/netlist/plib/ptokenizer.cpp index a29b3342333..7ccb0ff8ca2 100644 --- a/src/lib/netlist/plib/ptokenizer.cpp +++ b/src/lib/netlist/plib/ptokenizer.cpp @@ -292,7 +292,7 @@ namespace plib { pstring e = plib::pfmt("{1}:{2}:0: error: {3}\n") (m_source_location.back().file_name(), m_source_location.back().line(), errs()); m_source_location.pop_back(); - while (m_source_location.size() > 0) + while (!m_source_location.empty()) { if (m_source_location.size() == 1) trail = trail_first; |