diff options
author | 2022-05-08 17:53:07 +0200 | |
---|---|---|
committer | 2022-05-08 17:53:07 +0200 | |
commit | 5aaae19230bd39dda6766641672f57276a3f9ea1 (patch) | |
tree | 282cfec1d6f12d3af722b69be9739c1c8b49f00d /src/lib/netlist/plib/ptokenizer.cpp | |
parent | c4b417c98d17f15b3805ec2f530d92ce809dc5c7 (diff) |
netlist: standalone makefile and prototype modifications (#9708)
- update netlist makefile to more recent compilers
- prototypes for NETLISTs in macros are now created create_devinc.py
- apply ctidy recommendations
- Python None in create_device.py
Diffstat (limited to 'src/lib/netlist/plib/ptokenizer.cpp')
-rw-r--r-- | src/lib/netlist/plib/ptokenizer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/ptokenizer.cpp b/src/lib/netlist/plib/ptokenizer.cpp index 80db2d0663a..b7031cbed4e 100644 --- a/src/lib/netlist/plib/ptokenizer.cpp +++ b/src/lib/netlist/plib/ptokenizer.cpp @@ -234,7 +234,7 @@ namespace plib { if (eof()) return token_t(token_type::ENDOFFILE); if (c == '\r' || c == '\n') - return token_t(token_type::LINEMARKER, lm); + return { token_type::LINEMARKER, lm }; lm += c; } while (true); } @@ -253,7 +253,7 @@ namespace plib { c = getc(); } ungetc(c); - return token_t(ret, tokstr); + return { ret, tokstr }; } // not a number, try identifier @@ -282,7 +282,7 @@ namespace plib { tokstr += c; c = getc(); } - return token_t(token_type::STRING, tokstr); + return { token_type::STRING, tokstr }; } else { @@ -296,7 +296,7 @@ namespace plib { { auto id = m_tokens.find(tokstr); if (id != m_tokens.end()) - return token_t(id->second, tokstr); + return { id->second, tokstr }; } c = getc(); } |