I think whats happening here is that after the cmod_ cpp run the file
actually has more lines. Those cmod_REDEFINE statements expand into
several lines using a those new 'magic' defines.
The compile error itself seems to be triggered by the macros with
varargs, like STRFY(x...) in redefine.H. Will try to get rid of all
those from the CritBits.

arne


On Mon, 23 Jul 2012, H. William Welliver III wrote:

Hi Arne,

Thanks? that seems to have resolved that set of errors. Unfortunately, I get a 
new error. I'm not actually sure it has anything to do with CritBit in 
particular, but rather the templated CMOD features.

Here's the error:

Z:/pike-git/src/post_modules/CritBit/redefine.H(54) : error C2010: '.' : 
unexpected in macro formal parameter list
CL returned error code 2.
Compilation command was:
/Users/hww3/pike-git/bin/smartlink rntcl -I. 
-I/Users/hww3/pike-git/src/post_modules/CritBit 
-I/Users/hww3/pike-git/build/windows_xp-5.1.2600-i686 
-I/Users/hww3/pike-git/src   -IZ:/win32libs/include 
-I/Users/hww3/pike-git/build/windows_xp-5.1.2600-i686/bundles/include 
-DHAVE_CONFIG_H  -g -MD    -DDYNAMIC_MODULE -c 
/Users/hww3/pike-git/src/post_modules/CritBit/inttree.c -o inttree.o

Obviously, redefine.H doesn't have 54 lines, so I dumped the precompiler 
output. I started looking for the problem but quickly went cross-eyed. I'll try 
to take a closer look when I'm more fully rested. I put a copy of the file at 
the following URL if anyone wants to have a look.

http://bill.welliver.org/dist/pike/inttree.c.cppout

Bill


On Jul 23, 2012, at 3:15 AM, Arne Goedeke wrote:

hey bill,

i think i found the last culprit. hope that fixes it now.

arne



Reply via email to