Re: libdbus On ARM Integer Sizes Question

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Thu, 14 Mar 2019 12:09:53 +0000, Simon McVittie wrote:

> On Linux (and most Unix platforms, but not Windows), long is the same
> size as a pointer, so it's 32-bit on 32-bit architectures and 64-bit
> on 64-bit architectures.

Thanks for that.

> Historically there were some LLP64 Unix platforms that used the same
> type sizes as 64-bit Windows, but none of them are really relevant
> any more: all vaguely mainstream Unix platform developers (including
> Linux, *BSD, macOS etc.) seem to have been convinced by the reasoning
> in <http://www.unix.org/unix/version2/whatsnew/lp64_wp.html> that LP64
> is the easiest model to deal with.

Also C99 has stdint.h, so you can explicitly use type names like
“uint32_t” and “uint64_t” and always get the correct size.

But, yeah, Python ctypes doesn’t have these names ...
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.