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

Add c++filt 5.3 #56

Merged
merged 6 commits into from
Sep 10, 2023
Merged

Add c++filt 5.3 #56

merged 6 commits into from
Sep 10, 2023

Conversation

AngheloAlf
Copy link
Contributor

Adds c++filt 5.3 to the recomped files. c++filt can demangle IDO C++ mangling scheme.

Other IDO 5.3 C++ files were added to the repo, but they are not being recomped since I didn't test them to work properly.

Also fixed ctype to be unsigned char instead of signed char array, and wrapper_printf skipping the first variadic argument.

Copy link
Contributor

@hensldm hensldm left a comment

Choose a reason for hiding this comment

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

LGTM. Tested on OoT and MM for regression. Did not test the new feature.

return wrapper_fprintf(mem, STDOUT_ADDR, format_addr, sp);
uint32_t fp_addr = STDOUT_ADDR;

sp += 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, was nothing using printf?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tbh, I'm not completely sure, I made this PR months ago and this bit surprised me too 😅

I dug a bit in the discord and found this claim from my past self: https://discord.com/channels/710646040331681844/1018032155877724210/1109653246622060624

so, according to me, printf was almost completely unused, which makes sense considering the old implementation of printf and fprintf, where printf had very few cases implemented while fprintf was the chonky one

@ethteck ethteck merged commit e1320ea into decompals:master Sep 10, 2023
@AngheloAlf AngheloAlf deleted the C++4.0 branch September 10, 2023 13:01
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.

3 participants