On Fri, 10 Jul 2009 09:36:56 +0200, Philip Newton <philip.new...@gmail.com> wrote:
On Fri, Jul 10, 2009 at 09:25, Martin Ebourne<li...@ebourne.me.uk> wrote: > On Thu, 2009-07-09 at 20:20 -0400, Sean Conner wrote: >> 5 text/x-c >> 3 text/x-c++ > > file attempts to identify C versus C++? I imagine that it uses a highly sophisticated algorithm to distinguish between the two of them. Probably something along the lines of 'look for sequences of "//" and "::"'.
Hah, new sources for hate! in the C (not ++) world, // is allowed in C99 or full(propriatary) ANSI C compilers with an option to enable C99, but is is NOT allowed in C89 IMHO // should NEVER ever have been enabled for plain C it breaks way too many compilers that do not have or do not have by default C99 -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00, 11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/