[PATCH] winapi_test: Fix handling of byte and UCHAR types.
Signed-off-by: Francois Gouget <fgouget(a)free.fr> --- tools/winapi/winapi_test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/winapi/winapi_test b/tools/winapi/winapi_test index 48c29f8f4ad..adee5e24a65 100755 --- a/tools/winapi/winapi_test +++ b/tools/winapi/winapi_test @@ -181,7 +181,11 @@ sub _find_align_kind_size($) { $align = 1; $kind = "char"; $size = 1; - } elsif(/^(?:(signed|unsigned)\s+)?(?:__int8|char|byte)$/) { + } elsif(/^(?:byte|UCHAR)$/) { + $align = 1; + $kind = "unsigned"; + $size = 1; + } elsif(/^(?:(signed|unsigned)\s+)?(?:__int8|char)$/) { $align = 1; $kind = defined($1) ? $1 : "signed"; $size = 1; -- 2.20.1
Best ignore this patch. There are a lot of other types that need better handling. -- Francois Gouget <fgouget(a)free.fr> http://fgouget.free.fr/ The nice thing about meditation is that it makes doing nothing quite respectable -- Paul Dean
participants (1)
-
Francois Gouget