From owner-freebsd-hackers Thu Jan 6 6: 6:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mushi.colo.neosoft.com (mushi.colo.neosoft.com [206.109.6.82]) by hub.freebsd.org (Postfix) with SMTP id D852A15653 for ; Thu, 6 Jan 2000 06:06:06 -0800 (PST) (envelope-from peter@taronga.com) Received: (qmail 21584 invoked from network); 6 Jan 2000 14:06:05 -0000 Received: from citadel.in.taronga.com (10.0.0.43) by mushi.in.taronga.com with SMTP; 6 Jan 2000 14:06:05 -0000 Received: by citadel.in.taronga.com (Postfix, from userid 100) id 190E032306; Thu, 6 Jan 2000 08:05:45 -0600 (CST) To: hackers@freebsd.org Subject: Re: alt. C compiler X-Newsgroups: taronga.freebsd.hackers In-Reply-To: <200001051816.LAA20023@mt.sri.com> References: <20000105100716.A63545@cons.org><98339.947095734@monkeys.com>,<98339.947095734@monkeys.com> Organization: Cc: Message-Id: <20000106140545.190E032306@citadel.in.taronga.com> Date: Thu, 6 Jan 2000 08:05:45 -0600 (CST) From: peter@taronga.com (Peter da Silva) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Many system include files are *NOT* for public consumption. Then it would be nice if people didn't have to grovel around system include files to find things. > Also, >include files should never include other include files, as this messes >up dependencies. That just means you need a smarter dependancy generator, one that digs into include files for more #includes. On the Amiga, all include files were supposed to include all include files they needed, *and* they were supposed to guard themselves and any include files they included (the latter being an optimization to avoid extra includes on the slow disks and processors of 1985): #ifndef GRAPHICS_RASTPORT_H #ifndef GRAPHICS_BITMAP_H #include #endif ... #endif This worked very well in practice, and I think it's a shame that UNIX systems don't do this. I'm forever patching Linux software to add extra "#include " and the like. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message