Repository navigation
util: Move os_strtod and os_dtostr into platform-number.c - #825
Merged
Merged
Conversation
Behavior-neutral: the two functions and their locale helpers move verbatim from platform.c, so ENABLE_RUST_LIBOBS can later drop the file as a unit. No signature, header or behavior change. Refs #262
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #262 (slice 2, numbers).
Behavior-neutral extraction, as the testing policy asks before a partial-file port:
os_strtod,os_dtostrand theirto_locale/from_localehelpers move verbatim fromlibobs/util/platform.cintolibobs/util/platform-number.c(checked withdiff), and the file is added tolibobs/CMakeLists.txt. No Rust, no signature, header or behavior change.Existing Tier 2 coverage for the moved code:
test_platform(test_strtod,test_dtostr),test_config_double_window,test_dtostr_exponent. The Rust port (RED, then GREEN) follows in a separate PR.