From owner-freebsd-arch Sun Mar 24 9:10: 9 2002 Delivered-To: freebsd-arch@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 820A637B417; Sun, 24 Mar 2002 09:10:03 -0800 (PST) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id g2OHA2D92665; Sun, 24 Mar 2002 17:10:02 GMT (envelope-from mark@grimreaper.grondar.za) Received: from grimreaper (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.2/8.12.2) with ESMTP id g2OH9AXl056805; Sun, 24 Mar 2002 17:09:10 GMT (envelope-from mark@grimreaper.grondar.za) Message-Id: <200203241709.g2OH9AXl056805@grimreaper.grondar.org> To: obrien@FreeBSD.ORG Cc: arch@FreeBSD.ORG Subject: Re: Why isn't __progname declared in a header? References: <20020324084941.B26339@dragon.nuxi.com> In-Reply-To: <20020324084941.B26339@dragon.nuxi.com> ; from "David O'Brien" "Sun, 24 Mar 2002 08:49:41 PST." Date: Sun, 24 Mar 2002 17:09:10 +0000 From: Mark Murray Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Hmm. It is implemented in csu/*/crt[01].c, so how about > > csu/common/_progname.h? > > Why create a header for just one line that is easy to duplicate in the > only 4 places it is used? 1) To prevent it from diverging in the (currently only) 4 architectures that we have. 2) To coerce stronger type-checking in its implementation and external usage. M -- o Mark Murray \_ O.\_ Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message