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 21:22:45 -0200
- Subject: Re: [RFC] Ignore source code comments in scripts/check-installed-headers.sh
- References: <xny37ki493.fsf@greed.delorie.com>
DJ Delorie <dj@redhat.com> writes:
> Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> writes:
>> Or we could reuse the preprocessor to do that for us... ;-)
>
> No, because we *do* want to check for things like:
>
> #define ulong unsigned long
>
> ulong x;
With -fpreprocessed, we can still check for that:
:: test.h
::::
*** Obsolete types detected:
./test.h:#define ulong unsigned long
./test.h:ulong x;
--
Tulio Magno