zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: zsh-3.1 development: dynamic modules
Date: Fri, 08 Nov 1996 09:51:52 +0100	[thread overview]
Message-ID: <199611080851.JAA17541@hydra.ifh.de> (raw)
In-Reply-To: "Zoltan Hidvegi"'s message of "Wed, 06 Nov 1996 22:38:05 MET." <199611062138.WAA21625@bolyai.cs.elte.hu>

Zoltan Hidvegi wrote:
> 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.

I just remembered... modload is an existing command on solaris to load
kernel modules.  It's not something the average user is going to be
doing, but I suggest it's probably better to start on the right foot
and avoid a clash and associated confusion (suppose the user looks for
a manual page on modload).  How about zmodload?  That's more explicit
about it being a zsh module.

*** Src/hashtable.h.old	Fri Nov  8 09:38:02 1996
--- Src/hashtable.h	Fri Nov  8 09:38:41 1996
***************
*** 304,310 ****
  #endif
  
  #ifdef DYNAMIC
!     {NULL, "modload", 0, bin_modload, 0, -1, 0, "uf", NULL},
  #endif
      {NULL, "popd", 0, bin_cd, 0, 2, BIN_POPD, NULL, NULL},
      {NULL, "print", BINF_PRINTOPTS, bin_print, 0, -1, BIN_PRINT, "RDPnrslzNu0123456789pioOcm-", NULL},
--- 304,310 ----
  #endif
  
  #ifdef DYNAMIC
!     {NULL, "zmodload", 0, bin_zmodload, 0, -1, 0, "uf", NULL},
  #endif
      {NULL, "popd", 0, bin_cd, 0, 2, BIN_POPD, NULL, NULL},
      {NULL, "print", BINF_PRINTOPTS, bin_print, 0, -1, BIN_PRINT, "RDPnrslzNu0123456789pioOcm-", NULL},
*** Src/module.c.old	Fri Nov  8 09:38:03 1996
--- Src/module.c	Fri Nov  8 09:38:26 1996
***************
*** 127,133 ****
  
  /**/
  int
! bin_modload(char *nam, char **args, char *ops, int func)
  {
      LinkNode node;
      Module m = NULL;
--- 127,133 ----
  
  /**/
  int
! bin_zmodload(char *nam, char **args, char *ops, int func)
  {
      LinkNode node;
      Module m = NULL;

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


  parent reply	other threads:[~1996-11-08  9:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-06 21:38 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 [this message]
1996-11-10 10:59 ` Andrej Borsenkow
1996-11-11  3:42   ` Roderick Schertler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199611080851.JAA17541@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).