Skip to content

Commit

Permalink
Unions are now handled as func args: union should be handled in the w…
Browse files Browse the repository at this point in the history
…hole pipeline now.
  • Loading branch information
cournape committed Dec 1, 2008
1 parent 7fe936c commit c2e1ffe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions funcs.py
Expand Up @@ -9,6 +9,9 @@ def fundamental_as_arg(tp):
def structure_as_arg(tp):
return tp.name

def union_as_arg(tp):
return tp.name

def pointer_as_arg(tp):
if isinstance(tp.typ, typedesc.FunctionType):
args = [generic_as_arg(arg) for arg in tp.typ.iterArgTypes()]
Expand All @@ -31,6 +34,8 @@ def generic_as_arg(tp):
return generic_as_arg(tp.typ)
elif isinstance(tp, typedesc.Structure):
return structure_as_arg(tp)
elif isinstance(tp, typedesc.Union):
return union_as_arg(tp)
elif isinstance(tp, typedesc.Enumeration):
return "int"
else:
Expand Down

0 comments on commit c2e1ffe

Please sign in to comment.