Frank Balluffi <[EMAIL PROTECTED]>:
> Someone said:

>> The real fix would be to eliminate all
>> remaining non-ANSI constructs (that have still be left in because of
> > their implicit type conversion).

> What about calling a callback function? According to the original and ANSI
> versions of K and R, a pointer to a function should be de-referenced. For
> example:
> 
>     ret=(*cb)(...);
> 
> not
> 
>     ret=cb(...);

Why that?  These two calls mean exactly the same, in particular there
is no difference as far as the prototype (or lack thereof) is
concerned.  In fact, *all* function calls use a function pointer --
if you explicitly name a function or dereference a function pointer,
there's an implicit conversion into the appropriate pointer.

If you want to make really really really clear that 'cb' is a pointer,
you can even write

     ret = (*(*(*(*(*(*(*(*cb)))(...))))));

because each '*' is effectively ignored :-)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to