This is the mail archive of the gcc-help@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: preprocessing directive with no new-line character


On 17/07/17 17:45, Martin Sebor wrote:
> I agree.  C requires non-empty source files to end in an unescaped
> new-line character.

I was thinking this too, but I thought - the compilation unit as seen by
the compiler will be correct, for there is a trailing newline once the
pre-processor directive has been removed by the pre-processor.

But I don't know how these things really work - it's just a
not-obviously-wrong line of thought.


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