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

Move the empty and one-char strings to CommonStrings, and allow istr! to access them. #19465

Merged
merged 3 commits into from
Feb 9, 2025

Conversation

moulins
Copy link
Contributor

@moulins moulins commented Feb 7, 2025

Not entirely sure this is worth the extra complexity in macro code, but this does have a few nice consequences:

  • it removes some "duplicates" strings like "x" or "y", that were both in the one-char cache and in CommonStrings;
  • being able to use istr! in more places makes code more readable, even if not that much shorter.

@moulins moulins changed the title Move the empty and one-char strings to AvmString, and allow istr! to access them. Move the empty and one-char strings to CommonStrings, and allow istr! to access them. Feb 7, 2025
@moulins moulins force-pushed the istr-macro-extra-2 branch 2 times, most recently from 4e3047c to c9cfb54 Compare February 8, 2025 18:07
@Lord-McSweeney Lord-McSweeney added A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup labels Feb 9, 2025
@moulins moulins force-pushed the istr-macro-extra-2 branch from c9cfb54 to c7c486a Compare February 9, 2025 17:20
@moulins moulins merged commit 4d0c2a2 into ruffle-rs:master Feb 9, 2025
22 checks passed
@moulins moulins deleted the istr-macro-extra-2 branch February 9, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants