audio-base.h number in hex
Make audio.h great again.
All values expressed in hex in types.hal are now also hex in
audio-base.h
Generated by running on each enum body:
sed -E 's/(.* )= ([0-9]*)u?,(.*)/echo "\1@= 0x$(printf \%x \2),@\3"/e' |
column -ts@ | sed 's/ =/=/;s/, /,/;s/[()]//g' |
sed -E 's/0x([a-zA-Z0-9]+)/0x\U\1/'
And then a few manual removal of whitespace for vertical alignments.
Test: check that some numbers are correctly converted
Bug: 38184704
Change-Id: I6740e00285b8d301320dd8ae408d3f1fd46511c3
Signed-off-by: Kevin Rocard <krocard@google.com>
1 file changed