Skip to content

util: Move os_strtod and os_dtostr into platform-number.c - #825

Merged
zackees merged 1 commit into
masterfrom
port/platform-number
Oct 15, 2026
Merged

zackees merged 1 commit into
masterfrom
port/platform-number

Conversation

@zackees

@zackees zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member

Refs #262 (slice 2, numbers).

Behavior-neutral extraction, as the testing policy asks before a partial-file port: os_strtod, os_dtostr and their to_locale/from_locale helpers move verbatim from libobs/util/platform.c into libobs/util/platform-number.c (checked with diff), and the file is added to libobs/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.

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
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
Merged via the queue into master with commit 087a25c Oct 15, 2026
21 checks passed
@zackees
zackees deleted the port/platform-number branch October 26, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant