DragonFly BSD
DragonFly commits List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/sys errno.h


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sun, 3 Jul 2005 01:47:20 +0200

Lately Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxx> said:
> >Please keep it or come up with something better.
> 
> How about ANSI C?
> 
> "There shall be no more than one external definition for each identifier
> declared with internal linkage in a translation unit. Moreover, if an
> identifier declared with internal linkage is used in an expression (other
> than as a part of the operand of a sizeof operator), there shall be
> exactly one external definition for the identifier in the translation
> unit."
> 
> and
> 
> "If an identifier declared with external linkage is used in an expression
> (other than as part of the operand of a sizeof operator), somewhere in the
> entire program there shall be exactly one external definition for the
> identifier; otherwise, there shall be no more than one."
> 
> This external definition is already satisfied by including errno.h and
> SHOULD NOT be repeated.

I don't understand this. Could you please explain this in undestandable
English? Furthermore, what has this to do with my change?

Are you saying that we are no more ANSI C compatible? Or do you want to
say that ANSI C compliant programs already did compile before?

I doubt the first and can agree on the second. Unfortunately almost all
programs out there are not ANSI C compatible.

I think we should be strict what we produce but liberal what we support.

cheers
  simon

-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: pgp00001.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]