Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix screen code naming #59

Merged
merged 4 commits into from
Aug 24, 2024
Merged

Conversation

mbrukner
Copy link
Contributor

@mbrukner mbrukner commented Aug 2, 2024

Checklist

Thanks a lot for your contribution!
Please tick off the following:

  • Tests run successfully (i.e. make test)
    • using the CC65 compiler
    • using the LLVM/Clang compiler
  • Doxygen style tags are used for public API
  • Source code is properly formatted; run e.g. clang-format -i <file>
  • I agree to the License of this repository

In the functions that plot actual character to the screen the naming
suggested it would handle PETSCII codes, where in fact is was dealing
with screen codes. These changes make that more clear.
This could be a breaking change for anyone who has been using
fc_plotPetsciiChar in the past.
@mlund
Copy link
Collaborator

mlund commented Aug 2, 2024

Renaming fcio functions is a breaking change. I suggest to introduce wrapper functions and give a deprecation warning if the old name is used. Let's also ping @steph72. Please also state if you agree with the new license (#51).

@mlund mlund requested a review from steph72 August 2, 2024 12:55
@mbrukner
Copy link
Contributor Author

mbrukner commented Aug 2, 2024

@mlund makes total sense, I was under the impression with fcio only being integrated to the libc with the 0.4.0 release I could get away with just changing the name. That would not work well for people replacing their existing use of fcio with the latest libc though.
I added a deprecation warning as suggested, this unfortunately is not supported in cc65.
I agree releasing under the Apache 2 license.

src/fcio.c Show resolved Hide resolved
src/fcio.c Outdated Show resolved Hide resolved
…for non-exported function

Removed deprecated asciiToPetsciicode as it was not exported in the
first place. Re-added fc_plotPetsciiChar with deprecation warnings,
updated doxygen comment to reflect these changes.
@mbrukner mbrukner changed the title Fix scren code naming Fix screen code naming Aug 2, 2024
@mlund mlund merged commit eac0745 into MEGA65:development Aug 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants