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

2021-03-15 Thread Eric Schulte
ething simple we could do that could have a big impact there. Much appreciated, Eric From: Marius Gerbershagen Date: Sunday, March 14, 2021 at 7:13 AM To: Eric Schulte , ecl-devel@common-lisp.net Subject: [External] - Re: Calling into an ECL-compiled .so from C, best practices, how to pass string

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

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