Re: dynamic loading of extensions
> Well, a couple of languages offer dynamic loading in a more or less
> portable fashion. Emacs and perl so maybe someone can take a peek at how is d
one
> on both languages.
> Must likely I will just write a dlopen library .
Well, I decided to hack a little bit tonite :)
In ./Src/dynload.c, I prepended a "_" to the function to be searched in the
library and i changed the "#defines SUNOS..." stuff to also include
"FREEBSD".
dlopen and friends are already part of FreeBSD :)
The only gotcha was that dlerror was not defined so I took
out the one reference in dynload.c out.
Next, I compiled the sample time.c extension and loaded it dynamically.
Here is a transcript:
/usr/local/scheme/STk-2.1.4/Extensions > stk
Welcome to the STk interpreter version 2.1.4
Copyright (C) 1993, 1994 Erick Gallesio - I3S - CNRS / UNSA <eg_at_unice.fr>
STk> (time-string)
*** Error:
unbound variable: "time-string"
STk> (load "time")
#[undefined]
STk> (time-string)
"Mon Dec 12 23:49:56 1994"
STk>
Again if the Linux crowd wants dynamical loading take a look at perl5.
The routines for dynamically loading moudules will not help however
they will point out how load dynamic modules under Linux.
Someone corrected me in that emacs does not support dynamic loading
which is true -- as far as the notion of loading emacs supports
dumping.
Later on the week I will send out patches for the stuff that I did.
Good Nite,
Amancio
Received on Tue Dec 13 1994 - 09:08:21 CET
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST