[RFC] Ignore source code comments in scripts/check-installed-headers.sh
Tulio Magno Quites Machado Filho
tuliom@linux.ibm.com
Thu Jan 17 00:14:00 GMT 2019
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
More information about the Libc-alpha
mailing list