This is the mail archive of the gcc@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]

Re: agressive fixincludes


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:

> IIRC, we fix the headers because -ansi stops gcc from handling //
> comments (?) and thus no platform with // in system headers would work
> with -ansi.

How common is that this actually does anything useful, even with
-ansi?  I.e. does it really happen that that people #include header
files containing //-comments in C programs?  I guess it can happen on
platforms where the vendor C compiler allows //-comments.  But is this
a real problem?

A side note:  The fix-includes replacement does not change //-comments
to /*-comments;  it completely removes them.  I don't think this is
a good idea.  The point is academic, however, if we agree to not "fix"
//-comments.

I think fixing //-comments may have made sense when //-comments
were not allowed in Gnu C;  now it seems (!) to make very little sense.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


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