[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Size of int vs. long vs. void * vs. Fortran INTEGER



On Thu, 2004-06-17 at 22:50 -0400, Kevin B. McCarty wrote:

> On 06/17/2004 08:34 PM, Goswin von Brederlow wrote:
> 
> > Normaly thats what your configure script is for.
> > 
> > Or just use <stdint.h> and then int32_t, int64_t, intptr_t, ....
> 
> Unfortunately Cernlib was largely written in the 1970's and 80's long
> before configure scripts came about... It uses Imake.  Also, most of it is
> in Fortran, and the authors apparently never considered the possibility
> that sizeof(void *) might one day be bigger than sizeof(int) on some
> machines; they do all kinds of horrible conversions between C pointers, C
> ints, Fortran INTEGERs, REALs, etc.
> 
About time it was updated then -- the work to bring it up to date and
make it truly portable with no stupid assumptions about type sizes would
be very useful.

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: