On Sat, 2 Jun 2001, Daniel A. Koepke wrote: >On Sat, 2 Jun 2001, George Greer wrote: > >> Actually, we can't do it because it would break 64-bit platforms. > >We can add an int32_t typedef/macro and have configure determine the size >of a 32-bit integer on the given platform. Sure, if you want to go through that much trouble for it. I was thinking along the lines of a simple 'int -> long' change. Anything is possible with varying degrees of ugliness. :) >I'd imagine that more recent versions of autoconf check <inttypes.h>, or >that the ISO standard specifies mandatory inclusion of <inttypes.h> >through <sys/types.h> or similar. I also imagine that by the time we get >around to anything beyond 64-bit architectures, compilers will be in >compliance with the standard and thus define int32_t for us. I'm rather fond of using all int32-style variables. Then you're not surprised by premature rollover and aren't wasteful. -- George Greer greerga@circlemud.org -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/05/01 PST