8000 Add `c++filt` 5.3 by AngheloAlf · Pull Request #56 · decompals/ido-static-recomp · GitHub
[go: up one dir, main page]

Skip to content

Add c++filt 5.3#56

Merged
ethteck merged 6 commits intodecompals:masterfrom
AngheloAlf:C++4.0
Sep 10, 2023
Merged

Add c++filt 5.3#56
ethteck merged 6 commits intodecompals:masterfrom
AngheloAlf:C++4.0

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

0