]> git.cworth.org Git - apitrace/blobdiff - specs/winapi.py
Remove dead base parameter to literal types.
[apitrace] / specs / winapi.py
index 17256aaec759c7eeabad190e46735ef0503ff1f1..8f96799e7c9a4aaeb32b3713d3d462d14851ffc1 100644 (file)
@@ -45,9 +45,9 @@ UINT32 = Alias("UINT32", UInt32)
 INT64 = Alias("INT64", Int64)
 UINT64 = Alias("UINT64", UInt64)
 
-BYTE = Literal("BYTE", "UInt", base=16)
-WORD = Literal("WORD", "UInt", base=16)
-DWORD = Literal("DWORD", "UInt", base=16)
+BYTE = Alias("BYTE", UInt8)
+WORD = Alias("WORD", UInt16)
+DWORD = Alias("DWORD", UInt32)
 
 WCHAR = Literal("WCHAR", "SInt")
 
@@ -83,7 +83,7 @@ GUID = Struct("GUID", [
     (DWORD, "Data1"),
     (WORD, "Data2"),
     (WORD, "Data3"),
-    (Array(BYTE, "8"), "Data4"),
+    (Array(BYTE, 8), "Data4"),
 ])
 LPGUID = Pointer(GUID)