Re: [Mingw-w64-public] [PATCH] headers: Split mmsystem.h file

2022-10-24 Thread LIU Hao
mingw-w64-headers/include/playsoundapi.h Thanks for this patch. Looks good to me, and I have pushed this one. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] crt: Implement standard-conforming termination support with mcfgthread

2022-10-23 Thread LIU Hao
also easily get overflown. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH v2 1/2] crt: Implement tdestroy

2022-10-23 Thread LIU Hao
files changed, 45 insertions(+), 1 deletion(-) create mode 100644 mingw-w64-crt/misc/tdestroy.c Thanks for the patch. Looks good to me. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public

Re: [Mingw-w64-public] [PATCH 1/2] crt: Implement tdestroy

2022-10-23 Thread LIU Hao
needs a guard such as `#ifdef _GNU_SOURCE`. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw

Re: [Mingw-w64-public] [PATCH] crt: Implement standard-conforming termination support with mcfgthread

2022-10-23 Thread LIU Hao
/gcc-mirror/gcc/blob/0e37fd4dc74c1db99cdc7d71ef378e1221253c6f/libstdc%2B%2B-v3/libsupc%2B%2B/guard.cc#L319 -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] crt: Implement standard-conforming termination support with mcfgthread

2022-10-23 Thread LIU Hao
with you on that. Without such CRT hacks, mutex, condvar, threads etc. are still functional. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net

[Mingw-w64-public] [PATCH] crt: Implement standard-conforming termination support with mcfgthread

2022-10-22 Thread LIU Hao
Hello, Attached are final patches for mcfgthread support in the CRT. Please review. -- Best regards, LIU Hao From c0fe5b71bff8b147a6cc3c69d176ef25f343652a Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 7 Oct 2022 22:42:04 +0800 Subject: [PATCH 1/4] crt: Mark `atexit()` as DATA because it's

Re: [Mingw-w64-public] [RFC] Integrating mcfgthread with mingw-w64 CRT

2022-10-20 Thread LIU Hao
/libstdc%2B%2B-v3/src/c%2B%2B11/thread.cc#L157 [2] https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/libgcc/unwind-dw2-fde.c#L103 -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw

Re: [Mingw-w64-public] [RFC] Integrating mcfgthread with mingw-w64 CRT

2022-10-19 Thread LIU Hao
interfaces as well. As long-time plans it might also be possible to add more such wrappers for Clang's libc++ or pthread, which doesn't fit the purpose of 'GCC libraries' any more. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH 1/3] crt: Add CLSID and IIDs for IContextCallback

2022-10-19 Thread LIU Hao
/ctxtcall-uuid.c | 18 ++ 2 files changed, 19 insertions(+) create mode 100644 mingw-w64-crt/libsrc/ctxtcall-uuid.c Thanks for the patches. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] crt: Open the mkstemp temporary file without denying RW access

2022-10-17 Thread LIU Hao
for the patch. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Split mmsystem.h file like WinSDK

2022-10-17 Thread LIU Hao
preferable. After the spit, 'mmsystem.h' should include other headers, so existent code won't cease to compile. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Import ctxtcall.idl from wine

2022-10-15 Thread LIU Hao
| 1 + mingw-w64-headers/wine-import.sh | 1 + 2 files changed, 2 insertions(+) Thanks for the patch. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list

Re: [Mingw-w64-public] [PATCH] crt: Implement the __stpcpy_chk function

2022-10-14 Thread LIU Hao
(-) create mode 100644 mingw-w64-crt/ssp/stpcpy_chk.c LGTM. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https

Re: [Mingw-w64-public] [RFC] Integrating mcfgthread with mingw-w64 CRT

2022-10-12 Thread LIU Hao
preference, to not maintain something as a part of GCC, mostly due to their lack of enthusiasm about Windows. Well, sure, but that's not a technical argument. It isn't. I wouldn't argue on that. :) -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [RFC] Integrating mcfgthread with mingw-w64 CRT

2022-10-11 Thread LIU Hao
/lhmouse/mcfgthread/issues/70 -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-10 Thread LIU Hao
call can cause code to grow by a few bytes on _each_ call site, and sometimes it occupies a (non-volatile) register, which could otherwise be useful. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public

Re: [Mingw-w64-public] [PATCH 3/3] headers: Implement the PreFetchCacheLine macro and asssociated macros/defines for ARM/ARM64

2022-10-10 Thread LIU Hao
在 2022-10-04 20:56, Martin Storsjö 写道: Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/winnt.h | 16 1 file changed, 16 insertions(+) LGTM. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-10 Thread LIU Hao
it (or we've commented it out from the def file). Oh indeed. I mistook a function for example; actually it is all about data if I read correctly. Thanks for the clarification. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-09 Thread LIU Hao
be stupid questions), I'm just trying to understand how it works and why it is written in this way. Of course not. :) -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-publ

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-08 Thread LIU Hao
about the reason though, but that's it. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64

Re: [Mingw-w64-public] [PATCHv2] Update .gitignore files

2022-10-08 Thread LIU Hao
在 2022/10/8 20:03, JonY via Mingw-w64-public 写道: On 10/8/22 09:56, LIU Hao wrote: Ignore `libtool` as well. Looks good to me. Thanks. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] [RFC PATCH] headers: Simplify _HUGE definition

2022-10-08 Thread LIU Hao
to `__imp_*` pointers. And that is also what `DATA` does in DEF files: It suppresses generation of these plain wrappers. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

[Mingw-w64-public] [PATCHv2] Update .gitignore files

2022-10-08 Thread LIU Hao
Ignore `libtool` as well. -- Best regards, LIU Hao From 63bcf31b48d7ead90a1f176436ab55992f7acc1b Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 8 Oct 2022 00:58:20 +0800 Subject: [PATCH] Update .gitignore files Signed-off-by: LIU Hao --- .gitignore | 36

[Mingw-w64-public] [PATCH] Update .gitignore files

2022-10-07 Thread LIU Hao
-- Best regards, LIU Hao From 9c2acd3cb0d01098e941a3d0b1cbde2d915139a8 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 8 Oct 2022 00:58:20 +0800 Subject: [PATCH] Update .gitignore files Signed-off-by: LIU Hao --- .gitignore | 35 +++ mingw

[Mingw-w64-public] [RFC] Integrating mcfgthread with mingw-w64 CRT

2022-10-07 Thread LIU Hao
://github.com/lhmouse/mcfgthread [5] https://github.com/gcc-mirror/gcc/blob/2eff4fe383a59de94267352e25f77b29d8e6bb42/libstdc%2B%2B-v3/libsupc%2B%2B/atexit_thread.cc#L51 -- Best regards, LIU Hao From 8efa2a31b22f8ed37a31a4f0acbfa943fa8d65e2 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 7 Oct

Re: [Mingw-w64-public] [PATCH v3 04/10] winstorecompat: Wrap the RtlGenRandom (aka SystemFunction036) function

2022-10-04 Thread LIU Hao
don't mind adding them, though.) -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH v3 04/10] winstorecompat: Wrap the RtlGenRandom (aka SystemFunction036) function

2022-09-29 Thread LIU Hao
36))(PVOID RandomBuffer, ULONG RandomBufferLength) __asm__("__imp__SystemFunction036") = SystemFunction036; +#endif Is the asm name for non-x86 correct? I would expect it to be `__imp_SystemFunction036`. The others look good to me. -- Best regards, LIU Hao OpenPGP_signature Descript

Re: [Mingw-w64-public] [PATCH v2 3/4] crt: Provide the stack protector functions/variables in libmingwex too

2022-09-26 Thread LIU Hao
()` may be taken as a fallback. The latter never fails since Windows XP. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourc

Re: [Mingw-w64-public] [PATCH] headers: Remove duplicate API declarations in oleauto.h

2022-09-24 Thread LIU Hao
-headers/include/oleauto.h | 3 --- 1 file changed, 3 deletions(-) Thanks for the patch. Pushed. -- Best regards, LIU Hao fdfd OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add new symbols in winnt.h

2022-09-19 Thread LIU Hao
suspect it's acceptable anyway. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH 1/2] crt: Add sens and sensapi in lib32

2022-09-16 Thread LIU Hao
. Pushed to master now. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH 2/3] crt: Provide the stack protector functions/variables in libmingwex too

2022-09-14 Thread LIU Hao
, if really something fatal happens? Do they exit or report a fatal error? Depending on the behavior, we may have to implement this function specially in the winstorecompat library. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH 1/3] crt: Implement a subset of libssp functions to libmingwex

2022-09-14 Thread LIU Hao
I just had a quick glance here and will look into others later. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge

Re: [Mingw-w64-public] [PATCH] headers: Remove _GNU_SOURCE ifdefs around mempcpy fortification

2022-09-14 Thread LIU Hao
`_GNU_SOURCE` should be correct. However, I suggest we add a guard for the other (the one without buffer overflow checking) to be more standard-compliant. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] invalid O_WRONLY read sets errno=EACCES instead of EBADF

2022-09-13 Thread LIU Hao
. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] invalid O_WRONLY read sets errno=EACCES instead of EBADF

2022-09-12 Thread LIU Hao
在 2022/9/11 17:20, LIU Hao 写道: This is an ancient version though; I think I can check a more recent version a few days later on my XPS. Got the same erroneous result: ``` lh_mouse@lhmouse-xps ~/Desktop $ x86_64-w64-mingw32-gcc main.c lh_mouse@lhmouse-xps ~/Desktop $ ./a.exe

Re: [Mingw-w64-public] invalid O_WRONLY read sets errno=EACCES instead of EBADF

2022-09-11 Thread LIU Hao
wine-4.0 (Debian 4.0-2) ``` This is an ancient version though; I think I can check a more recent version a few days later on my XPS. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing

Re: [Mingw-w64-public] [PATCH] headers/time: Add `__MINGW_STRFTIME_FORMAT` for `strftime()`

2022-08-31 Thread LIU Hao
Yeah it's probably the most reasonable compromise. The patch LGTM then! Thanks. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net

Re: [Mingw-w64-public] [PATCH] headers/time: Add `__MINGW_STRFTIME_FORMAT` for `strftime()`

2022-08-30 Thread LIU Hao
4.1 [1] which should be very very old. Specifying `gnu_strftime` at least allows `%T`. I am afraid there are GNU specifiers that UCRT doesn't support, but there seems to be no alternative. [1] https://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Function-Attributes.html -- Best regards, LIU Hao

[Mingw-w64-public] [PATCH] headers/time: Add `__MINGW_STRFTIME_FORMAT` for `strftime()`

2022-08-30 Thread LIU Hao
-- Best regards, LIU Hao From 0f727bf8d26baa7c516dd519082173c5d6e7e1b4 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Tue, 30 Aug 2022 23:42:59 +0800 Subject: [PATCH] headers/time: Add `__MINGW_STRFTIME_FORMAT` for `strftime()` This is exactly what we have done with `__MINGW_PRINTF_FORMAT

Re: [Mingw-w64-public] [PATCH 2/2] crt: Move the strtof() function from libmingwex.a to libmsvcr*.a

2022-08-30 Thread LIU Hao
Storsjö --- mingw-w64-crt/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) LGTM. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add static keywork to the inline function of _COM_SMARTPTR_TYPEDEF macro

2022-08-29 Thread LIU Hao
)); typedef SomeInterfacePtr SomeInterfacePtr_; class SomeInterface : public IUnknown { typedef SomeInterfacePtr_ SomeInterfacePtr; }; ``` [1] https://github.com/reactos/reactos/blob/3fa57b8ff7fcee47b8e2ed869aecaf4515603f3f/sdk/include/crt/comdef.h#L177 -- Best regards, LIU

Re: [Mingw-w64-public] strftime and %T

2022-08-26 Thread LIU Hao
pports it, then it should definitely be preferred. As for the warning about unknown format specifiers, probably we should add `__attribute__((__gnu_strftime__))` for UCRT. I think I can do that later. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital sig

Re: [Mingw-w64-public] #943 __mingw_printf() does not print non-ASCII chars correctly.

2022-08-26 Thread LIU Hao
s other than 932 should have produced gibberish, shouldn't they? - Conclusion The above concludes that there are inconsistencies in UCRT (and probably MSVCRT too), which I think is not worth working around. Consequently, use of wide strings with stdio functions should be considered dis

Re: [Mingw-w64-public] [PATCH] headers: Fix PENUM_PAGE_FILE_CALLBACK declaration for x86

2022-08-25 Thread LIU Hao
. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add static keywork to the inline function of _COM_SMARTPTR_TYPEDEF macro

2022-08-16 Thread LIU Hao
Please try the attached patch. This is only a draft and contains some bad formatting. -- Best regards, LIU Hao From a3c58b63fe49883797ed2a505e82d85455f28913 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Wed, 17 Aug 2022 09:23:16 +0800 Subject: [PATCH] make `_COM_SMARTPTR_TYPEDEF` work inside

Re: [Mingw-w64-public] [PATCH] headers: Add static keywork to the inline function of _COM_SMARTPTR_TYPEDEF macro

2022-08-16 Thread LIU Hao
which makes `my_ptr` denote distinct types. Hence, the two `int value(my_ptr)` declarations effectively declare two distinct functions; the one being declared in 'main.cpp' never gets defined. Removing the `static` in front of `inline` will allow this example to link without errors. -- B

Re: [Mingw-w64-public] [PATCH] crt: Move mscms to lib-common

2022-08-16 Thread LIU Hao
for the patch. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add static keywork to the inline function of _COM_SMARTPTR_TYPEDEF macro

2022-08-15 Thread LIU Hao
在 2022/8/16 12:37, LIU Hao 写道: Is it really correct to invoke `_COM_SMARTPTR_TYPEDEF` inside a class? This patch should be necessary then, but, is it acceptable to move the offending invocation outside its referenced class? Note, the `__*_IID_getter` function is used as a template argument

Re: [Mingw-w64-public] [PATCH] headers: Add static keywork to the inline function of _COM_SMARTPTR_TYPEDEF macro

2022-08-15 Thread LIU Hao
should be necessary then, but, is it acceptable to move the offending invocation outside its referenced class? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add vidcap.idl

2022-08-15 Thread LIU Hao
/Makefile.am| 1 + mingw-w64-headers/include/vidcap.idl | 457 +++ 2 files changed, 458 insertions(+) create mode 100644 mingw-w64-headers/include/vidcap.idl Thanks for the patch. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] [PATCH] crt: Modernize the NAN constants returned by the nan*() functions

2022-08-12 Thread LIU Hao
2] https://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] std::filesystem::copy_options::overwrite_existing & similar still do not work.

2022-08-10 Thread LIU Hao
.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions?view=msvc-170#generic-text-routine-mappings -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@l

Re: [Mingw-w64-public] #943 __mingw_printf() does not print non-ASCII chars correctly.

2022-08-04 Thread LIU Hao
t. [1] https://en.cppreference.com/w/c/io/fwide -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] How to fix linking error due to missing IIDs from dbgeng?

2022-08-01 Thread LIU Hao
__CRT_UUID_DECL for all the missing entries Yes, looks like the `__CRT_UUID_DECL` is missing completely; it's not because of failure of inlining. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing

Re: [Mingw-w64-public] [PATCH] include/ws2tcpip: Rectify `addrinfoexA` and `addrinfoexW`

2022-08-01 Thread LIU Hao
be noted that the A & W structs contain correct tags for the `ai_next` members, which declare new types themselves, and would have caused errors if they were used anyway. This deviation had never been noticed probably because few people used them, I suspect. -- Best regards, LIU

Re: [Mingw-w64-public] [PATCH] include/ws2tcpip: Rectify `addrinfoexA` and `addrinfoexW`

2022-08-01 Thread LIU Hao
在 2022-07-23 22:15, LIU Hao 写道: 0001-include-ws2tcpip-Rectify-addrinfoexA-and-addrinfoexW.patch From 5f09ab25221dd8ad8459bc560168ce83c70f93c1 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 23 Jul 2022 22:09:21 +0800 Subject: [PATCH] include/ws2tcpip: Rectify `addrinfoexA` and `addrinfoexW

Re: [Mingw-w64-public] How to fix error with macros in d3d12?

2022-07-25 Thread LIU Hao
. If this function should be callable from C, then `__inline__` should be preferred, for compatibility with C89... or is it pure C++? In practice, I think `static __inline__` suffices almost everywhere. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] headers: fix declarations in IDirectXVideoDecoderService

2022-07-24 Thread LIU Hao
make make distclean git add include git commit -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists

Re: [Mingw-w64-public] [PATCH] headers: fix declarations in IDirectXVideoDecoderService

2022-07-23 Thread LIU Hao
在 2022-07-24 00:34, Oleg Tolmatcev 写道: Done. Thanks. Pushed to master. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https

Re: [Mingw-w64-public] [PATCH] headers: fix declarations in IDirectXVideoDecoderService

2022-07-23 Thread LIU Hao
在 2022-07-24 00:16, Oleg Tolmatcev 写道: Like this? Am Sa., 23. Juli 2022 um 16:18 Uhr schrieb LIU Hao : Hi, please attach the patch as a plain text file. Thanks. The changes look good; but please remove the hunks for 'dxva2api.h' as it is generated from the IDL and should not be updated

Re: [Mingw-w64-public] #943 __mingw_printf() does not print non-ASCII chars correctly.

2022-07-23 Thread LIU Hao
== 0) as requested earlier, there could be thread safety issues, so proper locking is necessary. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: fix declarations in IDirectXVideoDecoderService

2022-07-23 Thread LIU Hao
Hi, please attach the patch as a plain text file. Thanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists

[Mingw-w64-public] [PATCH] include/ws2tcpip: Rectify `addrinfoexA` and `addrinfoexW`

2022-07-23 Thread LIU Hao
-- Best regards, LIU Hao From 5f09ab25221dd8ad8459bc560168ce83c70f93c1 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 23 Jul 2022 22:09:21 +0800 Subject: [PATCH] include/ws2tcpip: Rectify `addrinfoexA` and `addrinfoexW` We should use the same identifiers as in Windows SDK, where the `ex

Re: [Mingw-w64-public] How to fix linking error due to missing IIDs from dbgeng?

2022-07-18 Thread LIU Hao
ould be a `__CRT_UUID_DECL` for this type, but it is missing. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/list

Re: [Mingw-w64-public] #943 __mingw_printf() does not print non-ASCII chars correctly.

2022-07-17 Thread LIU Hao
: * b44ee87191c308e95869e72d7efe4df33fcd3e59 * 08fd589f4420f6a643eefc260e02194dcf8ddc95 * bceadc54d8f32b3f14c69074892e2718eac08e3b -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] x64 longjmp and -fno-asynchronous-unwind-tables

2022-07-15 Thread LIU Hao
在 2022-07-15 01:18, Ozkan Sezer 写道: If there are no objections, I will apply the patches to v5.x and v6.x branches tomorrow. There is no objection on my side. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] #943 __mingw_printf() does not print non-ASCII chars correctly.

2022-07-13 Thread LIU Hao
of use of `fwrite()` instead of `fputc()` but, it doesn't work with wide characters. Also 'mingw_workaround.c' is a bad name as it's not descriptive enough. And please do not attach generated contents in patches. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] x64 longjmp and -fno-asynchronous-unwind-tables

2022-07-13 Thread LIU Hao
`setjmp()` with something that does not unwind the stack? Looks so but it was not I that authored the patches, so... -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] x64 longjmp and -fno-asynchronous-unwind-tables

2022-07-11 Thread LIU Hao
into this? (And yes I know that the v5.x branch is old but the toolchain has been available.) Is it because that `longjmp()` unwinds the stack on Windows x64, but not on x86 or other operating systems? -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] headers: Add IcmpSendEcho2Ex declaration in icmpapi.h

2022-07-11 Thread LIU Hao
for the patches. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Several declarations absent from MinGW

2022-07-10 Thread LIU Hao
out is probably because they haven't been available since MSVCR120. We have some inline wrappers with a leading underscore and taking a locale argument (for example we have `_vfscanf_s_l`); not sure whether they may satisfy your needs though. -- Best regards, LIU Hao OpenPGP_signature

Re: [Mingw-w64-public] #943 __mingw_printf() does not print non-ASCII chars correctly.

2022-07-07 Thread LIU Hao
ion to C++ wide streams, should not be used to read or write non-ASCII characters; they have never been fully functional. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-pub

Re: [Mingw-w64-public] Trying to build dll wih mingw produces tls callbacks

2022-07-07 Thread LIU Hao
--disable-lib32 make -j8 make sudo make install You have to figure out the prefix (the parent directory of where headers and libraries are installed) yourself. On Debian, Ubuntu and Mint it is `/usr/x86_64-w64-mingw32`. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] headers: Add appmodel.h and minappmodel.h

2022-07-07 Thread LIU Hao
for the patch. Pushed to master. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Trying to build dll wih mingw produces tls callbacks

2022-07-06 Thread LIU Hao
). -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Trying to build dll wih mingw produces tls callbacks

2022-07-06 Thread LIU Hao
it is not possible to get rid of such references without creating a custom startup file. On Windows XP `LoadLibrary()` fails to load a DLL with a non-zero TLS table [1]. This is a known limitation. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] -Warray-bounds warning for __readfsdword and __readgsqword

2022-06-29 Thread LIU Hao
id) __attribute__((__const__)); -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] -Warray-bounds warning for __readfsdword and __readgsqword

2022-06-29 Thread LIU Hao
:= *(unsigned long*) 42 which itself is indeed dereferencing a strange pointer. Probably GCC should warn about only pointers to known data. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public

Re: [Mingw-w64-public] -Warray-bounds warning for __readfsdword and __readgsqword

2022-06-29 Thread LIU Hao
st.c:5:53: error: dereference of pointer to incomplete type 'unsigned long[]' Probably some conditional macros are necessary. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Ming

Re: [Mingw-w64-public] [PATCH] math: Improve precision of pow(x, y) with integer y < 0

2022-06-28 Thread LIU Hao
working on this. I have been busy for a couple of weeks; hardly had any free time other than catching up on some sleep. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

Re: [Mingw-w64-public] Can static libraries (object files) compiled for MSVCRT vs UCRT be mixed?

2022-06-23 Thread LIU Hao
but if any, they of course don't expect removal of it. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo

Re: [Mingw-w64-public] [PATCH] headers: Fix parameter types in oleauto.h

2022-06-20 Thread LIU Hao
/oleauto.h | 38 ++--- 1 file changed, 19 insertions(+), 19 deletions(-) Thanks. Patch looks good to me. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing

Re: [Mingw-w64-public] [PATCH] headers: Add new symbols in winnt.h

2022-06-16 Thread LIU Hao
在 2022-06-16 00:12, Biswapriyo Nath 写道: OK. Patch updated. Thanks. Pushed to master. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net

Re: [Mingw-w64-public] mingw-w64 v10.0.0 FTBS for 32-bit gcc 9.5.0 msvcrt Windows 10 Pro w/MSYS2

2022-06-15 Thread LIU Hao
/mingw32.h'. If after `-lmoldname -lmingwex -lmsvcrt` there is no `-lkernel32`, you probably need the attached patch. -- Best regards, LIU Hao From 850533ab160ef40eccfd039e1e3b138cf26e76b8 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Sat, 30 May 2020 03:53:16 + S

Re: [Mingw-w64-public] [PATCH] headers: Add new symbols in winnt.h

2022-06-15 Thread LIU Hao
s good to me, except this one: On 64-bit MSYS2 and Cygwin `long` is 64 bits, so instead of `1UL` we have to write `__MSABI_LONG(1U)` here, which expands to an `unsigned int` there. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digit

Re: [Mingw-w64-public] [PATCH] unknownbase.idl: Declare IUnknown proxy and stubs in C variant as well.

2022-06-14 Thread LIU Hao
在 2022/6/14 00:33, Jacek Caban 写道: Signed-off-by: Jacek Caban ---  mingw-w64-headers/include/unknwnbase.idl | 12 ++--  1 file changed, 6 insertions(+), 6 deletions(-) LGTM. THanks. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] fix pow() floating point imprecision

2022-06-14 Thread LIU Hao
0 pow = 0x1.12e0be826d699p-30 powq = 0x1.12e0be826d694b2e62d01511f12ap-30 ``` which is absolutely not desired. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Ming

Re: [Mingw-w64-public] fix pow() floating point imprecision

2022-06-14 Thread LIU Hao
2) = 0x1.0be7ef89a5262p-75 (1/x)^2 = 0x1.0be7ef89a5261p-75 exact= 0x1.0be7ef89a5261607a8abf8991a41p-75 ``` It's actually the square of reciprocal that is more close to the quadruple value, than the reciprocal of square. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___

Re: [Mingw-w64-public] fix pow() floating point imprecision

2022-06-13 Thread LIU Hao
some time to look into it. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] How to fix error with macros in d3d12?

2022-06-11 Thread LIU Hao
' with MSVC? If so I imagine we should find a solution that allows them. Yes, unfortunately. I don't think there is a solution. `extern inline` and `inline` are not equivalent in C. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] How to fix error with macros in d3d12?

2022-06-11 Thread LIU Hao
; or, if that is not an option, `static __inline__` might be a better alternative. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net

Re: [Mingw-w64-public] fix pow() floating point imprecision

2022-06-07 Thread LIU Hao
y = y & 1; | ^ -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] bug #864: _ftelli64 returns wrong values with MinGW-w64 32-bit

2022-06-06 Thread LIU Hao
在 2022-06-06 22:07, Ozkan Sezer 写道: On 6/6/22, LIU Hao wrote: 在 2022-06-06 11:01, Ozkan Sezer 写道: This is a curious one: https://sourceforge.net/p/mingw-w64/bugs/864/ I just tried compiling and running the 'crt_ftell.c' with latest mingw-w64 and GCC 12, on both Windows 10 and Windows 7 x64

Re: [Mingw-w64-public] bug #864: _ftelli64 returns wrong values with MinGW-w64 32-bit

2022-06-06 Thread LIU Hao
, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers/crt: Add tmpfile_s delcaration

2022-06-05 Thread LIU Hao
--- mingw-w64-headers/crt/sec_api/stdio_s.h | 2 ++ 1 file changed, 2 insertions(+) Thanks for the patch. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] lrint on x64

2022-06-05 Thread LIU Hao
在 2022-06-05 19:30, Ozkan Sezer 写道: On 6/5/22, LIU Hao wrote: 在 2022-06-03 22:03, Ozkan Sezer 写道: A quick x64 build ran under win10 yielded the same results. As far as I can tell, `CVTSD2SI` should be preferred to `FISTP` for `float` and `double`. The X87 implementation was added in 2007

Re: [Mingw-w64-public] [PATCH] crt: Add new APIs in hyperv import libs

2022-06-05 Thread LIU Hao
/computecore.def| 4 mingw-w64-crt/lib-common/computenetwork.def | 1 + 2 files changed, 5 insertions(+) Thanks. This patch looks good to me. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] lrint on x64

2022-06-05 Thread LIU Hao
在 2022-06-03 22:03, Ozkan Sezer 写道: A quick x64 build ran under win10 yielded the same results. As far as I can tell, `CVTSD2SI` should be preferred to `FISTP` for `float` and `double`. The X87 implementation was added in 2007 and has not been updated since ever. -- Best regards, LIU Hao

<    1   2   3   4   5   6   7   8   9   10   >