From: José Fonseca Date: Mon, 16 Apr 2012 18:37:25 +0000 (+0100) Subject: Represent BOOL as an enum. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=851bbaf879fcd8b1b73777834b069b026f52346f;p=apitrace Represent BOOL as an enum. So that TRUE/FALSE symbol names are preserved, improving readability. --- diff --git a/specs/winapi.py b/specs/winapi.py index ea9252f..6fbdfae 100644 --- a/specs/winapi.py +++ b/specs/winapi.py @@ -53,7 +53,10 @@ DWORD = Alias("DWORD", UInt32) WCHAR = Alias("WCHAR", Short) -BOOL = Alias("BOOL", Bool) +BOOL = Enum("BOOL", [ + "FALSE", + "TRUE", +]) LPLONG = Pointer(LONG) LPWORD = Pointer(WORD)