Re: [Mingw-w64-public] [PATCH 1/9] crt: exe: Enable per-thread locale if user asked for it

2025-05-09 Thread Pali Rohár
On Tuesday 06 May 2025 17:38:40 Martin Storsjö wrote: > On Tue, 6 May 2025, Martin Storsjö wrote: > > > On Thu, 17 Apr 2025, Pali Rohár wrote: > > > > > There is missing call _configthreadlocale(-1) in pre_c_init function. > > > Startup code from Visual C++ runtime is doing same thing. > > > > >

Re: [Mingw-w64-public] [PATCH] Always correctly #define NULL __null if available, like stddef.h

2025-05-09 Thread LIU Hao
在 2025-5-9 22:24, наб 写道: On Fri, May 09, 2025 at 10:31:38AM +0800, LIU Hao wrote: 在 2025-5-4 22:24, наб 写道: In C++ it's common to have `NULL` defined as `0`. This is not the case. I think I was a little overzealous to say that "C++11 <=> NULL=nullptr" (both C and C++ allow any "null-pointer co

Re: [Mingw-w64-public] [PATCH 6/9] crt: exe: Move mingw-w64 / gcc EXE runtime code into the guarded block

2025-05-09 Thread Pali Rohár
On Tuesday 06 May 2025 20:06:18 Martin Storsjö wrote: > On Thu, 17 Apr 2025, Pali Rohár wrote: > > > This will ensure that _pei386_runtime_relocator() is called as the first > > function and that all those runtime init code functions are called in > > guarded block which prevents duplicate code ex

Re: [Mingw-w64-public] [PATCH 3/9] crt: exe: Invoke gcc c++ constructors after msvc c++ constructors

2025-05-09 Thread Pali Rohár
On Tuesday 06 May 2025 19:59:31 Martin Storsjö wrote: > On Thu, 17 Apr 2025, Pali Rohár wrote: > > > Function __main() is function for executing gcc c++ constructors. Move it > > into guarded code which prevents duplicate code execution, after executing > > msvc c++ constructors (__xc_a-__xc_z cal

Re: [Mingw-w64-public] [PATCH 2/9] crt: exe: Inline pre_c_init() and pre_cpp_init() into _CRT_INIT()

2025-05-09 Thread Pali Rohár
On Tuesday 06 May 2025 19:58:15 Martin Storsjö wrote: > On Thu, 17 Apr 2025, Pali Rohár wrote: > > > This allows to remove the whole pre_c_init() and pre_cpp_init() functions > > and registration of __mingw_pcinit and __mingw_pcppinit hooks. > > > > Inlining the code allows to easily figure out i

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

2025-05-09 Thread LIU Hao
在 2025-5-9 14:03, Biswapriyo Nath 写道: From 1cb6f2db5d1575ca74eccff329bab05158736bb4 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Fri, 9 May 2025 06:02:17 + Subject: [PATCH] headers: Import httprequest.idl from wine Signed-off-by: Biswapriyo Nath --- mingw-w64-crt/libsrc/uuid.c