Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread MRAB
On 02/10/2013 12:28, Robin Becker wrote: On 02/10/2013 11:49, Dave Angel wrote: conditional string or "" then MSVC 9 seems to be ok with it. > MSVC and other compilers do not not see eye to eye on the preprocessor semantics. I no longer use MSVC so I can't experiment. I can only try to recall

Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread Robin Becker
On 02/10/2013 13:05, Dave Angel wrote: On 2/10/2013 07:28, Robin Becker wrote: The actual is this code from _renderPM.c https://bitbucket.org/rptlab/reportlab/src/fa65fe72b6c2aaecb7747bf14884adb996d8e87f/src/rl_addons/renderPM/_renderPM.c?at=default at the end of the lines etc etc

Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread Dave Angel
On 2/10/2013 07:28, Robin Becker wrote: > The actual is this code from _renderPM.c > > https://bitbucket.org/rptlab/reportlab/src/fa65fe72b6c2aaecb7747bf14884adb996d8e87f/src/rl_addons/renderPM/_renderPM.c?at=default > > PyDoc_STRVAR(__DOC__, > "Helper extension module for renderPM.\n\ > \n\ > In

Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread Robin Becker
On 02/10/2013 11:49, Dave Angel wrote: conditional string or "" then MSVC 9 seems to be ok with it. > MSVC and other compilers do not not see eye to eye on the preprocessor semantics. I no longer use MSVC so I can't experiment. I can only try to recall extensive manipulation two decades ago.

Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread Dave Angel
On 2/10/2013 06:01, Robin Becker wrote: > On 02/10/2013 10:00, Robin Becker wrote: >> On 01/10/2013 18:26, MRAB wrote: >>> On 01/10/2013 17:41, Robin Becker wrote: >> .. >>> I've tried it in a minimal console program, and it seems to work for me. >>> >> thanks for the test. I thought

Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread Robin Becker
On 02/10/2013 10:00, Robin Becker wrote: On 01/10/2013 18:26, MRAB wrote: On 01/10/2013 17:41, Robin Becker wrote: .. I've tried it in a minimal console program, and it seems to work for me. thanks for the test. I thought this might be an issue with the macro call argument being sp

Re: PyDoc_STRVAR error in msvc compile

2013-10-02 Thread Robin Becker
On 01/10/2013 18:26, MRAB wrote: On 01/10/2013 17:41, Robin Becker wrote: .. I've tried it in a minimal console program, and it seems to work for me. thanks for the test. I thought this might be an issue with the macro call argument being spread out over several lines, but since you

Re: PyDoc_STRVAR error in msvc compile

2013-10-01 Thread MRAB
On 01/10/2013 17:41, Robin Becker wrote: I'm trying to port C code that compiles under 2.7 to 3.3; the intention is to make things work under both. I used to use raw strings for the module documentation, but my porting guide suggests that I should be using PyDoc_STRVAR. That works for me using

PyDoc_STRVAR error in msvc compile

2013-10-01 Thread Robin Becker
I'm trying to port C code that compiles under 2.7 to 3.3; the intention is to make things work under both. I used to use raw strings for the module documentation, but my porting guide suggests that I should be using PyDoc_STRVAR. That works for me using linux, but I'm getting errors under win