jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: JED and s-lang


On Tue, Jun 22, 2004 at 05:59:33AM -0700, Riza Dindir wrote:

> I am wondering, is there a way to call functions in
> dynamic libraries (unix/windows) from within a jed
> macro (script) file?
If you install the prerelease of JED 0.99-17
<ftp://space.mit.edu/pub/davis/jed/v0.99/pre-0.99-17/>
and type C-h f import, you should see

   The `import' function causes the run-time linker to dynamically
   link to the shared object specified by the `module' parameter.

As an example, S-Lang comes with a file called pcre-module.c which compiles
to a pcre-module.so, which is linked to libpcre.so.  The file pcre.sl at
<http://jedmodes.sf.net/mode/pcre> contains the line

import("pcre");

That's all it takes!  If you want to use some other library, you will have to
do do some C programming.  See the file cslang.txt that comes with s-lang, and
get the SLIRP package.

The list seems to be confused - the TO header is set to John's email address?

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]