Sylvie
|
eff8c324c8
|
Remove now-unnecessary struct keyword (#1320)
C++ acts like structs are `typedef`ed by default
We do have to keep `struct stat`, since there's ambiguity
with the function also called `stat`.
|
2024-02-29 14:41:58 -05:00 |
|
Rangi42
|
1210a7441f
|
Use std::visit with Visitor helper instead of std::holds_alternatve
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
cf08fed067
|
Use std::vector for SDCC object section data
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
c44b336e1b
|
Use std::vector for SDCC object line buffer
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
e90084ad06
|
Rename isWRA0Mode to isWRAM0Mode
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
cdb9315366
|
Use std::vector for rgbfix ROMX data
Statically links libstdc++ for 32-bit MinGW
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
2ff723f943
|
Use vec.data() instead of &vec[0]
In general `vec.data()` is always safe, whereas `&vec[0]`
may fail when `vec` is empty.
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
d1fa5ccd4d
|
Rename lexer_DeleteState to lexer_CleanupState
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
17df94c75b
|
Remove now-unnecessary cleanup functions
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
96f354026a
|
Use automatic allocation for section data
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
8fe6be19f1
|
Use automatic allocation for tryReadstring
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
002eed405b
|
Use automatic allocation for assertion error messages
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
ef1c1440a0
|
Use automatic allocation for symbol names
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
826512730c
|
Use automatic allocation for section symbols
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
5a26a48d11
|
Use automatic allocation for section names
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
3c0af94c5c
|
Use automatic allocation for patches
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
fc5ab8a14c
|
Clarify comment explaining how referenced works
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
ace45bfd90
|
Refactor to avoid repeating rpn_isKnown(expr)
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
d6681d3580
|
struct Section's src can be const
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
0cc49782ab
|
Use std::variant and automatic allocation for file stack node data
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
e1ac51d7da
|
Use std::vector's .size() for SDCC sections and symbols
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
c3eb532439
|
Use copy constructor for file stack node
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
18d4a81954
|
Use move semantics for the union stacks
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
7daa8759c9
|
Use std::variant for STRFMT arguments
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
beb1997378
|
Use std::unordered_map for the keyword dict
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
962398969b
|
Use std::string for PURGE args
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
0bed84174b
|
Use std::string for FOR loop variables
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
48b2e94aa3
|
Use std::string for symbol/section/node names and assertion messages
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
a24df27cd8
|
Use std::vector for charmap output
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
52ac98c294
|
Use std::vector for section data
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
4cd88ade54
|
Use automatic allocation for object file symbols
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
dead69eb2c
|
Use std::vector for section symbols
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
f47ce337bf
|
Use std::vector for reading object file symbols
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
9a51fbafb3
|
Use std::vector for file stack nodes
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
3d23f5bbb3
|
Use std::vector for reading object file sections
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
af055ecd27
|
Use automatic allocation for IF stacks and expansions
Switch to using `std::deque` for IF stacks (supports `.clear()`)
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
31836967fa
|
Use automatic allocation for lexer states
Lexer states are now owned by fstack contexts
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
514044496f
|
Use std::string for RPN error reasons
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
cf42d035f2
|
Use std::variant for file stack nodes
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
4b2294292a
|
Use std::string for target file name
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
0e19f6c0ae
|
Use automatic allocation for fstack nodes' iters/names
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
5075ac8887
|
Use std::vector for RPN expressions
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
d792ee4b61
|
Use std::vector for section patches
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
b207bff157
|
Use std::vector for fstack REPT nodes
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
53343d2fa6
|
Use automatic allocation for symbols
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
e98d1efee3
|
Use std::vector for include paths
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
e4764e37b1
|
Use std::stack for fstack contexts
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
b8e267e387
|
Use std::vector for SDAS file sections
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
17861a970f
|
Use std::vector for RPN data
|
2024-02-29 13:44:08 -05:00 |
|
Rangi42
|
a5ea25cde5
|
Use automatic allocation for RPN stack
|
2024-02-29 13:44:08 -05:00 |
|