diff options
author | 2019-11-08 23:52:14 +0100 | |
---|---|---|
committer | 2019-11-08 23:52:14 +0100 | |
commit | 88f702b416ba9eb930e6c1e932124d5f24b1a24c (patch) | |
tree | 955f3047b79156d7b2bbab55fcbd4fbc94661f1d /src/lib/netlist/plib/ppreprocessor.cpp | |
parent | 731c4fe52073a7a7561bf04559e9f0b3b791388d (diff) |
netlist: code maintenance and bug fixes. (nw)
- comment style migration continues.
- Fixed a two bugs in the truthtable ignore inputs code
- refactored the truthtable code a bit for better readability.
- updated netlist specific gitignore.
Diffstat (limited to 'src/lib/netlist/plib/ppreprocessor.cpp')
-rw-r--r-- | src/lib/netlist/plib/ppreprocessor.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/lib/netlist/plib/ppreprocessor.cpp b/src/lib/netlist/plib/ppreprocessor.cpp index 80564064bb2..377c37d9fca 100644 --- a/src/lib/netlist/plib/ppreprocessor.cpp +++ b/src/lib/netlist/plib/ppreprocessor.cpp @@ -1,9 +1,5 @@ // license:GPL-2.0+ // copyright-holders:Couriersud -/* - * ppreprocessor.cpp - * - */ #include "ppreprocessor.h" #include "palloc.h" @@ -77,19 +73,18 @@ namespace plib { : m_tokens(tokens), m_parent(parent), m_pos(0) {} - /**! skip white space in token list - * - */ + /// \brief skip white space in token list + /// void skip_ws() { while (m_pos < m_tokens.size() && (m_tokens[m_pos] == " " || m_tokens[m_pos] == "\t")) m_pos++; } - /**! return next token skipping white space - * - * @return next token - */ + /// \brief return next token skipping white space + /// + /// \return next token + /// pstring next() { skip_ws(); @@ -98,10 +93,10 @@ namespace plib { return m_tokens[m_pos++]; } - /**! return next token including white space - * - * @return next token - */ + /// \brief return next token including white space + /// + /// \return next token + /// pstring next_ws() { if (m_pos >= m_tokens.size()) @@ -497,7 +492,7 @@ namespace plib { if (startsWith(arg, "\"") && endsWith(arg, "\"")) { arg = arg.substr(1, arg.length() - 2); - /* first try local context */ + // first try local context auto l(plib::util::buildpath({m_stack.back().m_local_path, arg})); auto lstrm(m_sources.get_stream<>(l)); if (lstrm) |