From 88f702b416ba9eb930e6c1e932124d5f24b1a24c Mon Sep 17 00:00:00 2001 From: couriersud Date: Fri, 8 Nov 2019 23:52:14 +0100 Subject: 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. --- src/lib/netlist/plib/ppreprocessor.cpp | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'src/lib/netlist/plib/ppreprocessor.cpp') 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) -- cgit v1.2.3-70-g09d2