1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-27 04:16:12 +00:00

Commit Graph

  • 2f6b5621cc Changed handling on nested macro replacement to match up with the behavior of other major C compilers, which is unspecified by the C standard. acqn 2022-08-22 14:34:50 +08:00
  • 95e5471cd6 Better preprocess macro expansion. acqn 2022-08-22 14:34:50 +08:00
  • 6fc2cd9f61 add test related to bug #1853 mrdudz 2022-09-17 14:42:18 +02:00
  • fd6d00a4dd revert 6096a24 - this breaks the case when the "label" is an expression containing spaces. fixes bug #1853 mrdudz 2022-09-17 14:41:59 +02:00
  • 5493c9e7c2 Don't empty the Receive Data Register on filling the Transmit Data Register Oliver Schmidt 2022-09-08 17:11:30 +02:00
  • 253af1ed07 Force 16bit address for absolute-indirect-x-indexed in 65816 mode. should fix issue #1846 (and hopefully not break anything :)) mrdudz 2022-09-03 18:36:40 +02:00
  • 1d01777943 Merge pull request #1849 from acqn/StructFix Bob Andrews 2022-09-02 17:27:34 +02:00
  • fe0d383bea Merge pull request #1850 from polluks2/patch-6 Bob Andrews 2022-09-02 12:08:40 +02:00
  • 446a785f95 Don't hide errors in error handling polluks2 2022-09-02 11:55:54 +02:00
  • dc001cb4be Reverted E_ADDRESS_OF logic fix. Added testcase. acqn 2022-09-01 12:56:46 +08:00
  • ce6ee1b891 test some more possible cases and move test into test/val mrdudz 2022-08-28 03:43:54 +02:00
  • d371046ae4 Despite not technically needed, it seems to be desirable to remove all trailing whitespace from inline assembly mrdudz 2022-08-28 03:43:02 +02:00
  • 6096a24f1d dont add whitespace after a label to the actual label, this fixes the root cause of #1252 mrdudz 2022-08-28 03:41:48 +02:00
  • eb21e484ee Merge pull request #1842 from acqn/PPCounter Bob Andrews 2022-08-27 11:18:29 +02:00
  • 43d2fd2a96 Added support for the popular __COUNTER__ macro. acqn 2022-07-24 23:19:05 +08:00
  • 168f42bb83 fix whitespace mrdudz 2022-08-27 02:14:52 +02:00
  • 41b29d5c81 add testcase related to issue #1252 mrdudz 2022-08-27 02:10:02 +02:00
  • 90b9438b48 added testcase related to issue #1768 mrdudz 2022-08-27 01:15:06 +02:00
  • d2628d5949 Merge pull request #1840 from acqn/FnParamFix Bob Andrews 2022-08-26 23:19:55 +02:00
  • 68610490c9 Merge pull request #1837 from acqn/PPLineFix Bob Andrews 2022-08-26 23:12:59 +02:00
  • 13fbd7d1b4 Merge pull request #1836 from acqn/PPDiag Bob Andrews 2022-08-26 23:08:29 +02:00
  • 1dbc5cb325 Simple testcase for __LINE__, __FILE__ as well as #line. acqn 2022-08-24 16:39:44 +08:00
  • 26945c32ac Fixed function parameters declared as function types rather than function pointers. acqn 2022-08-24 15:30:52 +08:00
  • 22ea30c75f "cat" result to console on failure (only on *nix right now) Bob Andrews 2022-08-23 11:56:05 +02:00
  • 57ad7c8766 Improved diagnostics about C++ style comments for c89. acqn 2022-08-22 14:31:53 +08:00
  • fd7f32ecd3 Improved error handling and diagnostics with failed macro definitions. acqn 2022-08-22 14:31:51 +08:00
  • bb9c98f4c9 Added support for the #line directive. acqn 2022-07-24 23:19:05 +08:00
  • 0063f73f8a Fixed __FILE__ and __LINE__ macros for preprocessor. acqn 2022-07-24 23:19:05 +08:00
  • 8605393953 Merge pull request #1834 from acqn/PPFix Bob Andrews 2022-08-21 19:18:46 +02:00
  • 9565f41381 Improved Diagnostic with #include. acqn 2022-08-19 13:27:56 +08:00
  • 5d5bd472c6 Removed extra whitespace at line ends in preprocess-only output (-E). Increased threshold from 5 to 7 for skipped newlines with #line directives in preprocess-only output (-E). acqn 2022-08-22 00:27:21 +08:00
  • 79f97e7714 Reused code more for macros in preprocessing directives. acqn 2022-08-22 00:24:28 +08:00
  • 36123c9c8f Improved naming for stuff related to preprocessing directives. acqn 2022-07-24 23:19:05 +08:00
  • f838ba7341 Merge pull request #1833 from acqn/TokenizerFix Bob Andrews 2022-08-21 17:45:38 +02:00
  • 47ee543fe0 Added testcase for some part of PR #1833. acqn 2022-08-21 00:11:19 +08:00
  • 624e5025b0 Fixed parsing wide char constants. acqn 2022-08-17 22:28:00 +08:00
  • 5cca1e8b1d Fixed parsing numeric constants. acqn 2022-08-11 10:55:16 +08:00
  • 4bb4f033ea Fixed the bug that C keywords were not simply recognized as identifiers in preprocessing. acqn 2022-08-07 16:14:45 +08:00
  • 7a139a800e Added # and ## as punctuators recognized by the tokenizer. Reorganized the token enum. acqn 2022-08-06 18:45:49 +08:00
  • 12b9b10355 Merge pull request #1832 from acqn/PPDefineFix Bob Andrews 2022-08-20 14:27:25 +02:00
  • 03421694b2 Merge pull request #1817 from acqn/PPFix Bob Andrews 2022-08-19 21:37:16 +02:00
  • 98491d7c92 Merge pull request #1831 from acqn/DeclFix Bob Andrews 2022-08-19 20:58:28 +02:00
  • 3fbefdef45 Fixed warning on forward declaration of enums. Fixed the issue that global static variables put on zeropage were missing optimization. acqn 2022-08-19 18:48:52 +08:00
  • cf7558add3 Added check for ## at either end of macro expansion. acqn 2022-08-18 23:16:29 +08:00
  • b8211a2921 Update Contributing.md Bob Andrews 2022-08-17 21:42:42 +02:00
  • 623f047397 Merge pull request #1509 from mrdudz/rremd Bob Andrews 2022-08-11 01:11:16 +02:00
  • 38c4449ab1 Merge pull request #1826 from alejandro-colomar/master Bob Andrews 2022-08-11 01:10:16 +02:00
  • c1fd3218df add test related to pr #1799 mrdudz 2022-08-11 00:59:09 +02:00
  • f942c629d7 simple test related to issue #1655 mrdudz 2022-08-11 00:04:36 +02:00
  • ec310fceb8 Merge pull request #1825 from ReallyNiceGuy/master Bob Andrews 2022-08-11 00:03:12 +02:00
  • f14e793197 Make NULL conform to POSIX Alejandro Colomar 2022-08-08 21:48:32 +02:00
  • bdcc5ba549 Merge pull request #1821 from ZeroByteOrg/x16_waitvsync Bob Andrews 2022-08-09 19:02:15 +02:00
  • e30e233064 Merge pull request #1829 from acqn/VoidPtrFix Bob Andrews 2022-08-09 14:29:56 +02:00
  • 78e80eb942 Fixed superfluous warning on pointer types comparing a non-void pointer to a void pointer. acqn 2022-08-09 13:13:33 +08:00
  • 0c8366c1e9 Merge pull request #1828 from ZeroByteOrg/x16_ym Bob Andrews 2022-08-09 00:50:08 +02:00
  • 5608453aea Fixed YM2151 struct to match HW behavior ZeroByteOrg 2022-08-08 16:16:37 -05:00
  • 582e43931d import RDTIM symbol instead of hard-wiring it here ZeroByteOrg 2022-08-08 15:21:30 -05:00
  • 9b3b652fa5 Switched to using tmp1 instead of self-mod to store the jiffies value ZeroByteOrg 2022-08-08 15:17:28 -05:00
  • 71a9ed04a2 Revert: Parse file included inside a macro at definition time Marco Aurelio da Costa 2022-08-07 11:24:47 -03:00
  • a3a5fbe809 Disallowed 'defined' as a macro name. acqn 2022-08-07 13:56:47 +08:00
  • ae811baaf1 Fixed the bug that redefined macros could co-exist but not all be undefined with a single #undef. acqn 2022-08-06 18:21:42 +08:00
  • b93f9fbba4 Updated documents about the predefined macros. acqn 2022-08-18 22:51:23 +08:00
  • 47d5e74a6e Modified way to keep undefined macro handling more consistent. acqn 2022-08-18 22:51:23 +08:00
  • 7971eec3cc Fixed parentheses handling when a function-like macro name itself is used as an macro argument. acqn 2022-08-07 12:45:48 +08:00
  • 0a051a4dee Unsupported #pragma within argument lists of function-like macro invocation. acqn 2022-08-06 16:56:28 +08:00
  • 78870219a4 CX16 waitvsync uses Kernal API to retreive jiffies ZeroByteOrg 2022-08-05 17:44:18 -05:00
  • 251e984ba8 Fixed error recovery with preprocessing directives failures. acqn 2022-08-05 14:03:51 +08:00
  • 4de40a20cb Merge pull request #1820 from polluks2/patch-5 Bob Andrews 2022-08-04 00:43:10 +02:00
  • 7a93d3c707 Shorter isascii polluks2 2022-08-04 00:25:04 +02:00
  • f8d08b1e1a More post-C99 predefined macros. acqn 2022-07-26 21:40:19 +08:00
  • 2f357ba9b2 Preprocessor directives can now appear in the argument list of function-like macro calls. #pragma PP-tokens can now be macro replaced. #include header names directly enclosed in <> are free of macro replacement. Preprocess-only mode (-E) now outputs with #line as source info. Moved testcases for #760 and #1357. Added testcase for #1643. acqn 2022-07-26 21:10:38 +08:00
  • 80fc8cd11e Added preprocessor warning on missing terminating characters of character/string literals. acqn 2022-07-26 21:10:36 +08:00
  • 2c9c8ee196 Fixed extra "Macro argument count mismatch" message when a macro argument list is unterminated. acqn 2022-07-26 21:10:31 +08:00
  • 60c1290468 Fixed the bug that preprocessor could run past the end of included files. Fixed the wrong filename and 0 line number in disgnostics when a preprocessor error occurred at the end of a file. Fixed diagnostics for missing #endif. acqn 2022-07-26 21:10:26 +08:00
  • 416040dfb6 add prototype for static driver mrdudz 2022-07-24 23:43:53 +02:00
  • 7381a2c420 Added check for extra tokens at the end of directives. Improved diagnostics on missing/illegal macro names. acqn 2022-07-24 19:07:16 +08:00
  • fb8de287be test related to pr #1800 mrdudz 2022-07-28 01:50:54 +02:00
  • 2c742ffc1c Merge pull request #1800 from acqn/PPFix Bob Andrews 2022-07-28 01:48:41 +02:00
  • 15756cc730 Update Contributing.md Bob Andrews 2022-07-28 00:29:05 +02:00
  • 9ab8026dbb Merge pull request #1813 from IrgendwerA8/CharmapFixDocUpdate Bob Andrews 2022-07-27 17:58:57 +02:00
  • b3015ef731 Updated documentation while char-mapping is fixed. IrgendwerA8 2022-07-27 13:54:00 +02:00
  • 5164b88a27 test was moved to test/val mrdudz 2022-07-26 17:21:33 +02:00
  • a41b76795a Merge pull request #1807 from acqn/CharmapFix Bob Andrews 2022-07-26 17:19:58 +02:00
  • 9f767770ac Added test case for #pragma charmap. acqn 2022-07-26 15:19:48 +08:00
  • 8289c94e69 Fixed skipped lines consist of a leading # followed by any non-directive PP-token sequence. acqn 2022-07-26 14:28:27 +08:00
  • f99cb177c6 added example/test for cbm_read, related to issue #1306 mrdudz 2022-07-25 21:01:31 +02:00
  • d03f28d0ed dangling! mrdudz 2022-07-24 23:52:53 +02:00
  • 3c71455bd6 test related to issue #1373, should be move to val in pr #1807 mrdudz 2022-07-24 23:49:45 +02:00
  • 073443d865 Merge pull request #1809 from cc65/revert-1805-something_to_pull Bob Andrews 2022-07-24 18:22:37 +02:00
  • 6239fbe18c Revert "rename '_poserror' to '__poserror'" Bob Andrews 2022-07-24 18:14:21 +02:00
  • c642c07ea0 Merge pull request #1808 from acqn/LibFix Bob Andrews 2022-07-24 17:59:57 +02:00
  • 8485d59aa6 Removed an extra colon from libsrc/dbg/dbg/c. acqn 2022-07-24 20:58:10 +08:00
  • be26b0631b Fixed #ifdef and #ifndef. acqn 2022-07-24 19:07:02 +08:00
  • 066a5e0fec Fixed #pragma charmap for string literals. acqn 2022-07-24 16:38:41 +08:00
  • fa9ec1fb71 Merge pull request #1805 from groessler/something_to_pull Bob Andrews 2022-07-24 02:48:51 +02:00
  • 8e19d84cb4 detect number of RAM pages mrdudz 2022-07-24 02:47:02 +02:00
  • 8db0def88b add a target for testcode.d81, which contains all drivers too mrdudz 2022-07-24 02:43:18 +02:00
  • 1bc05a7aa0 add rrr driver to list mrdudz 2022-07-24 02:42:49 +02:00
  • 758d9466c0 rename '_poserror' to '__poserror' Christian Groessler 2022-07-24 00:33:56 +02:00
  • bc44bd583c Merge remote-tracking branch 'upstream/master' into rremd mrdudz 2022-07-23 20:03:28 +02:00