2016-09-18 4:03 GMT+03:00 Yong Bakos :
> On Sep 17, 2016, at 5:42 PM, Ursache Vladimir wrote:
>>
>> Hi,
>> On amd64 struct wl_display from wayland-client.c can shrink in size
>> from 320 bytes to 304 if two fields (last_error and id) are
>> rearranged. Compiles fine.
>
> I believe you mean last_er
I didn't try an ABI check (ever), I just spotted the padding while
browsing the source code out of curiosity.
As to struct protocol_error (from inside struct wl_display) I moved
the "id" field to avoid compiler padding:
from:
uint32_t
pointer
uint32_t
to:
uint32_t
uint32_t
pointer
On Sun, Se
On Sep 17, 2016, at 5:42 PM, Ursache Vladimir wrote:
>
> Hi,
> On amd64 struct wl_display from wayland-client.c can shrink in size
> from 320 bytes to 304 if two fields (last_error and id) are
> rearranged. Compiles fine.
I believe you mean last_error and protocol_error.
This will change the ABI
Hi,
On amd64 struct wl_display from wayland-client.c can shrink in size
from 320 bytes to 304 if two fields (last_error and id) are
rearranged. Compiles fine.
End result looks like this:
struct wl_display {
struct wl_proxy proxy;
struct wl_connection *connection;
/* When display get