This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: problem with macro expansion in GCC
- To: "Dhanabal Ekambaram" <Dhanabal at Zambeel dot com>,<gcc-help at gcc dot gnu dot org>
- Subject: RE: problem with macro expansion in GCC
- From: "Puneet Singhal" <puneet at opussoft dot com>
- Date: Tue, 6 Feb 2001 10:23:40 +0530
I tried it on my machine (solaris sparc 7 and gcc 2.95.2)
I get " y .ptr" instead of desirable "y.ptr".
Even I cant figure out why?
Puneet
>-----Original Message-----
>From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
>Behalf Of Dhanabal Ekambaram
>Sent: Tuesday, February 06, 2001 8:36 AM
>To: 'gcc-help@gcc.gnu.org'
>Subject: problem with macro expansion in GCC
>
>
>Hi,
>
>When I use
>
>#define XXX(N) N.ptr
>
>XXX(y) gets transformed to " y.ptr" instead of "y.ptr".
>I am not sure why i am getting this leading space in the expanded string.
>
>Can anybody help me to eliminate this problem?
>
>Thanks,
>dhanabal