From owner-cvs-all Sun Jun 4 14:22:18 2000 Delivered-To: cvs-all@freebsd.org Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 5E8DB37B5DD; Sun, 4 Jun 2000 14:22:04 -0700 (PDT) (envelope-from green@FreeBSD.org) Date: Sun, 4 Jun 2000 17:21:56 -0400 (EDT) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Warner Losh Cc: Bruce Evans , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys mbuf.h In-Reply-To: <200006041916.NAA52973@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 4 Jun 2000, Warner Losh wrote: > In message Brian Fundakowski Feldman writes: > : The void * type was created to duplicate what was wanted in a > : generic address type (such as arithmetical semantics), while correctly > : demonstrating that the type contained was an "unknown". The caddr_t type > : should be phased out now since only an infinitesimal amount of compilers > : can't support void *, and the void * type itself gives better type > : checking then the caddr_t type definition. In all cases, void * is to > : be used instead of caddr_t in new code. > > Close. No ANSI C compiler will not support void *, otherwise it is too > broken to claim to be ANSI C, or c89 as it has come to be known as. Of course, but what Bruce pointed out was specifically supporting that aspect of the previous ANSI C. My thoughts were that there were many hundreds, if not thousands, of C compiler; almost every one of them supports the void * type. Even if it's an Old Testament compiler, it still probably supports a void pointer. > : How's my interpretation? Be gentle, because I don't have any actual > : knowledge to go on ;) > > I think your interpretation is sound. However, agressive migration of > caddr_t to void * will take some time, as we're finding out. It's, of course, not documented anywhere that this is _supposed_ to happen. Perhaps someone could write an explanation for the Doc Project? > Warner -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message