From 851bbaf879fcd8b1b73777834b069b026f52346f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 16 Apr 2012 19:37:25 +0100 Subject: [PATCH] Represent BOOL as an enum. So that TRUE/FALSE symbol names are preserved, improving readability. --- specs/winapi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.45.2