Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55293 > unrolled thread

Re: PyDoc_STRVAR error in msvc compile

Started byRobin Becker <robin@reportlab.com>
First post2013-10-02 11:01 +0100
Last post2013-10-02 11:01 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: PyDoc_STRVAR error in msvc compile Robin Becker <robin@reportlab.com> - 2013-10-02 11:01 +0100

#55293 — Re: PyDoc_STRVAR error in msvc compile

FromRobin Becker <robin@reportlab.com>
Date2013-10-02 11:01 +0100
SubjectRe: PyDoc_STRVAR error in msvc compile
Message-ID<mailman.604.1380708105.18130.python-list@python.org>
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 spread out over several lines, but since your try works I'll dig
> deeper.
I used -E to get the pre-processor output and it shows my string constant ends 
up with the #ifdef inside it eg


   ......\n" #ifdef    ZZZZ "    ZZZZ stuff\n" #endif "\n\....

I looked for any obvious reason why that should happen, but cannot find anything.

if I remove the internal #ifdef and replace with a macro containing the 
conditional string or "" then MSVC 9 seems to be ok with it.

-- 
Robin Becker

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web