From 1f3f5e0d574e256bc106ee4bc9ee701858585ca3 Mon Sep 17 00:00:00 2001 From: couriersud Date: Fri, 10 Jun 2022 16:11:21 +0200 Subject: netlist: fix bugs and more cpp instead of macros (#9897) * netlist: fix bugs and more cpp instead of macros - C-style comments converted to c++ - Fix crash in state saving code when an abort queue processing event is pending. - Fix a bug where a net could be twice in the queue. - Convert more macros to c++ - fixed SUBTARGET=nl build - fixed potential bugs which would allow a terminal to belong to more than one net. This is not possible even for a short time. - moved some member function definitions out-of-class. - moved code out-of-class - added constexpr where appropriate - fixed mamenl build - Cleanup and indentation --- src/lib/netlist/plib/ptokenizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/netlist/plib/ptokenizer.cpp') diff --git a/src/lib/netlist/plib/ptokenizer.cpp b/src/lib/netlist/plib/ptokenizer.cpp index 67fd506dc39..98be18b6419 100644 --- a/src/lib/netlist/plib/ptokenizer.cpp +++ b/src/lib/netlist/plib/ptokenizer.cpp @@ -83,11 +83,11 @@ namespace plib { m_token_queue = nullptr; } - void token_reader_t::require_token(const token_id_t &token_num) { require_token(get_token(), token_num); } + void token_reader_t::require_token(const token_t &tok, const token_id_t &token_num) { if (!tok.is(token_num)) -- cgit v1.2.3-70-g09d2