cvs commit: src/sys/sys errno.h

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sat Jul 2 16:47:37 PDT 2005


Lately Jeroen Ruigrok/asmodai <asmodai at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00001.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/commits/attachments/20050702/f44f0159/attachment-0022.obj>


More information about the Commits mailing list