在 2026-10-23 14:58, Kirill Makurin 写道:
LIU Hao wrote:> 在 2026-10-17 19:19, Kirill Makurin 写道: >> Subject: [PATCH 03/21] winpthreads: rename misc.c -> winpthreads.c >> >> Likewise, rename misc.h -> winpthreads.h. >> >> With this change, winpthreads.h becomes library's "main" include file; >> ensure that each source file includes it directly or indirectly. > > I don't quite agree with this change. The 'main' include file should be pthread.h; and besides, this > isn't a public header that should be included indirectly, since it defines macros `likely`, `unlikely` > and `UNREACHABLE` which are more likely to clash with user code (I've seem them several times).Yes, it is internal header file and is _not_ included from any public header file. So it is "main" include file during the build, and so is included from any source file as it contains global definitions and declarations used during the build.So, I could clarify that it is "main" include file which contains global definitions used during the build.
I mean, why does it have to be renamed? Why shouldn't it be named 'globals.h' or 'utils.h', or just be left 'misc.h'?
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
