1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-19 09:28:25 +00:00
Commit Graph

9549 Commits

Author SHA1 Message Date
acqn 4cb5063e9c Now the compiler tracks code that has no observable effect. 2022-07-21 03:24:17 +02:00
acqn fcbb4a5246 NoCodeConstExpr() fix to avoid exessive error messages. 2022-07-21 03:24:17 +02:00
acqn 51d7c0f1eb More detailed diagnostic info about conflicted function types. 2022-07-21 03:24:17 +02:00
acqn 80a468f8bd E_ADDRESS_OF logic fix. 2022-07-21 03:24:17 +02:00
acqn 9e82de4607 Better future-proof bit-masking. 2022-07-21 03:24:17 +02:00
acqn 55881e913d Replaced certain usage of "(New-)PointerTo()" with "AddressOf()". 2022-07-21 03:24:17 +02:00
acqn 7e1df39432 Replaced several occurance of PtrConversion() with StdConversion().
Variadic arguments of functions should be default-promoted.
2022-07-21 03:24:17 +02:00
acqn 3a6920bf10 Minor clean-ups and typo fixes. 2022-07-21 03:24:17 +02:00
acqn 9004c4fccb Made it easier to support 0-size structs in the future. 2022-07-21 03:24:17 +02:00
mrdudz 36315ecc06 omit an error message also when an unresolved import was added by the compiler. fixes bug #1551 2022-07-21 03:24:17 +02:00
mrdudz 1dae5062e9 more verbose comment 2022-07-21 03:24:17 +02:00
mrdudz f614f3b9e2 reserve enough space for the longest string we can expect 2022-07-21 03:24:17 +02:00
jede e60836add8 Telestrat cfg : fix space 2022-07-21 03:24:17 +02:00
jede 36a27055e8 Telestrat : change default start address 2022-07-21 03:24:17 +02:00
Greg King a94b614f2d Removed an environment experiment. 2022-07-21 03:24:17 +02:00
Greg King 3bf3bfa294 Commented out the push command. 2022-07-21 03:24:17 +02:00
Greg King f835412562 Changed a line that Github Actions claimed was bad. 2022-07-21 03:24:17 +02:00
Greg King bcc8c5049b Went back to using actions/checkout@v2.
(Direct cloning doesn't support pushing with a hidden token.)

I'm putting this aside, for now. A Personal Access Token must be made for the repository. "git push" does a dry-run, so that the workflow will succeed.
2022-07-21 03:24:17 +02:00
Greg King 9dec4034e3 Passed the token through the environment. 2022-07-21 03:24:17 +02:00
Greg King c00c89c2b7 Directly clone the document repo. 2022-07-21 03:24:17 +02:00
Greg King 4d045a68e3 Put doc.git next to cc65. 2022-07-21 03:24:17 +02:00
Greg King 964c4a220e Find out where doc.git is. 2022-07-21 03:24:17 +02:00
Greg King e004e92f21 Fixed the action/checkout steps.
I misunderstood that action's docs.
2022-07-21 03:24:17 +02:00
Greg King 2290e70e0c Experiment: checkout the second repo first.
Maybe that will give it the github.token that it needs.
2022-07-21 03:24:17 +02:00
Greg King 4c74d4b851 Trying a verbose Git push.
If I'm lucky, it will tell me more.
2022-07-21 03:24:17 +02:00
Greg King cb20b2e968 Tried to authorize a push by setting the access token explicitly. 2022-07-21 03:24:17 +02:00
Greg King 3232ce1bad Fixed a shell syntax bug. Try again. 2022-07-21 03:24:17 +02:00
Greg King 735f0cda25 Added Github action steps that update the online documentation repo. 2022-07-21 03:24:16 +02:00
mrdudz e8e1889b0b handle loadaddr the same as with the other CBM targets 2022-07-21 03:22:52 +02:00
rofl0r 9cb8bf9500 cl65: fix regression in --print-target-path
since the "empty prefix means run from current dir" hack was removed,
cl65 --print-target-path no longer prints the path relative to the
binary, but the hardcoded library path which points to prefix, because
the code adds the hardcoded path first to the pathsearch, but then actually
only returns the first entry rather than looking whether the path exists.

closes #1754
2022-07-21 03:22:52 +02:00
Stephan Mühlstrasser 8ec1f76b9c Fix switched meaning of '\n' and '\r'
When conio was implemented for the osic1p target, the cbm
target was used as a blueprint. But it was overlooked that the
cbm target encodes CR as 0x0A and LF as 0x0D, while the
osic1p target uses the ASCII encoding of CR and LF. Therefore
conio output of '\n' moved the active position to the start of the
line and '\r' moved the active position to the next line.

This change implements the correct semantics of '\n' and '\r'
in conio for the osic1p target.

Fixes #1747.
2022-07-21 03:22:52 +02:00
Greg King f69b993ee6 Fixed a multi-line comment.
The left border is thicker in cc65 than it is in VICE.
2022-07-21 03:22:52 +02:00
mrdudz 85fb6ba944 add check for +x flag 2022-07-21 03:22:52 +02:00
mrdudz 8e787c0c0a remove +x flag 2022-07-21 03:22:52 +02:00
compyx 4595d08c6e Fix set but unused variable 2022-07-21 03:22:52 +02:00
mrdudz 3717f36c52 rename the actual checkstyle target too :) 2022-07-21 03:22:52 +02:00
mrdudz 0e4d3aa7c5 rename the "check" target to "checkstyle".
also created a new "check" target which runs all tests, as it is common with GNU programs
2022-07-21 03:22:52 +02:00
mrdudz 0113d1328b don't try to build the checkversion sample for targets that do not have printf 2022-07-21 03:22:52 +02:00
mrdudz 976d07b98f clean and mostlyclean should also clean the test and targettest directories 2022-07-21 03:22:52 +02:00
Bob Andrews 08bad5b93b Update README.md 2022-07-21 03:22:52 +02:00
polluks2 133d703964 smarter manufacturer
some kind of promotion
2022-07-21 03:22:52 +02:00
mrdudz 1334a10101 sample program that demonstrates how to compare the value of __CC65__ for
any version of the compiler
2022-07-21 03:22:52 +02:00
mrdudz b9779927e7 document changes to __CC65__ 2022-07-21 03:22:52 +02:00
mrdudz 354dcd6101 define __CC65__ as ((VER_MAJOR * 0x100) + VER_MINOR), fixes issue #1667 2022-07-21 03:22:52 +02:00
mrdudz 15047d9754 simple test related to #1678 2022-07-21 03:22:52 +02:00
mrdudz 3943dc1216 Fix endless loop on expanding a recursive macro, fixed issue #1678, patch by kugelfuhr 2022-07-21 03:22:52 +02:00
mrdudz b8d0bd7f95 Add a directory for tests that exercise the supported C standard differences.
As a first test added the snippet given in issue #1670
2022-07-21 03:22:52 +02:00
mrdudz 4579d584b1 fix some header files to conform with C99 hopefully, should fix issue #1670 2022-07-21 03:22:52 +02:00
mrdudz db2dfc9226 must include stdarg.h to use varargs 2022-07-21 03:22:52 +02:00
Bob Andrews 738d6dba88 Update Contributing.md 2022-07-21 03:22:52 +02:00