> From: Jeffrey Altman <[EMAIL PROTECTED]>
> 
> jaltman>   TYPE * API_blah(..., int app_will_free_object)
> jaltman>   #ifdef OLDAPP_COMPATIBILITY
> jaltman>   #define API_blah(....)  API_blah(...., X)
> jaltman>   #endif
> jaltman> 
> jaltman> where X is replaced by zero or one depending on the current behavior
> jaltman> for that function.
> 
> For correctness' sake:
> 
>   TYPE * _openssl_API_blah(..., int app_will_free_object)
>   #ifdef OLDAPP_COMPATIBILITY
>   #define API_blah(....)  _openssl_API_blah(...., X)
>   #else
>   #define API_blah(....)  _openssl_API_blah(...., !X)
>   #endif
> 

Actually, I intentionally did it the way that I specified.  The
compatibility #define should never be allowed when building the
library.  It should only be specified in applications.  And if those 
applications are linked to shared libraries we want the libraries to 
export 

   API_blah()

not
 
  _openssl_API_blah()



    Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
                 The Kermit Project * Columbia University
              612 West 115th St #716 * New York, NY * 10025
  http://www.kermit-project.org/k95.html * [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to