diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-10-15 11:21:15 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-10-15 11:21:15 +0100 |
commit | 74163460a78dcbb96229eec4340abb3736d230f0 (patch) | |
tree | 020c0e5b9d658052da3fd19e2e805dbdbb6bdc19 | |
parent | 44756655362254679ae8b6ecad66104175b5e773 (diff) |
Remove dead base parameter to literal types.
Unnecessary given we encode it in binary form anyway.
-rw-r--r-- | specs/stdapi.py | 2 | ||||
-rw-r--r-- | specs/winapi.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/specs/stdapi.py b/specs/stdapi.py index a92b9ba..11b1eef 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -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 diff --git a/specs/winapi.py b/specs/winapi.py index 0d8f8c1..8f96799 100644 --- a/specs/winapi.py +++ b/specs/winapi.py @@ -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") |