Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 2000 17:21:56 -0400 (EDT)
From:      Brian Fundakowski Feldman <green@FreeBSD.org>
To:        Warner Losh <imp@village.org>
Cc:        Bruce Evans <bde@zeta.org.au>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys mbuf.h 
Message-ID:  <Pine.BSF.4.21.0006041718390.543-100000@green.dyndns.org>
In-Reply-To: <200006041916.NAA52973@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Jun 2000, Warner Losh wrote:

> In message <Pine.BSF.4.21.0006041045370.543-100000@green.dyndns.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006041718390.543-100000>