Steven M. Schweda wrote:

> What seems (to me) to be needed in these cases is some macro or
> typedef which is an integer whose size is reliably the same as
> that of a pointer, which size_t is not.  

Hi Steve, Please take a look at your copy of stdint.h.  See if you have
a definition for the "intptr_t" and "uintptr_t" types.

The POSIX standard(*) says "The following type designates a signed
integer type with the property that any valid pointer to void can be
converted to this type, then converted back to a pointer to void, and
the result will compare equal to the original pointer: intptr_t."  Ditto
for uintptr_t, except that it is unsigned.

The standard also says that intptr_t and uintptr_t are required on
XSI-conformant systems; otherwise, they are optional. So you might have
to define _XSI_SOURCE to make their declarations visible.

It seems to me that this data type is just what you (and OpenSSL) are
looking for.  Hope this info helps.

(*) The POSIX-2008 standard is online at
http://pubs.opengroup.org/onlinepubs/9699919799/toc.htm.  You must
pre-register to view it, but the registration step carries no charge and
is simple to perform.

Thanks 
PG 
-- 
Paul Green, Senior Technical Consultant, Stratus Technologies. 

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to