include: fix typedefs
Use what was in the upstream header. The switch of XGL_SIZE to size_t
generates quite some warnings and is fixed.
diff --git a/xgl-helper.py b/xgl-helper.py
index cd0292a..e99d7bc 100755
--- a/xgl-helper.py
+++ b/xgl-helper.py
@@ -459,7 +459,9 @@
print_type = "lu"
elif 'UINT8' in struct_member['type']:
print_type = "hu"
- elif True in [ui_str in struct_member['type'] for ui_str in ['UINT', '_SIZE', '_FLAGS', '_SAMPLE_MASK']]:
+ elif '_SIZE' in struct_member['type']:
+ print_type = "zu"
+ elif True in [ui_str in struct_member['type'] for ui_str in ['UINT', '_FLAGS', '_SAMPLE_MASK']]:
print_type = "u"
elif 'INT' in struct_member['type']:
print_type = "i"
@@ -892,7 +894,9 @@
print_type = "lu"
elif 'UINT8' in struct_member['type']:
print_type = "hu"
- elif True in [ui_str in struct_member['type'] for ui_str in ['UINT', '_SIZE', '_FLAGS', '_SAMPLE_MASK']]:
+ elif '_SIZE' in struct_member['type']:
+ print_type = "zu"
+ elif True in [ui_str in struct_member['type'] for ui_str in ['UINT', '_FLAGS', '_SAMPLE_MASK']]:
print_type = "u"
elif 'INT' in struct_member['type']:
print_type = "i"