[tpop3d-discuss] tpop3d v1.4.1pre4

Chris Lightfoot chris at ex-parrot.com
Mon, 25 Feb 2002 14:39:11 +0000


On Mon, Feb 25, 2002 at 03:21:19PM +0100, Prune wrote:
> Michael Klatsky wrote:
> >
> >gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -Wall
> >-Wstrict-prototypes -g -O2 -c auth_ldap.c
>
> the problem comes from the code line 336 :
> 
> #define GOT_ATTR(a)     if (ldapinfo.attr.##a && !a) { \
        [...]
>                                      ldapinfo.attr.##a, local_part, 
        [...]
> 
> chris : what does the "##a" exactly ?
> if you replace "##a" by "a", the error disepear....
> 
> for the other error, check the previous mail from chris.

Indeed. ## is for `token pasting' in the C preprocessor; I
had used it there in error. ``ldapinfo.attr . a'' works
fine. It's all in the C standard (not that I bothered to
read it...).

-- 
 Stupidity, the gift that keeps on giving    (seen on the internet)