gh-59705: Make PYTHREAD_NAME_MAXLEN macro private#128945
gh-59705: Make PYTHREAD_NAME_MAXLEN macro private#128945vstinner merged 2 commits intopython:mainfrom
Conversation
Rename PYTHREAD_NAME_MAXLEN to _PYTHREAD_NAME_MAXLEN.
|
@zooba: Is it what you expected? To make the macro private? |
|
I was thinking it didn't belong in pyconfig.h, but I didn't realise there was an autoconf switch picking values based on the platform. So yeah, this is fine by me, but if it already existed in public then we probably have to leave it there :( |
|
I would prefer to only declare this macro in the internal C API. But I have no idea how to do that :-( |
|
I would prefer most of pyconfig.h be internal API, but that's long history now. We just have to live with it. Having the |
Rename PYTHREAD_NAME_MAXLEN to _PYTHREAD_NAME_MAXLEN.
Rename PYTHREAD_NAME_MAXLEN to _PYTHREAD_NAME_MAXLEN.