lsteamclient: Use int8_t instead of ambiguous sized bool.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-10-04 22:02:15 +02:00 committed by Arkadiusz Hiler
parent 5190d26e7e
commit cd4a31f4e0
41 changed files with 7674 additions and 7679 deletions

View file

@ -890,9 +890,9 @@ def declspec(decl, name, prefix, wrapped=False):
if type_name.startswith('ISteam'):
return f'{const}void /*{type_name}*/{name}'
if type_name in ('void', 'bool', 'char', 'float', 'double'):
if type_name in ('void', 'char', 'float', 'double'):
return f'{const}{type_name}{name}'
if type_name.startswith(('int', 'long', 'short', 'signed')):
if type_name.startswith(('bool', 'int', 'long', 'short', 'signed')):
return f'{const}int{decl.get_size() * 8}_t{name}'
if type_name.startswith(('uint', 'unsigned')):
return f'{const}uint{decl.get_size() * 8}_t{name}'
@ -1515,7 +1515,6 @@ with open(u"unixlib_generated.h", "w") as file:
out(u'#include <stdarg.h>\n')
out(u'#include <stddef.h>\n')
out(u'#include <stdint.h>\n')
out(u'#include <stdbool.h>\n')
out(u'\n')
out(u'#ifdef __cplusplus\n')
out(u'extern "C" {\n')