在 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
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