Re: [Mingw-w64-public] [PATCH] crt: Use _TCHAR/_tmain/_tcslen in crtexe.c

2022-11-18 Thread LIU Hao
在 2022-11-17 23:01, Pali Rohár 写道: Usage of _TCHAR/_tmain/_tcslen simplify code as it avoids #ifdef. Note that custom mingw-w64 wbytelen() function is replaced by 'sizeof(_TCHAR) * (_tcslen() + 1)' construction which expands to 2*(wcslen()+1) for unicode build. --- mingw-w64-crt/crt/crtexe.c

[Mingw-w64-public] [PATCH] crt: Use _TCHAR/_tmain/_tcslen in crtexe.c

2022-11-17 Thread Pali Rohár
Usage of _TCHAR/_tmain/_tcslen simplify code as it avoids #ifdef. Note that custom mingw-w64 wbytelen() function is replaced by 'sizeof(_TCHAR) * (_tcslen() + 1)' construction which expands to 2*(wcslen()+1) for unicode build. --- mingw-w64-crt/crt/crtexe.c | 55