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: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxx>
Date: Sun, 3 Jul 2005 00:44:40 +0200

-On [20050703 00:24], Andreas Hauser (andy@xxxxxxxxxxxxxxx) wrote:
>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.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/
http://www.tendra.org/   | http://www.in-nomine.org/
When others, out of envy, treat me badly with abuse, slander and the like,
may I suffer the defeat and offer the victory to others...



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