[issue20596] Support for alternate wcstok syntax for Windows compilers
Jeffrey Armstrong
report at bugs.python.org
Wed Feb 12 02:03:33 CET 2014
Jeffrey Armstrong added the comment:
Based on the comments thus far, I've gone ahead with another version of this patch. Py_WCSTOK is now defined regardless of OS. For Windows, it chooses between MSVC's wcstok_s, Open Watcom's wcstok, and MinGW's/misc's two-argument wcstok. If the platform isn't Windows, it defaults to the POSIX-like three-argument wcstok (same as Open Watcom's, actually).
The wcstok functionality is really only used in three places: PC/getpathp.c, Modules/getpath.c, and Modules/main.c. This patch changes the calls to Py_WCSTOK in all cases.
I appreciate the consideration and input this patch is receiving.
----------
Added file: http://bugs.python.org/file34055/wcstok.default.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20596>
_______________________________________
More information about the Python-bugs-list
mailing list