logo       

Re: Q&D implementation of dlfunc(): msg#00034

Subject: Re: Q&D implementation of dlfunc()
On Tue, May 28, 2002 at 08:32:35PM -0700, John Polstra wrote:
> Garrett, your patch looks fine to me.  I do agree with Tony, though,
> that it would be better to use a unique struct as the argument.
> Actually I think I'd prefer a pointer to the unique struct, but it
> doesn't really make any difference.

It does -- consider the following:

        void *p = malloc(10);
        dlfunc(NULL, "free")(p);

Tony.
-- 
f.a.n.finch <dot@xxxxxxxx> http://dotat.at/
SOUTHEAST ICELAND: EAST OR SOUTHEAST 4 OR 5, OCCASIONALLY 6 LATER. RAIN OR
SHOWERS. MODERATE, OCCASIONALLY POOR.

To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-standards" in the body of the message



<Prev in Thread] Current Thread [Next in Thread>