[Python-Dev] Introducing the ``make check`` command

Isaac Morland ijmorlan at cs.uwaterloo.ca
Tue Mar 18 22:09:14 CET 2008

On Tue, 18 Mar 2008, Brett Cannon wrote:

> Lastly, I would like to have it strip trailing whitespace in C files.
> The only problem is that I don't know if removing trailing whitespace
> could possibly cause a problem or not. Anyone know?

I would be worried about the sequence backslash-space-newline.  Off the 
top of my head I can't see why that would occur in valid code, but 
dropping the space would give you an escaped newline which could be 
different from the original.  I'd be worried about some weird case related 
to macro expansion or definition.

http://gcc.gnu.org/onlinedocs/cppinternals/Lexer.html has some information 
related to the Gnu C preprocessor which may be relevant.

Have you considered also forcing Mac "\r" and DOS "\r\n" line endings to 
Unix "\n" style?

Isaac Morland			CSCF Web Guru
DC 2554C, x36650		WWW Software Specialist

More information about the Python-Dev mailing list