1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00
Commit Graph

11127 Commits

Author SHA1 Message Date
Colin Leroy-Mira
55d3a6ea39 Optimize stpcpy's size and speed 2024-09-07 21:24:53 +02:00
Bob Andrews
5e5dd1d6c4
Merge pull request #2498 from kugelfuhr/kugelfuhr/fix-include-in-macros
Fix .include within .macro/.repeat
2024-09-01 23:26:33 +02:00
Bob Andrews
2680bc8dec
Merge pull request #2495 from kugelfuhr/kugelfuhr/dont-save-stuff-in-main
Generate shorter code for main() in some cases
2024-09-01 22:54:45 +02:00
Kugel Fuhr
cc0db26e20 Added some tests. 2024-09-01 20:22:29 +02:00
Kugel Fuhr
b2aceaea24 Fix behavior of .INCLUDE within a macro or .REPEAT. In the original code
.INCLUDE was executed after expansion of the macro or .REPEAT - which was
wrong and caused all sorts of unexpected behavior. Related issues/PRs
are #231, #1473, #2159 and maybe others.

Note: After this change error messages for nested macro/.include statements
may be wrong. This is an unrelated bug that was always there and got exposed
by this fix. The bug needs to be addressed in a separate PR.
2024-09-01 19:58:07 +02:00
Bob Andrews
7a578be724
Merge pull request #2491 from kugelfuhr/kugelfuhr/fix-2431
Fix issue #2431
2024-09-01 19:35:32 +02:00
Bob Andrews
a712fbb8f9
Merge pull request #2493 from kugelfuhr/kugelfuhr/fix-1663
Fix issue #1663.
2024-09-01 18:07:14 +02:00
Bob Andrews
601deab3a2
Merge pull request #2492 from kugelfuhr/kugelfuhr/alternative-pragma-names
Allow alternative names for pragmas that contain underlines instead of dashes
2024-09-01 17:57:38 +02:00
Bob Andrews
4b38974918
Merge pull request #2496 from kugelfuhr/kugelfuhr/fix-2458
Fix macro preprocessing for #include
2024-09-01 17:54:36 +02:00
Bob Andrews
8c1047529f
Merge pull request #2497 from kugelfuhr/kugelfuhr/fix-2044
Fix issue #2044
2024-09-01 17:48:45 +02:00
Kugel Fuhr
b4aef6eac4 Fix macro preprocessing for #include. Arguments enclosed in "" or <> must not
be preprocessed. See ISO/IEC 9899 1990 (E) section 6.8.2.
2024-09-01 13:16:35 +02:00
Kugel Fuhr
b5cc68d6e2 Do not save any register variables when entering main(). Do not restore the C
stack when leaving main(). Both are unnecessary and just bloat the executable.
2024-09-01 12:41:25 +02:00
Kugel Fuhr
4b68d19993 Fix issue #1663. 2024-09-01 10:42:18 +02:00
Kugel Fuhr
35c3fe5d0a Fix issue #2044. While doing so, cleanup copy&pasted code. 2024-09-01 10:29:59 +02:00
Kugel Fuhr
ef17250c64 Fixed a compiler warning. 2024-09-01 10:26:45 +02:00
Kugel Fuhr
e40058257e Added a test for the available #pragmas. 2024-09-01 10:23:29 +02:00
Kugel Fuhr
4008ec5814 Document the new #pragma names. 2024-09-01 10:23:10 +02:00
Kugel Fuhr
ba263d13a7 Allow alternative #pragma names using underscores. 2024-09-01 10:22:57 +02:00
Kugel Fuhr
58b1c21996 Removed #pragma names that have been obsolete for over a decade. 2024-09-01 10:22:40 +02:00
Colin Leroy-Mira
622793e343 Apple II: Move _exit out of STARTUP segment 2024-08-25 22:14:45 +02:00
Bob Andrews
b688cfa0c0
Merge pull request #2480 from polluks/patch-9
Added company name and notice
2024-08-11 01:16:38 +02:00
Bob Andrews
b86ac99982
Merge pull request #2479 from polluks/patch-8
Fixed README.md
2024-08-11 01:15:43 +02:00
Stefan
86611f1c9c
Some clarification 2024-08-10 15:29:50 +02:00
Stefan
bf2b522478
Added company name and warning 2024-08-10 15:12:34 +02:00
Stefan
0126b34d20
Fixed README.md
Oric was not a company.
2024-08-10 14:53:29 +02:00
Oliver Schmidt
feb5026823
Added option to disable the force-to-uppercase behavior of the apple2 target. (#2474)
* Added option to disable the force-to-uppercase behavior of the apple2 target.

* Fixed dangling spaces.
2024-08-07 18:27:09 +02:00
Bob Andrews
925a589b90
Merge pull request #2467 from SvenMichaelKlose/updated_readme
Updated readme
2024-07-28 16:08:28 +02:00
Bob Andrews
8b3625847d
Merge pull request #2466 from SvenMichaelKlose/reformatted_doc_contributing
Make document human-readable and split out name clashes section.
2024-07-28 15:56:58 +02:00
Bob Andrews
91f908f55a
Merge pull request #2468 from karrika/fix-joystick
Fixed #2459
2024-07-28 15:49:42 +02:00
Sven Michael Klose
8a1e060b13 Fix function comment example.
Must be on its own line.
2024-07-22 23:51:16 +02:00
karri
2ea216a521 Merge branch 'fix-joystick' of ssh://github/karrika/cc65 into fix-joystick 2024-07-20 13:18:16 +03:00
karri
19899022af Add support for different joysticks 2024-07-20 13:14:22 +03:00
Sven Michael Klose
d5fecbf10b Add project origin and people and table of supported targets.
Vital information that shouldn't require following links.
2024-07-18 11:24:36 +02:00
Sven Michael Klose
d3e0f7b392 Make document human-readable and split out name clashes section.
In hope to reduce the pull request comment ping-pong.
2024-07-18 10:00:16 +02:00
Bob Andrews
03d824e13b
Merge pull request #2464 from SvenMichaelKlose/stpcpy
Add stpcpy().
2024-07-16 01:47:11 +02:00
Sven Michael Klose
aed94d2dae Fix code style.
Have type, function name and argument declaration on a single line.
2024-07-16 01:33:48 +02:00
Bob Andrews
6551d455b1
Merge pull request #2463 from SvenMichaelKlose/test_strtok
Test strtok().
2024-07-15 22:56:10 +02:00
Sven Michael Klose
677cd8ff4e Use standard library's exit() code constants. 2024-07-15 17:54:43 +02:00
Sven Michael Klose
9558ebad62 Add test for stpcpy(). 2024-07-15 17:35:28 +02:00
Sven Michael Klose
816bcabe5a Move strtok() test to correct section. 2024-07-14 23:12:59 +02:00
Sven Michael Klose
c385e52c12 Merge branch 'master' into test_strtok 2024-07-14 13:59:18 +02:00
Bob Andrews
1d1dd425c1
Merge pull request #2448 from Commodore64128/master
Commander X16 640x480 tgi loadable graphics driver
2024-07-12 12:40:43 +02:00
Sven Michael Klose
af3ac42373 Move stpcpy() to non-standard section. 2024-07-07 19:48:44 +02:00
Sven Michael Klose
581b79e0b9 Add stpcpy().
Like strcpy() but returning pointer to ending zero of copied string.
2024-07-07 14:04:49 +02:00
Bob Andrews
2f25b18074
Merge pull request #2462 from SvenMichaelKlose/gcc14_make_test_fix
Keep gcc-14 from aborting with errors due to new defaults.
2024-07-07 13:49:45 +02:00
Sven Michael Klose
cdb2d49e3a Test strtok(). 2024-07-07 01:02:32 +02:00
Sven Michael Klose
871bafa5b3 Keep gcc-14 from aborting with errors due to new defaults.
Adds -Wno-error=implicit-int -Wno-error=int-conversion to CFLAGS.

Tested with gcc-12.4 and gcc-14.1.
2024-07-07 00:48:15 +02:00
Bob Andrews
0541b65aa4
Merge pull request #2434 from colinleroy/strcasestr
Implement strcasestr
2024-06-22 15:00:17 +02:00
xlar54
3d5fd0489e replaced constant 2024-06-19 23:52:25 -05:00
xlar54
3b494ad6f2 alignment fixes 2024-06-19 23:50:54 -05:00