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

options/ansi: fix strtol et al., implement wcstol et al. #476

Merged
merged 2 commits into from
Jun 19, 2022

Conversation

64
Copy link
Member

@64 64 commented Jun 8, 2022

This PR fixes the current implementation of strtol and friends by replacing it with a generic implementation in idiomatic C++. It also adds a much more comprehensive set of tests.

When testing it was discovered that this commit somehow triggers an issue in read_dns_name, so we also fix that.

Fixes #467.

@64 64 force-pushed the strtol branch 5 times, most recently from 692c108 to 30bfd83 Compare June 8, 2022 04:05
Copy link
Member

@Geertiebear Geertiebear left a comment

Choose a reason for hiding this comment

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

LGTM except for one style nitpick.

options/internal/include/mlibc/strtol.hpp Outdated Show resolved Hide resolved
@Geertiebear
Copy link
Member

Could you squash the fixup commit please?

@64
Copy link
Member Author

64 commented Jun 11, 2022

Done.

@64
Copy link
Member Author

64 commented Jun 19, 2022

Merging this since it was already approved.

@64 64 merged commit 98cd24e into managarm:master Jun 19, 2022
@64 64 deleted the strtol branch June 19, 2022 18:38
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.

wcstol() (and friends) unimplemented
2 participants