TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Philipp Thomas
from: Jonathan de Boyne Pollard
date: 1995-11-01 00:23:08
subject: C Set ++

ZZ>
  >                                                    But how
  > do you distinguish a K&R compiler from an ANSI compiler if
  > not by testing for __STDC__ ?
ZZ>

  One of the ironies of life is that a non-ISO conformant C compiler is
  perfectly entitled to define __STDC__, and even to define it with the
  value 1.  So testing __STDC__ is *not* a valid test for whether a
  compiler is a conformant ISO C implementation or not.

  Fortunately, all of the C/C++ compilers for OS/2 provide all of the
  ISO C standard headers, and support prototypes and `void'.  There
  should be *no* reason for conditional compilation to cope with K&R C
  constructs.

  If people are still writing code that conditionally compiles for K&R
  C, then they are wasting their time needlessly.  The lowest common
  denominator for any platform is ISO C.  For OS/2, I don't think that
  any pre-ISO C compilers are even available.

ZZ>
  >                        But tell that to the zillion people
  > writing free software mostly for the unix world :)
ZZ>

  Incidentally, the FSF software is not the most well written software
  in the world.  I've studied some of the sources, and some of the
  programs are *terribly* badly written.

  For certain you should not be using the FSF sources as an ISO C
  validation suite.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 3.00
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 704 713/888 800/1 7877/2809
@PATH: 440/4 141/209 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.