Skip to content

bpo-20596: define a platform dependent Py_WCSTOK in Include/pyport.h,…#10286

Closed
erikjanss wants to merge 4 commits intopython:masterfrom
erikjanss:wcstok
Closed

bpo-20596: define a platform dependent Py_WCSTOK in Include/pyport.h,…#10286
erikjanss wants to merge 4 commits intopython:masterfrom
erikjanss:wcstok

Conversation

@erikjanss
Copy link
Contributor

@erikjanss erikjanss commented Nov 1, 2018

pull request based on the patch of Jeffry Armstrong on 2014-02-13,
but discriminating on MS_WINDOWS instead of specific compilers.

https://bugs.python.org/issue20596

Include/pyport.h Outdated
* we'll assume that a POSIX-like three-argument version is available.
*/
#if defined(MS_WINDOWS)
# define Py_WCSTOK(str, tok, state) wcstok_s(str, tok, state)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are public, but we don't want extenders to rely on them, we should make it _Py_WCSTOK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Py_WCSTOK was changed to _PyWCSTOK, and NEWS entry was added

@erikjanss
Copy link
Contributor Author

erikjanss commented May 19, 2019

The same issue was handled in bpo-35890

@erikjanss erikjanss closed this May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants