On 11/18/23 22:24, Waldek Hebisch wrote:
On Sat, Nov 18, 2023 at 09:06:30PM +0800, Qian Yun wrote:
Using GCL documentation example:

==== foo.lisp
(defentry joe (string int) (char "our_c_fun"))
====

Compile by:
     gcl -eval '(compile-file "foo.lisp" :h-file t)'

Result of foo.h:

====
static void L1();
char our_c_fun(char *,int);
static void * VVi[1]={
#define Cdata VV[0]
(void *)(L1)
};
#define VV (VVi)
====

So GCL emits declarations, good.

(However, the documentation suggests in the past, extra "clines" is
needed?)

Yes, in 2008 we had to add extern declarations.  However, now we
do not support any version earlier than gcl-2.13 and IIUC in
almost any aspect gcl-2.13 and gcl-2.14 are identical (and there
are no reason to prefer 2.13), so we may depend on current
behaviour.



Yes, and I also want to do a GCL cleanup.  So I will see if the various
#+GCL is still useful for gcl-2.14+, and submit them together with this
"clines" cleanup.

- Qian

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/31e23ee6-7caa-4a5d-b89a-5639525c7ba5%40gmail.com.

Reply via email to