Message211123
I've included a revised patch that is far simpler than the others I've proposed. In this example, the preprocess checks for MSVC or Borland/Embarcadero and, if found, uses three-argument wcstok_s(). If neither is detected, it checks for MinGW and, if found, defaults to old two-argument wcstok(). Otherwise, it defaults to three-argument wcstok().
The default in this case effectively encompasses all other OSes where POSIX-like wcstok() is available. Additionally, it also allows this default for Open Watcom on Windows or any other theoretically possible compilers on Windows that may provide this more common wcstok() syntax. |
|
Date |
User |
Action |
Args |
2014-02-13 02:33:30 | Jeffrey.Armstrong | set | recipients:
+ Jeffrey.Armstrong, vstinner, serhiy.storchaka |
2014-02-13 02:33:30 | Jeffrey.Armstrong | set | messageid: <1392258810.47.0.5634307567.issue20596@psf.upfronthosting.co.za> |
2014-02-13 02:33:30 | Jeffrey.Armstrong | link | issue20596 messages |
2014-02-13 02:33:29 | Jeffrey.Armstrong | create | |
|