Commit Graph

  • 6560b7819d Add make profile, optimized for callgrind Rangi42 2024-03-21 11:42:12 -04:00
  • 0af1e512c2 Use std::get_if instead of std::visit (#1367) Sylvie 2024-03-20 22:37:54 -04:00
  • 035678d250 Remove workaround for GitHub Actions issue (#1368) Sylvie 2024-03-20 20:46:08 -04:00
  • 554778da5b Built-in symbols are "<builtin>", not "<command-line>" (#1362) Sylvie 2024-03-19 16:01:45 -04:00
  • fec2266dd8 Use std::string for string-formatted values (#1360) Sylvie 2024-03-19 02:43:18 -04:00
  • 33dd97b6a0 Fix CI builds for Ubuntu 22.04 (#1361) Sylvie 2024-03-19 01:05:10 -04:00
  • a862c7b17b Use sed instead of awk to extract Bison version Rangi42 2024-03-18 15:36:45 -04:00
  • 40db9d5cef Use std::string for lexer state paths Rangi42 2024-03-18 14:05:11 -04:00
  • 05d79d87f6 Pass std::string references to RPN functions Rangi42 2024-03-18 13:45:59 -04:00
  • e96675be03 Pass std::string references to fstack functions Rangi42 2024-03-18 13:41:07 -04:00
  • 472d1bde06 Pass std::string references to symbol functions Rangi42 2024-03-18 13:29:09 -04:00
  • 6cabb8c9af Pass std::string references to output functions Rangi42 2024-03-18 11:45:51 -04:00
  • 7b11c528ef Pass std::string references to section functions Rangi42 2024-03-18 11:35:55 -04:00
  • 91164ac1b0 Pass std::string references to charmap functions Rangi42 2024-03-18 11:24:25 -04:00
  • 04899a21cd Pass std::string references to parser semantic functions instead of .c_str() pointers Rangi42 2024-03-17 13:50:34 -04:00
  • 8f77518406 Use std::string for most intermediate parsed strings Rangi42 2024-03-09 20:27:44 -05:00
  • b76e196c89 Run clang-format on everything Rangi42 2024-03-18 14:08:57 -04:00
  • d06376c170 Use std::unordered_map and std::vector for sections Rangi42 2024-03-16 11:51:47 -04:00
  • cefc4f4aa3 Use std::unordered_map for symbols Rangi42 2024-03-16 11:19:19 -04:00
  • a14de10e28 Use std::unordered_map for charmaps Rangi42 2024-03-16 11:13:14 -04:00
  • e4a3509845 Fix build failure with GCC 13 ISSOtm 2024-03-15 21:39:50 +01:00
  • eb99fc8681 Use a std::unordered_map for looking up sections by name (#1357) Sylvie 2024-03-13 19:45:52 -04:00
  • 8ec0d01fc4 Sort .sym files in ascending order, and test for it (#1355) Sylvie 2024-03-13 18:32:35 -04:00
  • 658286c8e4 Move a SECTION FRAGMENT test to the test/link/section-fragment folder (#1354) Sylvie 2024-03-13 15:34:27 -04:00
  • a1bbb3b3f7 Strip CI binaries built with make (#1345) Sylvie 2024-03-13 14:42:11 -04:00
  • 67c707739d Allow multiple identical exported numeric constants (#1341) Sylvie 2024-03-13 14:06:20 -04:00
  • 68f6ab5c32 Add test cases for SECTION UNION defining multiple identical labels (#1349) Sylvie 2024-03-13 13:34:44 -04:00
  • 188fcfdd64 Add license header to test/CMakeLists.tst like the rest Rangi42 2024-03-13 11:55:17 -04:00
  • 4f15f07dd4 Refactor link/test.sh to avoid repeating test names (#1353) Sylvie 2024-03-13 11:43:50 -04:00
  • 08066d4692 Fix a reference being used after being invalidated (#1352) Eldred Habert 2024-03-13 03:19:01 +01:00
  • 42d32c72a6 Use a unique name to upload W32/W64 binaries in CI ISSOtm 2024-03-13 01:07:28 +01:00
  • 81ed5fe41e Update Actions to Node 20 ISSOtm 2024-03-13 00:15:43 +01:00
  • b9596890c9 Disable a Clang warning ISSOtm 2024-03-13 00:04:11 +01:00
  • 846a9411b9 Refactor FileStackNode::dump to not need a helper function Rangi42 2024-03-10 13:21:28 -04:00
  • 58fdaa8747 Avoid a couple of clang-format quirks Rangi42 2024-03-10 12:31:03 -04:00
  • 820f6b5b3c Consistently format type qualifiers like const on the right (#1347) Sylvie 2024-03-10 12:21:52 -04:00
  • d982d47c56 Use move semantics for more parsed values Rangi42 2024-03-09 19:54:38 -05:00
  • 569b940b82 No need to manually do the Expression destructor's job Rangi42 2024-03-09 19:33:53 -05:00
  • ba104baf3e Refactor mapFile for Windows Rangi42 2024-03-09 19:22:06 -05:00
  • cce7f51235 Remove RPN symbol name length limit Rangi42 2024-03-09 17:56:30 -05:00
  • 17444e825a Reduce the header declarations (#1342) Sylvie 2024-03-09 14:55:39 -05:00
  • 3323cb56fe Make enum patterns more explicit (#1343) Sylvie 2024-03-09 14:55:17 -05:00
  • 5681be1fd8 Use automatic allocation and std::move for RPN bytes (#1336) Sylvie 2024-03-09 11:12:34 -05:00
  • 4a7d333891 Use std::unique_ptr for rgblink sections (#1337) Sylvie 2024-03-09 11:12:01 -05:00
  • 9890cf25b4 Fix -O being always ignored (#1339) SnDream 2024-03-09 21:11:56 +08:00
  • 9f5bf5e285 Remove an unnecessary .close() call that the destructor handles Rangi42 2024-03-08 22:29:37 -05:00
  • 0bfade4435 Fix enum: REG_SP == REG_AF == 3 Rangi42 2024-03-08 20:00:29 -05:00
  • 40704b5055 Remove unused yyerror declaration Rangi42 2024-03-08 19:47:57 -05:00
  • 53537cf9af Remove now-unnecessary enum keyword (#1338) Sylvie 2024-03-08 19:40:41 -05:00
  • 1b97297d63 Fix a typo bug in sdas_obj.cpp Rangi42 2024-03-08 18:30:30 -05:00
  • 75cc12bb3d Use std::optional for fstack paths Rangi42 2024-03-07 21:41:02 -05:00
  • 563d699394 Avoid an extra operation if !labelScope (thanks, ISSOtm) Rangi42 2024-03-07 17:33:27 -05:00
  • e701faa1bc Print summaries at the end of test.sh scripts Rangi42 2024-03-07 16:45:53 -05:00
  • aed172071b Replace some macros with static functions or constants Rangi42 2024-03-07 16:03:27 -05:00
  • 90356ee669 Remove unused #define Rangi42 2024-03-07 15:07:16 -05:00
  • 0a4a01c5e5 Ignore callgrind output files Rangi42 2024-03-07 14:56:32 -05:00
  • 0f52cd0bab Use std::reverse for binary digits Rangi42 2024-03-07 14:48:23 -05:00
  • 2fd95381a6 Get rid of some fixed-size char buffers Rangi42 2024-03-07 13:39:51 -05:00
  • 184957c0ed Use fwrite and fputs instead of multiple putc Rangi42 2024-03-07 12:24:03 -05:00
  • 7663a777d5 Remove 255-character limit on symbol names Rangi42 2024-03-07 11:51:12 -05:00
  • 097b7c3baf Use std::string for symbol names Rangi42 2024-03-07 11:37:32 -05:00
  • bf45ebb178 Run clang-format to fix some inconsistent style Rangi42 2024-03-07 10:22:40 -05:00
  • 84bedc7bbe Use automatic allocation for RPN reasons Rangi42 2024-03-07 09:58:45 -05:00
  • e5b7e65e91 Use std::nothrow from <new> with every new allocation Rangi42 2024-03-07 09:56:15 -05:00
  • 104fd6c70d Use automatic allocation for some parser values Rangi42 2024-03-06 22:12:43 -05:00
  • 0ea174f0dd Stop explicitly passing zlib/libpng path to CMake in Windows CI ISSOtm 2024-03-07 01:35:41 +01:00
  • 35ec190664 Update Windows libpng to 1.6.43 Rangi42 2024-03-06 18:30:54 -05:00
  • 292adb27a3 Adapt the RGBASM parser to C++ (#1333) Sylvie 2024-03-06 20:40:36 -05:00
  • 8c173b4e95 Remove declaration for compatibility with macOS bison 2.3 Rangi42 2024-03-06 17:58:15 -05:00
  • 94b724ae5f Update to use winflexbison 2.5.25 (bison 3.8.2) Rangi42 2024-03-06 17:56:16 -05:00
  • 6d4a61f51d Fix some numeric bases in RGBLINK output Rangi42 2024-03-06 17:43:26 -05:00
  • 75105016f7 Make sure that parsed subexpressions are fully defined Rangi42 2024-03-06 15:53:01 -05:00
  • f419f206e5 Fix a latent bug with parsing macro args Rangi42 2024-03-06 15:14:17 -05:00
  • 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