Re: caddr_t removal Q

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Allen Briggs
Date: Tuesday, March 13, 2007 - 11:26 am

On Tue, Mar 13, 2007 at 06:05:45PM +0000, Christos Zoulas wrote:

I see.  "char *" is not a generic pointer, but it's indistinguishable
from a generic pointer in the cases that I've used caddr_t.  And better
for those uses than void * since you left out the "that it's safe to do
byte-wise arithmetic on" qualifier from my question...


It does look like caddr_t was used in a variety of ways.  It still seems
that it would make sense to have a standard type for a pointer that you
can do byte-wise arithmetic with.  This might prevent people from casting
pointers to integers or accidentally using pointers to the wrong type or
(in the best case?) just using a mix of char * or u_int8_t * or int8_t *
or unsigned char * or uchar *.

I appreciate your quick answer.

-allen

-- 
Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs@ninthwonder.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: caddr_t removal Q, Christos Zoulas, (Tue Mar 13, 11:05 am)
Re: caddr_t removal Q, glen mccready, (Tue Mar 13, 11:09 am)
Re: caddr_t removal Q, Christos Zoulas, (Tue Mar 13, 11:20 am)
Re: caddr_t removal Q, Allen Briggs, (Tue Mar 13, 11:26 am)
Re: caddr_t removal Q, der Mouse, (Tue Mar 13, 11:30 am)
Re: caddr_t removal Q, Jason Thorpe, (Tue Mar 13, 11:41 am)
Re: caddr_t removal Q, Allen Briggs, (Tue Mar 13, 12:08 pm)
Re: caddr_t removal Q, Bucky Katz, (Tue Mar 13, 12:50 pm)
Re: caddr_t removal Q, der Mouse, (Tue Mar 13, 12:55 pm)
Re: caddr_t removal Q, Allen Briggs, (Tue Mar 13, 1:05 pm)
re: caddr_t removal Q, matthew green, (Tue Mar 13, 1:23 pm)
Re: caddr_t removal Q, Allen Briggs, (Tue Mar 13, 1:25 pm)