mirror of
https://github.com/GaloisInc/macaw.git
synced 2025-01-05 21:23:22 +03:00
Merge branch 'master' of github.com:GaloisInc/macaw
This commit is contained in:
commit
e0417a09a1
@ -10,7 +10,7 @@ executable make_bsd_syscalls
|
||||
build-depends:
|
||||
base >= 4,
|
||||
bytestring,
|
||||
language-c <= 0.5.0,
|
||||
language-c >= 0.6,
|
||||
lens,
|
||||
pretty,
|
||||
containers,
|
||||
@ -23,7 +23,7 @@ executable make_linux_syscalls
|
||||
build-depends:
|
||||
base >= 4,
|
||||
bytestring,
|
||||
language-c <= 0.5.0,
|
||||
language-c >= 0.6,
|
||||
lens,
|
||||
pretty,
|
||||
containers,
|
||||
|
@ -144,7 +144,7 @@ typeToArgType typ =
|
||||
PtrType _ _ _ -> WordArgType
|
||||
ArrayType _ _ _ _ -> WordArgType
|
||||
FunctionType _ _ -> unhandled
|
||||
TypeDefType (TypeDefRef _ (Just typ) _) _ _ -> typeToArgType typ
|
||||
TypeDefType (TypeDefRef _ typ _) _ _ -> typeToArgType typ
|
||||
where
|
||||
unhandled = error ("Unhandled type: " ++ show (pretty typ))
|
||||
|
||||
|
@ -113,7 +113,7 @@ typeToArgType typ =
|
||||
PtrType _ _ _ -> WordArgType
|
||||
ArrayType _ _ _ _ -> WordArgType
|
||||
FunctionType _ _ -> unhandled
|
||||
TypeDefType (TypeDefRef _ (Just typ) _) _ _ -> typeToArgType typ
|
||||
TypeDefType (TypeDefRef _ typ _) _ _ -> typeToArgType typ
|
||||
where
|
||||
unhandled = error ("Unhandled type: " ++ show (pretty typ))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user