Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #55339 > unrolled thread
| Started by | Robin Becker <robin@reportlab.com> |
|---|---|
| First post | 2013-10-02 14:46 +0100 |
| Last post | 2013-10-02 14:46 +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.
Re: PyDoc_STRVAR error in msvc compile Robin Becker <robin@reportlab.com> - 2013-10-02 14:46 +0100
| From | Robin Becker <robin@reportlab.com> |
|---|---|
| Date | 2013-10-02 14:46 +0100 |
| Subject | Re: PyDoc_STRVAR error in msvc compile |
| Message-ID | <mailman.628.1380721610.18130.python-list@python.org> |
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. > > Unfortunately, bitbucket doesn't properly support highlighting either, > so I had to copy/paste it into an editor to check for extra spaces. > That's apparently not your problem. > > What I didn't understand before is that PyDoc_STRVAR is a macro, not a > function. And inside the macro's parameters, you're trying to define an > #ifdef. i don't think Microsoft supports that. > > If I'm right, you need to separate out the conditional string > concatenation from the macro expansion. it's been too long for me even > to remember the correct way to do that. There are some legal tricks you > can use. Maybe search the internet for "preprocessor stringizing". . that's what I have done; it seems to work OK for MSVC and I'll have to check later if it breaks GCC or if I need to do token pasting or something. -- Robin Becker
Back to top | Article view | comp.lang.python
csiph-web