]> git.cworth.org Git - apitrace/commitdiff
Remove dead base parameter to literal types.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 15 Oct 2011 10:21:15 +0000 (11:21 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 15 Oct 2011 10:21:15 +0000 (11:21 +0100)
Unnecessary given we encode it in binary form anyway.

specs/stdapi.py
specs/winapi.py

index a92b9ba5669035725e9e54c5ca2d136119106caa..11b1eef955ac95033764cfcdf642707bf5dcdb48 100644 (file)
@@ -72,7 +72,7 @@ Void = _Void()
 
 class Literal(Type):
 
-    def __init__(self, expr, format, base=10):
+    def __init__(self, expr, format):
         Type.__init__(self, expr)
         self.format = format
 
index 0d8f8c13592a5d6260558b4baac659ab227200f1..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")