]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Remove dead base parameter to literal types.
[apitrace] / specs / stdapi.py
index fa371cf2d8706d8286d88d9d9ee0065f18123eed..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
 
@@ -220,7 +220,8 @@ class Arg:
 
 class Function:
 
-    __id = 0
+    # 0-3 are reserved to memcpy, malloc, free, and realloc
+    __id = 4
 
     def __init__(self, type, name, args, call = '', fail = None, sideeffects=True):
         self.id = Function.__id