Re: CVS update: subversion/subversion/libsvn_subr svn_string.c
From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-14 08:40:35 CEST
On Fri, Oct 13, 2000 at 09:42:17PM -0500, Karl Fogel wrote:
Euh... not necessary. This is totally legit:
some_struct_type *foo = some_void_ptr;
There is an implicit cast in there.
What you cannot do, however, is take the address of a void* variable and
BAD: call_some_func(&void_ptr);
There are implicit casts to/from void ptrs in assignments and func calls.
[ example: fetch.c::fetch_file_reader() ... no cast on the userdata ]
Cheers,
-- Greg Stein, http://www.lyra.org/Received on Sat Oct 21 14:36:11 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.