[Python-Dev] Re: [Python-checkins] python/dist/src configure,1.279.6.17,1.279.6.18 configure.in,1.288.6.17,1.288.6.18
Jack Jansen
Jack.Jansen@oratrix.com
Tue, 25 Feb 2003 22:49:41 +0100
On dinsdag, feb 25, 2003, at 22:16 Europe/Amsterdam, Neal Norwitz wrote:
> On Sun, Feb 23, 2003 at 10:29:59PM -0500, Tim Peters wrote:
>> [from a checkin comment]
>>> Need to make sure that preprocessor directives start in first column.
>>> This means we can't indent code which has preprocessor directives,
>>> nor have a space between [ #include for example.
>>
>> [Neil Schemenauer]
>>> What does the C standard say about this? I'm curious.
>>
>> Spaces and horizontal tabs are fine before '#', and between '#' and
>> the
>> directive name; other kinds of whitespace are not OK in directive
>> lines (and
>> directive lines are special this way); sounds like we're catering to a
>> broken compiler here.
Before ANSI C said it is okay to have whitespace before the # most
compilers would
require the # to be in column one. And I've seen quite a couple of
sources that
had something like
#if __STDC__
#pragma or other ansi construct
#endif
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -