Re: A simple parser



Richard Heathfield <invalid@xxxxxxxxxxxxxxx> writes:

Richard said:

Richard Heathfield <invalid@xxxxxxxxxxxxxxx> writes:

<snip>

Look, if there were some compelling reason for using C99 features, okay,
fair enough: "sorry for leaving Richard H (and most of the conforming
world) behind but these C99 features are just too useful to ignore, and
if that means a portability loss, so be it". But that does not appear to
be the case here.

This is not about C90 vs C99. This is about "works everywhere" vs "works
almost nowhere, unless you use a non-conforming compiler".

But since gcc supports a subset, and a useful subset, its hardly "almost
nowhere" is it?

When I invoke my gcc implementation in conforming mode, it (correctly)
diagnoses single-line comments, mixed code/decls, etc. If you are asking me
to turn off conforming mode, the answer is "No".

Which conforming mode?

I have the following command line options: Pretty strict it is too.

CFLAGS=-std=c99 -pedantic-errors -Wall -pthread -g $(DEBUGFLAGS)

Nothing particularly evil. OK, we know our target OS.

These features don't suddenly make it weaker C code - this is
comp.lang.c and C99 is the C language too. Like it, or more probably in
your case, not.

.



Relevant Pages

  • Re: Increment operator
    ... Richard Heathfield writes: ... The C Standard does actually require the implementation to choose ... between two alternatives on occasion. ... I have a pretty good idea about the nature of the conforming ...
    (comp.lang.c)
  • Re: A question regarding Q20.1 from c-faq.com
    ... it's held that such systems are not conforming. ... Wouldn't they break getc and friends? ... Richard Heathfield ...
    (comp.lang.c)
  • Re: A question regarding Q20.1 from c-faq.com
    ... Richard Heathfield wrote: ... it's held that such systems are not conforming. ... Wouldn't they break getc and friends? ...
    (comp.lang.c)
  • Re: reply the answer
    ... Richard Heathfield writes: ... Alas, it doesn't conform to the specification, which called for a C ... I believe the above is a conforming program. ... Keith Thompson kst-u@xxxxxxx ...
    (comp.lang.c)
  • Re: Segmentation Fault....
    ... CONFORMING TO WHAT????? ... The only ISO C Standard they support - i.e. C90. ... distributing C99 compilers. ... conforming mode clearly refers to C90. ...
    (comp.lang.c)