On 24.02.2025 12:41, LIU Hao wrote:
在 2025-02-24 19:29, Jacek Caban 写道:
wchar.h ideally should not include wctype.h, I guess that's why those
declarations are currently duplicated. MSVC has its stripped version
in corecrt_wctype.h, which is included by both wctype.h and wchar.h.
I think we should do the same.
I'm aware of <corecrt_wctype.h>. However there's some confusion in my
mind:
1. The complement of <corecrt_wctype.h> w.r.t. <wctype.h> is unclear.
In other words,
it's about what should be in <wctype.h> but not in <wchar.h>.
Isn't that exactly what we need for de-duplication?
2. There's no <corecrt_ctype.h>.
How is it relevant?
3. Surprisingly, <ctype.h> includes <corecrt_wctype.h>, which looks
like a user would
have included both.
What's wrong with it? Blindly removing declarations from ctype.h like
you did can easily break existing code.
Jacek
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public