On 05/19/2010 08:23 AM, John Plevyak wrote:
I propose that we change

ink64 ->  int64
inku64 ->  uint64
ink32 ->  int32
inku32 ->  uint32
ink16 ->  int16
inku16 ->  uint16
ink8 ->  int8
inku8 ->  uint8

because

1) we decided to move from ink ->  ts
2) tsu64 doesn't scan like an integer
3) int64_t is long on linux which is incompatible with %lld the
    only standard and universally compatible way to read/write a 64-bit number
4) int64 is similar but not the same as ink64_t and it scans well
5) I tried it and it works!

Would this be a name change only (in our ink_port.h file)? Or do we pull in int64 etc from some standard (ANSI / POSIX include file)? My stdint.h only has the int64_t etc. definitions.

Also, if we do this, shouldn't we also change

#define INKU64_MAX (18446744073709551615ULL)
#define INK64_MAX (9223372036854775807LL)
#define INK64_MIN (-INK64_MAX -1LL)
#define INKU32_MAX (4294967295U)
#define INK32_MAX (2147483647)
#define INK32_MIN (-2147483647-1)


I believe there are similar defines available in stdint.h. (Fwiw, my 64-bit changes in the HttpSM uses INK64_MAX in various places).

That much said, +1 on eliminating our own INK defines, and use standard definitions.

-- leif

Reply via email to