microsoft / microsoft/STL

<xtimec.h>: Stop exporting internal-only functions

Open
#274 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vNext
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

https://github.com/microsoft/STL/blob/f9b1dccd121b5f8bb76d06adb0c85aac3f766326/stl/inc/xtimec.h#L28-L37

Of these functions, xtime_get() and _Xtime_diff_to_millis2() are used within src only; there's no need for them to be exported.

Furthermore, _Xtime_diff_to_millis() is completely unused and should be removed.

Changing the export surface is a binary compatibility break, so this is a vNext issue.

vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with stl/inc/xtimec.h lines 28-37 and search the src directory for xtime_get(), _Xtime_diff_to_millis2(), and _Xtime_diff_to_millis(). On the vNext branch, confirm that the first two are no longer exported and the unused function is removed; binary compatibility must be intentionally changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.