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

Conditional locale support #71

Merged

Conversation

cjvaughter
Copy link
Contributor

This fixes the remaining issues in #69.
It was not as difficult as I imagined, but it took a much deeper understanding of the codebase.
Note that I dropped the locale override macros, as I later realized they were ill-conceived.

I have tried to be as minimally invasive as possible, mainly cutting out call-sites and letting the optimizer take care of the rest. This may not be the best solution, but it required the fewest changes. As far as I can tell, there are no remnants of std::locale.

My final size reduction is 135K!

@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
include/scn/detail/locale.h 85.84% <100.00%> (ø)
include/scn/reader/common.h 79.58% <ø> (ø)
include/scn/reader/float.h 87.23% <100.00%> (+0.13%) ⬆️
include/scn/reader/int.h 90.69% <ø> (ø)
include/scn/reader/string.h 71.17% <ø> (ø)
include/scn/reader/types.h 91.30% <ø> (ø)
src/reader_float.cpp 87.15% <ø> (ø)

📢 Thoughts on this report? Let us know!.

@eliaskosunen eliaskosunen merged commit c068334 into eliaskosunen:master Nov 2, 2023
108 checks passed
@eliaskosunen
Copy link
Owner

To better align with #70, I also changed the macro name here to SCN_DISABLE_LOCALE.

After rebasing on top of latest master, looks good. Thank you!

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.

None yet

2 participants