INN 2.5.1 release

Julien ÉLIE julien at trigofacile.com
Wed Sep 9 17:18:02 UTC 2009


Hi Russ,

> Autoconf should already be handling defining those types if the OS doesn't
> do it for us.

The problem that I believe the Doctor reports is that we have m4/int32.m4 which
only defines int32_t and uint32_t if need be.

I added calls to uint16_t variables for timecaf and timehash but they could
be defined nowhere.

I could add INN_TYPE_INT16_T in m4/int32.m4 to deal with that:

  checking size of short... 2
  checking for int16_t... yes
  checking for uint16_t... yes
  checking size of int... 4
  checking for int32_t... yes
  checking for uint32_t... yes

  /* Define to a 2-byte unsigned type if <inttypes.h> does not define. */
  #define uint16_t unsigned short

  /* Define to a 4-byte unsigned type if <inttypes.h> does not define. */
  #define uint32_t unsigned int

Maybe I could also add INN_TYPE_INT8_T and INN_TYPE_INT64_T at the same time.


Is it the right thing to do in order to support uint16_t?
Should I put everything in m4/int32.m4 or should I rename this file
to m4/inttypes.m4?

-- 
Julien ÉLIE

« -- Il t'arrive une tuile ?
  -- Oui, je ne peux pas payer mon ardoise. » 




More information about the inn-workers mailing list