apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: svn commit: r412252 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite2.c
Date Wed, 07 Jun 2006 11:44:32 GMT
On Wed, Jun 07, 2006 at 09:32:23PM +1000, Bojan Smojver wrote:
> On Wed, 2006-06-07 at 12:29 +0100, Joe Orton wrote:
> 
> > Yup, exactly what I had in mind ;)
> 
> Cool. I have those little functions all over my own code, but I never
> actually thought about their usefulness until now. Well, you learn
> something new every day :-)

Another useful thing that can be done in general is to do e.g.

static apr_status_t blah(void *data)
{
   char *foo = data;
   the_function(foo)

since passing a variable of the right type to the function rather than 
just void * gives better type-safety.

joe

Mime
View raw message