zsh-workers
 help / color / mirror / code / Atom feed
* zsh-3.1 development: dynamic modules
@ 1996-11-06 21:38 Zoltan Hidvegi
  1996-11-07 16:05 ` Peter Stephenson
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Zoltan Hidvegi @ 1996-11-06 21:38 UTC (permalink / raw)
  To: Zsh workers list

I have stared working on binary module support in zsh.  The preliminary
version is almost usable.  I tested it on ELF Linux SunOS and Solaris and
it seems to work.  Of course the most difficult part is to make it
portable.  I looked at the perl sources for that but I not yet added
everything which is there.

You can find my current version as a patch to zsh-3.0.1 in
ftp://ftp.cs.elte.hu/pub/zsh/testing/zsh-3.1.0-test1.diff.gz

The file date/size:

   15793 Nov  6 22:19 zsh-3.1.0-test1.diff.gz

md5sum:

2b83517e832b9318bc02016ff508ab23  zsh-3.1.0-test1.diff.gz

This is very experimental.  You have to give the --enable-dynamic option to
configure to compile in binary module support.  This adds a new builtin,
modload.  Whithout arguments it lists the currently loaded modules.
Otherwise it loads the given module.  The $module_path array is user to
seatch for the modules.  modload -u modue unloads the given module.

An example module is provided in mod_example.c.  Compile it with

make mod_example.so

Mosules may work on all systems with an ANSI C compiler and dlopen/dlsym
interface.  Other systems need some hacking.

This is an experimental code and I release it only to get it moving.  I've
done this several weeks ago but I had not much time to continue the work
and I'd like to hear others opinions about it.

At the moment there is no support to link a module statically to zsh.  Also
K&R C compilers cannot be used to compile the modules.

When the module code works it can provide completely new and exciting
extensions to zsh: database extensions, X windows etc.

Any new program may be built around zsh using zsh as a user interface and
command language.

Zoltan


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

end of thread, other threads:[~1996-11-11  3:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-06 21:38 zsh-3.1 development: dynamic modules Zoltan Hidvegi
1996-11-07 16:05 ` Peter Stephenson
1996-11-07 17:31 ` Bart Schaefer
1996-11-07 17:35 ` (Apology) " Bart Schaefer
1996-11-08  8:51 ` Peter Stephenson
1996-11-10 10:59 ` Andrej Borsenkow
1996-11-11  3:42   ` Roderick Schertler

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

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).