This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Mac line ending at EOF AND no newline warnings


Devang Patel <dpatel@apple.com> writes:

> GCC emits no-newline warning when it sees Mac line ending
> at the end of file. This is because _cpp_convert_input()
> automatically inserts '\n' at the end of buffer. This
> confuses _cpp_clean_line() when it sees '\r' and '\n' together.

I would rather this was dealt with in _cpp_convert_input - have it
check for a \r at EOF and not stick in an extra \n in that case.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]