Calling into an ECL-compiled .so from C, best practices, how to pass strings, etc...

2021-03-14 Thread Eric Schulte
Hi, I’m trying to compile a common lisp system into a .so which I can then wrap a Python library around to enable easy sharing of the functionality as a Python package (wheel). I’m having trouble finding examples of other C code calling into ECL-compiled shared objects of lisp code. I hope I

Re: Calling into an ECL-compiled .so from C, best practices, how to pass strings, etc...

2021-03-14 Thread Marius Gerbershagen
Hi, unfortunately, the links in your email are all dead except for the first one, therefore I can only offer some general comments. 1. Use ecl_base_string_pointer_safe to get a char* pointer to the contents of a base-string. This will signal an error if the argument is not a base-string or is not