This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Supress newlines in gcc -E macro expansion?
- To: Todd Plessel <plessel dot todd at epamail dot epa dot gov>
- Subject: Re: Supress newlines in gcc -E macro expansion?
- From: Neil Booth <neilb at earthling dot net>
- Date: Wed, 15 Nov 2000 00:33:53 +0000
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <3A11D842.D1FA2D01@epa.gov>
What GCC / CPP are you using?
Neil.
Todd Plessel wrote:-
>
> $ cat macro_test.c
> #define MACRO(a,b) a and b
> MACRO( first,
> second )
> $ gcc -E macro_test.c
> # 1 "macro_test.c"
>
> first and
> second
> $ cc -E macro_test.c
> # 1 "macro_test.c"
> # 2
> first and second
> #ident "acomp: Sun WorkShop 6 2000/04/07 C 5.1"
>
> How can I get gcc -E to produce:
>
> first and second
>
> like cc -E?