This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: problem with macro expansion in GCC


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]