[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: libdbus On ARM Integer Sizes Question
From:       Lawrence D'Oliveiro <ldo () geek-central ! gen ! nz>
Date:       2019-03-14 21:34:59
Message-ID: 20190315103459.142cfa88 () theon ! geek-central ! gen ! nz
[Download RAW message or body]

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
dbus@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic