[RFC] Ignore source code comments in scripts/check-installed-headers.sh

Tulio Magno Quites Machado Filho tuliom@linux.ibm.com
Wed Jan 16 23:22:00 GMT 2019


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



More information about the Libc-alpha mailing list