This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Ignore source code comments in scripts/check-installed-headers.sh
- From: Tulio Magno Quites Machado Filho <tuliom at linux dot ibm dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: carlos at redhat dot com, libc-alpha at sourceware dot org
- Cc:
- Date: Wed, 16 Jan 2019 22:14:05 -0200
- Subject: Re: [RFC] Ignore source code comments in scripts/check-installed-headers.sh
- References: <xnva2oi3l2.fsf@greed.delorie.com>
DJ Delorie <dj@redhat.com> writes:
> I just tested this (gcc 4 and 7), and the #define didn't survive the
> trip...
>
> $ cat foo.c
> #define ulong unsigned long
>
> ulong x; /* don't use ulong */
>
> $ gcc -E -fpreprocessed foo.c
> # 3 "foo.c"
> ulong x;
Yep. You're right.
We're back to the regex. :-D
--
Tulio Magno