Commit Graph

  • 82824a4bf2 Avoid using Bison's typed mid-rule actions Rangi42 2024-03-06 14:19:37 -05:00
  • d1652c0028 Refactor cases for simplicity, and remove redundant comments Rangi42 2024-03-06 14:10:50 -05:00
  • 053aa80951 Improve some const correctness in RGBASM Rangi42 2024-03-06 13:53:03 -05:00
  • 585c620945 Rename fail to sectError, since it increments nbSectErrors Rangi42 2024-03-05 14:36:18 -05:00
  • bd88787cb3 Use FileStackNode constructor to avoid std::monostate possibility Rangi42 2024-03-05 14:19:23 -05:00
  • 74539f08ba Add some more trailing commas Rangi42 2024-03-04 22:53:11 -05:00
  • e74073e480 Run clang-format on everything (#1332) Sylvie 2024-03-04 14:22:49 -05:00
  • b004648a13 Use std::variant for symbol values (#1331) Sylvie 2024-03-04 08:55:33 -05:00
  • f2c875e71e Avoid using std::get except in holds_alternative-asserting accessors Rangi42 2024-03-03 23:33:23 -05:00
  • 13904dc536 Remove EQUS callbacks for symbols Rangi42 2024-03-03 21:26:44 -05:00
  • ba183e900b Update contributors Rangi42 2024-03-03 21:17:52 -05:00
  • 447c561aaa Use std::variant for symbol values (#1330) Sylvie 2024-03-03 21:16:36 -05:00
  • f8dab23e8f Use uncommented sizes for pointer-to-array arguments (#1329) Sylvie 2024-03-03 19:43:08 -05:00
  • 0da216897a Improve tests a little (#1324) Eldred Habert 2024-03-04 01:12:29 +01:00
  • 8cf446b14c Use std::variant for lexer mmap/buffer state (#1328) Sylvie 2024-03-03 18:45:50 -05:00
  • 6b67c82b94 Implement -c #none (#1301) Evie 2024-03-03 18:45:33 -05:00
  • 930a5c3e44 Replace RGBLINK non-null pointers with references Rangi42 2024-03-03 00:39:20 -05:00
  • 538b253dfb Replace RGBFIX non-null pointers with references Rangi42 2024-03-02 22:25:55 -05:00
  • 277ea9be28 Replace RGBASM non-null pointers with references Rangi42 2024-03-02 21:44:39 -05:00
  • d812acff24 Check RGBGFX warning/error format strings with format_ macro Rangi42 2024-03-02 23:08:20 -05:00
  • 2e1b0b6421 Remove commented-out C-only macro features Rangi42 2024-03-02 20:17:22 -05:00
  • 52f8ecc347 We do not call malloc/free any more Rangi42 2024-03-02 08:16:30 -05:00
  • 19bb12754b Use new allocation for expanding \# Rangi42 2024-03-02 08:04:59 -05:00
  • dbcb82799e Use std::vector for capture buffer Rangi42 2024-03-02 06:46:11 -05:00
  • a71e4086a2 Use std::string_view for macro bodies (#1326) Sylvie 2024-03-02 13:21:28 -05:00
  • 2069a95e0f Use std::string for macro args Rangi42 2024-03-02 05:23:15 -05:00
  • b130c2e27c Use std::string for STRFMT spec and args Rangi42 2024-03-02 05:09:43 -05:00
  • ba00cf5684 Use std::string for section names Rangi42 2024-03-02 04:47:02 -05:00
  • b488d3a90f Use std::optional<std::string> for lexer expansion names Rangi42 2024-03-02 04:34:42 -05:00
  • 701b926288 Use RAII std::string and std::vector in randtilegen (#1325) Sylvie 2024-03-02 11:02:26 -05:00
  • 446fb07fd5 Use std::deque<std::vector> for free space (#1323) Sylvie 2024-03-01 16:21:29 -05:00
  • 1ac3c0262f Refactor structs to use methods instead of functions (#1322) Sylvie 2024-03-01 13:11:45 -05:00
  • e14ba664ea Remove redundant (void) parameter declarations Rangi42 2024-03-01 10:35:50 -05:00
  • 91d22f180e Reorganize the asm parser to be more like the linker script parser Rangi42 2024-02-29 16:17:55 -05:00
  • 043db49676 Replace NULL with nullptr (#1321) Sylvie 2024-02-29 15:06:33 -05:00
  • eff8c324c8 Remove now-unnecessary struct keyword (#1320) Sylvie 2024-02-29 14:41:58 -05:00
  • 1210a7441f Use std::visit with Visitor helper instead of std::holds_alternatve Rangi42 2024-02-29 13:32:50 -05:00
  • cf08fed067 Use std::vector for SDCC object section data Rangi42 2024-02-28 22:57:18 -05:00
  • c44b336e1b Use std::vector for SDCC object line buffer Rangi42 2024-02-28 22:50:14 -05:00
  • e90084ad06 Rename isWRA0Mode to isWRAM0Mode Rangi42 2024-02-28 21:57:56 -05:00
  • cdb9315366 Use std::vector for rgbfix ROMX data Rangi42 2024-02-21 17:57:17 -05:00
  • 2ff723f943 Use vec.data() instead of &vec[0] Rangi42 2024-02-28 21:05:06 -05:00
  • d1fa5ccd4d Rename lexer_DeleteState to lexer_CleanupState Rangi42 2024-02-28 21:01:49 -05:00
  • 17df94c75b Remove now-unnecessary cleanup functions Rangi42 2024-02-28 20:59:00 -05:00
  • 96f354026a Use automatic allocation for section data Rangi42 2024-02-28 20:54:33 -05:00
  • 8fe6be19f1 Use automatic allocation for tryReadstring Rangi42 2024-02-28 20:32:40 -05:00
  • 002eed405b Use automatic allocation for assertion error messages Rangi42 2024-02-28 20:09:49 -05:00
  • ef1c1440a0 Use automatic allocation for symbol names Rangi42 2024-02-28 19:56:29 -05:00
  • 826512730c Use automatic allocation for section symbols Rangi42 2024-02-28 19:11:06 -05:00
  • 5a26a48d11 Use automatic allocation for section names Rangi42 2024-02-28 19:02:00 -05:00
  • 3c0af94c5c Use automatic allocation for patches Rangi42 2024-02-28 18:49:33 -05:00
  • fc5ab8a14c Clarify comment explaining how referenced works Rangi42 2024-02-28 15:10:47 -05:00
  • ace45bfd90 Refactor to avoid repeating rpn_isKnown(expr) Rangi42 2024-02-28 14:33:03 -05:00
  • d6681d3580 struct Section's src can be const Rangi42 2024-02-28 14:32:15 -05:00
  • 0cc49782ab Use std::variant and automatic allocation for file stack node data Rangi42 2024-02-28 13:49:12 -05:00
  • e1ac51d7da Use std::vector's .size() for SDCC sections and symbols Rangi42 2024-02-28 12:26:27 -05:00
  • c3eb532439 Use copy constructor for file stack node Rangi42 2024-02-28 12:25:38 -05:00
  • 18d4a81954 Use move semantics for the union stacks Rangi42 2024-02-28 11:18:16 -05:00
  • 7daa8759c9 Use std::variant for STRFMT arguments Rangi42 2024-02-27 23:20:06 -05:00
  • beb1997378 Use std::unordered_map for the keyword dict Rangi42 2024-02-27 21:58:36 -05:00
  • 962398969b Use std::string for PURGE args Rangi42 2024-02-27 19:55:37 -05:00
  • 0bed84174b Use std::string for FOR loop variables Rangi42 2024-02-27 19:21:30 -05:00
  • 48b2e94aa3 Use std::string for symbol/section/node names and assertion messages Rangi42 2024-02-27 18:59:38 -05:00
  • a24df27cd8 Use std::vector for charmap output Rangi42 2024-02-26 13:07:51 -05:00
  • 52ac98c294 Use std::vector for section data Rangi42 2024-02-27 14:54:00 -05:00
  • 4cd88ade54 Use automatic allocation for object file symbols Rangi42 2024-02-27 12:15:41 -05:00
  • dead69eb2c Use std::vector for section symbols Rangi42 2024-02-27 12:00:34 -05:00
  • f47ce337bf Use std::vector for reading object file symbols Rangi42 2024-02-27 11:28:12 -05:00
  • 9a51fbafb3 Use std::vector for file stack nodes Rangi42 2024-02-27 10:54:03 -05:00
  • 3d23f5bbb3 Use std::vector for reading object file sections Rangi42 2024-02-27 10:12:07 -05:00
  • af055ecd27 Use automatic allocation for IF stacks and expansions Rangi42 2024-02-26 14:09:07 -05:00
  • 31836967fa Use automatic allocation for lexer states Rangi42 2024-02-26 13:53:52 -05:00
  • 514044496f Use std::string for RPN error reasons Rangi42 2024-02-25 10:43:49 -05:00
  • cf42d035f2 Use std::variant for file stack nodes Rangi42 2024-02-25 09:25:02 -05:00
  • 4b2294292a Use std::string for target file name Rangi42 2024-02-25 07:53:04 -05:00
  • 0e19f6c0ae Use automatic allocation for fstack nodes' iters/names Rangi42 2024-02-24 21:58:34 -05:00
  • 5075ac8887 Use std::vector for RPN expressions Rangi42 2024-02-24 12:12:19 -05:00
  • d792ee4b61 Use std::vector for section patches Rangi42 2024-02-24 11:42:42 -05:00
  • b207bff157 Use std::vector for fstack REPT nodes Rangi42 2024-02-24 10:59:22 -05:00
  • 53343d2fa6 Use automatic allocation for symbols Rangi42 2024-02-23 23:25:45 -05:00
  • e98d1efee3 Use std::vector for include paths Rangi42 2024-02-23 22:16:23 -05:00
  • e4764e37b1 Use std::stack for fstack contexts Rangi42 2024-02-23 21:53:49 -05:00
  • b8e267e387 Use std::vector for SDAS file sections Rangi42 2024-02-23 17:10:06 -05:00
  • 17861a970f Use std::vector for RPN data Rangi42 2024-02-22 22:30:44 -05:00
  • a5ea25cde5 Use automatic allocation for RPN stack Rangi42 2024-02-22 21:36:38 -05:00
  • 843f3394c8 Use automatic allocation for DS args Rangi42 2024-02-22 21:21:05 -05:00
  • b1aa98b43d Use automatic allocation for PURGE args Rangi42 2024-02-22 20:59:55 -05:00
  • 6a23c5fd48 Use automatic allocation for STRFMT args Rangi42 2024-02-22 20:39:37 -05:00
  • 6b2c6c20bc Use automatic allocation for macro args Rangi42 2024-02-22 20:22:03 -05:00
  • a4ed7e1d18 Use automatic allocation for charmaps Rangi42 2024-02-22 19:50:28 -05:00
  • 1b8e588961 Use automatic allocation for patch RPN Rangi42 2024-02-22 15:56:45 -05:00
  • dec1811d20 Use automatic allocation for section data Rangi42 2024-02-22 15:45:09 -05:00
  • 72e9f55368 Use automatic allocation for patches Rangi42 2024-02-22 15:34:49 -05:00
  • 9140180c85 Use automatic allocation for sections Rangi42 2024-02-22 15:04:52 -05:00
  • e022adf4a0 Use automatic allocation for assertions Rangi42 2024-02-22 14:26:12 -05:00
  • 6e03504802 Use std::deque for expansions Rangi42 2024-02-22 13:54:49 -05:00
  • 003977a9fb Use std::deque for unassigned sections Rangi42 2024-02-21 17:16:45 -05:00
  • 1afc8554c0 Use std::deque for file stack nodes Rangi42 2024-02-21 16:26:25 -05:00
  • 26a93a530b Use std::deque for assertions Rangi42 2024-02-21 15:57:44 -05:00
  • 2df4fff6c9 Use std::vector for sorted symbols Rangi42 2024-02-21 15:26:32 -05:00