[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

Jim Schneider report at bugs.python.org
Thu Jul 14 20:36:47 CEST 2011


Jim Schneider <jim.schneider at dataflux.com> added the comment:

The __W macro is needed because the token-pasting operator binds to the macro's argument immediately;  Having WCHAR(y) expand to __W(y) means that __W is passed WCHAR's argument after it's been macro-expanded.  Without the intermediate step, WCHAR(VERSION) becomes LVERSION.

As for the name - I have no objection to reasonable name changes.  I picked WCHAR because it converts its argument to a wchar_t *.

Finally - I am aware that the HP/UX C compiler is broken.  Unfortunately, I am required to work with it, and can neither replace it nor ignore it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12561>
_______________________________________


More information about the Python-bugs-list mailing list