[guus@debian.org: Bug#290306: dbus-1-dev: silly typedefs]
Guus Sliepen
guus@sliepen.eu.org
Thu Jan 13 12:19:18 PST 2005
On Thu, Jan 13, 2005 at 02:31:37PM -0500, Havoc Pennington wrote:
> > It also introduces its own types, while there are perfectly well defined
> > and standardised types that do exactly what dbus needs in stdint.h
> > (int16_t, uint16_t, etc.) and stdbool.h (bool). At best DBus's
> > proprietary typedefs will confuse a programmer, and in the worst case it
> > will break on other architectures.
>
> These aren't portable enough yet. Programmers can assume that uint16_t
> is the same as dbus_uint16_t though.
What do you mean, they aren't portable enough? They are MADE to be
portable! You can check for the availability of these types with
autoconf. If you compile on a system that doesn't define them (I think
you have to look very hard for those), then you can always typedef them
yourself as a last resort. I have more trust in the standard header
files getting the typedefs right on all architectures than anyone else.
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus@sliepen.eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050113/e2ee4204/attachment-0001.pgp
More information about the dbus
mailing list