make license handling easier

This commit is contained in:
2025-09-09 00:19:53 +05:30
parent d6ba30805e
commit 03404bb164
4 changed files with 35 additions and 21 deletions

View File

@ -14,6 +14,8 @@ def ctypes_to_ir(ctype: str):
"c_float": ir.FloatType(),
"c_double": ir.DoubleType(),
"c_void_p": ir.IntType(64),
# Not so sure about this one
"str": ir.PointerType(ir.IntType(8))
}
if ctype in mapping:
return mapping[ctype]