You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should allow calling C functions by directly importing them from C header files. We have to parse the header file, and create the corresponding declaration in ASR. In pure Python mode, we have to implement some equivalent functionality using some of the projects below.
To keep things simple, possibly a good way is to first write a script that takes a C headerfile and produces an equivalent Python file with C declarations using @ccall. That way we do not need any special handling in LPython and things are explicit and automatic. Once we gain more experience, we can include a C parser as part of libasr and/or lpython.
We should allow calling C functions by directly importing them from C header files. We have to parse the header file, and create the corresponding declaration in ASR. In pure Python mode, we have to implement some equivalent functionality using some of the projects below.
Prior art:
The text was updated successfully, but these errors were encountered: