unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: loading functions from a shared library
       [not found]       ` <rzqu1umg9a2.fsf@djlvig.dl.ac.uk>
@ 2002-02-21 14:29         ` William M. Perry
  2002-02-25 18:40           ` Dave Love
  0 siblings, 1 reply; 2+ messages in thread
From: William M. Perry @ 2002-02-21 14:29 UTC (permalink / raw)
  Cc: rms, skx, emacs-devel

[ Thread about using sysdll.c and sysdll.h from XEmacs for loading shared
  libraries in Emacs .... ]
Dave Love <d.love@dl.ac.uk> writes:

>>>>>> Richard Stallman writes:
>
>  > It could be that the people who wrote those file signed FSF legal
>  > papers for this code.
>
> For what it's worth, the basic code I got a couple of years ago was OK
> (ex Bill Perry) but I don't know what's happened to it since.  That code
> would be easy enough to write from scratch anyway, but is basically doing
> the job libtool abstracts.  (I dare say libtool didn't at the time Bill
> started.)

Sorry for the delay in responding - this got buried in the 'to be answered'
folder.  *sigh*

Correct, libtool did not support this type of abstraction at the time.  :)
Nowadays, I would say we should just use the 'ltdl' library that libtool
provides.  It does this and a fair bit more.

>  > The only way to find out if to talk with people who maintained the
>  > code and try to form a complete list of contributers to these files.
>
> I've sometimes been able to get convincing info out of the XEmacs CVS
> logs in the past, but often not.

The diffs are a better source for this type of thing in some cases.  Diffs
from the 1.1 version in CVS show the only changes were adding the
boilerplate, and some formatting changes along the lines of:

-dll_func dll_function(dll_handle h,CONST char *n) {
-  return(NULL);
+dll_func
+dll_function (dll_handle h, const char *n)
+{
+  return NULL;

But with ltdl being available and easily distributable with Emacs if
someone doesn't have it installed, I would say it is a moot point.

-bp
-- 
Ceterum censeo vi esse delendam

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: loading functions from a shared library
  2002-02-21 14:29         ` loading functions from a shared library William M. Perry
@ 2002-02-25 18:40           ` Dave Love
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Love @ 2002-02-25 18:40 UTC (permalink / raw)
  Cc: rms, skx, emacs-devel

wmperry@gnu.org (William M. Perry) writes:

> Correct, libtool did not support this type of abstraction at the time.  :)
> Nowadays, I would say we should just use the 'ltdl' library that libtool
> provides.  It does this and a fair bit more.

Yes, though I found it non-trivial to figure out how to drive libtool
for this purpose, and I don't understand some behaviour of the result.

> > I've sometimes been able to get convincing info out of the XEmacs CVS
> > logs in the past, but often not.
> 
> The diffs are a better source for this type of thing in some cases.

I found they're necessary, actually, but still not necessarily good
enough in general :-(.  (I laboured on this sort of thing quite a lot,
and I doubt there's a lot more of interest to look at.)

> But with ltdl being available and easily distributable with Emacs if
> someone doesn't have it installed, I would say it is a moot point.

I don't think the API is necessary either, at least for loading
modules per se.

The implementation I have just extends `load'.  It needs work on
understanding a couple of issues, snarfing doc strings and packaging.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-25 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <878zd4yuqf.fsf@gnu.org>
     [not found] ` <b1ae7c38.0111190115.7d314b57@posting.google.com>
     [not found]   ` <b1ae7c38.0112120453.60488ae2@posting.google.com>
     [not found]     ` <200112160621.fBG6Lum02280@aztec.santafe.edu>
     [not found]       ` <rzqu1umg9a2.fsf@djlvig.dl.ac.uk>
2002-02-21 14:29         ` loading functions from a shared library William M. Perry
2002-02-25 18:40           ` Dave Love

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).