Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'argument': 0.05; 'mrab': 0.05; 'output': 0.05; 'lines,': 0.07; 'string': 0.09; '#endif': 0.09; 'happen,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'cc:addr:python-list': 0.11; '#ifdef': 0.16; 'conditional': 0.16; 'dig': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'seems': 0.21; '>>>': 0.22; 'spread': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'replace': 0.24; 'test.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'program,': 0.31; 'constant': 0.31; 'minimal': 0.33; 'but': 0.35; 'shows': 0.36; 'thanks': 0.36; "i'll": 0.36; 'should': 0.36; 'being': 0.38; 'ends': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'remove': 0.60; 'anything.': 0.68; 'containing': 0.69; 'received:109': 0.72; 'obvious': 0.74; '..........': 0.84; 'sfxlen:4': 0.84; 'pfxlen:big': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robin Becker Subject: Re: PyDoc_STRVAR error in msvc compile Date: Wed, 02 Oct 2013 11:01:33 +0100 References: <524AFB57.9090500@chamonix.reportlab.co.uk> <524B05B7.4060906@mrabarnett.plus.com> <524BE099.8040004@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-Gmane-NNTP-Posting-Host: 109.174.168.73 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <524BE099.8040004@chamonix.reportlab.co.uk> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380708105 news.xs4all.nl 15928 [2001:888:2000:d::a6]:48590 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55293 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