Skip to content

Rename compressed_string_t to mp_rom_error_text_t to match upstream #8519

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

Merged
merged 7 commits into from
Oct 27, 2023

Conversation

jepler
Copy link

@jepler jepler commented Oct 25, 2023

.. and also use MP_ERROR_TEXT instead of translate in py/

this hopefully gets us a bit closer to upstream.

Closes #8511

@jepler
Copy link
Author

jepler commented Oct 25, 2023

I'll look at the build errors in the next few days

@dhalbert
Copy link
Collaborator

Are the errors are due to the substitution not removing the *? mp_rom_error_text_t is a pointer in itself, so I thought the substitution would be
compressed_string_t * -> mp_rom_error_text_t
with the asterisk *.

jepler and others added 5 commits October 25, 2023 21:24
micropython puts the pointer-ness into the typedef; we can put the
const-ness there too.

this reduces the delta to micropython; for instance, emitinlinextensa
and emitinlinethumb now match upstream.
@dhalbert
Copy link
Collaborator

I will merge this after the release of 9.0.0-alpha.2, since it is not a functionality change.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - this is a nice skew reduction!

@dhalbert dhalbert merged commit 32b6ac7 into adafruit:main Oct 27, 2023
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.

define const compressed_string_t * as mp_rom_error_text_t?
2 participants