Output to glibconfig.h typedefs for gintptr as the signed integer type
authorTor Lillqvist <tml@novell.com>
Wed, 30 Jul 2008 15:30:26 +0000 (15:30 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 30 Jul 2008 15:30:26 +0000 (15:30 +0000)
commit6eb6ee655e96a1b57e90e4b9e456461856f77ac5
tree4fd1852d6284a98bba6bda8ae5a83dcd2b550868
parent6d34fb9368a65cfc1e3b713161bf24a7d033a75f
Output to glibconfig.h typedefs for gintptr as the signed integer type

2008-07-28  Tor Lillqvist  <tml@novell.com>

* configure.in: Output to glibconfig.h typedefs for gintptr as the
signed integer type that can hold a pointer, and guintptr as the
corresponding unsigned type. These types are portable equivalents
to intptr_t and uintptr_t which are not available in all
compilers.

For all current platforms, they will presumably end up as the same
types as gssize and gsize, but in theory size_t can be smaller
than intptr_t. Also, the intended use case for gintptr and
guintptr is different from that of gssize and gsize. As the name
indicates, gintptr is for when one wants an integer type that can
hold a pointer, and gsize is for when one wants an integer type
that can hold the value of the sizeof operator.

svn path=/trunk/; revision=7272
ChangeLog
configure.in