This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: wny does GCC warn about "no newline at end of file"?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jonathan Wilson <jonwil at tpgi dot com dot au>
- Cc: gcc at gcc dot gnu dot org
- Date: 30 Nov 2003 05:40:28 +0100
- Subject: Re: wny does GCC warn about "no newline at end of file"?
- Organization: Integrable Solutions
- References: <3FC97371.2080100@tpgi.com.au>
Jonathan Wilson <jonwil@tpgi.com.au> writes:
| Is there a reason for this?
5.1.1.2 Translation phases
[...]
2. Each instance of a backslash character (\) immediately
followed by a new-line character is deleted, splicing
physical source lines to form logical source lines.
Only the last backslash on any physical source line
shall be eligible for being part of such a splice. A
source file that is not empty shall end in a new-line
character, which shall not be immediately preceded by
a backslash character before any such splicing takes
place.
-- Gaby