On Fri, 24 Nov 2017, Jacek Caban wrote:
Hi Martin,
On 11/24/17 11:03 AM, Martin Storsjö wrote:
---
mingw-w64-headers/crt/conio.h | 214
+++++++++++++++++++++++++++++++++++++++++-
1 file changed, 209 insertions(+), 5 deletions(-)
Since we already know that we often need such functions in libucrtbase.a,
wouldn't it make more sense to add new functions there?
I'd rather make that the exception instead of the rule.
It's already quite painful to do the mapping of them, and having to add
new files for all of them would make it another order of magnitude more
work. I'm currently looking at filling in some gaps in sec_api/stdio_s.h,
and that's just around 60 functions just for the narrow-char functions.
MSVC doesn't provide these functions as global symbols at the linker
level, but there you must include a header to make them work.
Additionally, for the wchar versions, you can currently override the
behaviour by setting UCRTBASE_PRINTF_DEFAULT_WIDE, but if we move them to
statically compiled objects in libucrtbase.a, we can't do that any longer.
// Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public