summaryrefslogtreecommitdiffstats
path: root/contrib/struct_endianess.py
Commit message (Collapse)AuthorAgeFilesLines
* add contrib/struct_endianess.pyNeels Hofmeyr2018-11-221-0/+369
In libosmocore (and likely elsewhere) we have scores of packed structs with sub-byte integer members that lack the necessary member reversal shims to be able to work on big endian architectures. Instead of manually editing each one of them and probably introduce errors in the process, this script handles the change automatically, and in the future allows us to verify correctness in gerrit verifications. Change-Id: I8e75b17d8071c7b3a2a171ba776fb76854b28a53