I think I had mentioned my repo[1] on the list a few months ago, where I tried 
to sort out [documented] CRT functions as best as possible by both header file 
they are declared in and their functionality (e.g. memory allocation functions).

I would like to look through mingw-w64's headers to make sure there's nothing 
missing, looking for missing _CRTIMP at the same time.

- Kirill Makurin

[1] https://github.com/maiddaisuki/crt-summary
________________________________
From: Martin Storsjö <[email protected]>
Sent: Friday, December 19, 2025 7:38 PM
To: mingw-w64-public <[email protected]>
Cc: Pali Rohár <[email protected]>
Subject: Re: [Mingw-w64-public] Add missing _CRTIMP for some functions

On Thu, 18 Dec 2025, Kirill Makurin wrote:

> First, we have duplicating (guarded) declarations in multiple header
> files, such as various wcs* functions are declared in both wchar.h and
> string.h. Should we move them to a separate header file, similarly to
> what MSVC does, with headers like correct_wchar.h?

This has been an ongoing annoyance, so if you have time to look into it,
that would be appreciated.

When doing it, pay _close_ attention that the refactored set of
declarations really is exactly identical across both headers it was
extracted from. If there are subtle differences in either of them, please
fix that up first in a preceding patch.

I have a faint feeling that there are other cases of duplication close to
this area as well, but the only thing I concretely remember is conio.h
which is closely matching the rest, but doesn't have overlapping
declarations.

// Martin



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to