Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue #21: automatic calculation of alignment padding after lists #22

Merged
merged 1 commit into from
May 10, 2014

Conversation

aarzilli
Copy link
Contributor

@aarzilli aarzilli commented May 2, 2014

Changed xgbgen so that it puts alignment padding between lists so that the first element of every list is aligned to 4 bytes (if the size of the list element is more than 4 bytes) or to the size of the list's element struct.
This doesn't make any sense to me but it seems to be what xcb c_client.py does. Tests and examples work on my machine.
Requests are padded to 4 bytes, always.
I also added a test case for Issue #12.

@BurntSushi BurntSushi merged commit cdbc824 into BurntSushi:master May 10, 2014
@BurntSushi
Copy link
Owner

Wonderful! I'm happy to have this alignment stuff finally sorted out. Thank you very much! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants