zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re: PATCH: unloading modules
Date: Wed, 16 Dec 1998 09:10:57 +0100 (MET)	[thread overview]
Message-ID: <199812160810.JAA00618@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Tue, 15 Dec 1998 17:18:27 +0100


Peter Stephenson wrote:

> 
> Sven Wischnowsky wrote:
> > Finally I added some code for the setup- and finish-thing inside the
> > `#ifdef AIXDYNAMIC' but I'm far from certain that this is correct (is
> > the calling convention for boot et al different under AIX??). I don't
> > have a AIX box available so I need your help here.
> 
> Zoli's the expert here, but the example module seems to load, run and
> unload smoothly at the moment.  Probably you need to alter
> Src/modentry.c to do what you want.  Here was Zoli's comment about
> that.
> 
>   There is a new little C file in the Src directory called modentry.c which
>   is used to create modentry..o which is then linked to every dynamic zsh
>   module created on AIX.  modentry..o contains the entry point for the
>   module modentry(int, Module).  Since we do not have dlsym, modentry is
>   used to call the boot_/cleanup_ function.  The first argument is nonzero
>   for boot and zero for cleanup.  Each module is linked with -emodentry.
>   When the module loads, the load subroutine returns a function pointer to
>   modentry.  modentry is not exported by any module so there is no name
>   collision.
> 
> Maybe this requires the setup and finish routine to be defined by
> every module.

Thanks for the help, I searched but didn't find modentry.c. (This file
calls `boot_' and `cleanup_', how is this turned into `boot_foo' and
`cleanup_foo'??)
Anyway, this might indeed require that we make setup and finish
mandatory. I have to say a bit more about this which I will send as a
separate mail.

> 
> One problem I am having is that 'zmodload deltochar' reports a name
> clash.  This happens even immediately on starting zsh -f.
> 
> % zmodload deltochar
> deltochar: name clash when adding ZLE function `delete-to-char'
> deltochar: name clash when adding ZLE function `delete-to-char'
> 
> It does not seem to happen with any other module.

This doesn't happen for me, are you sure that you haven't configured
deltochar to be statically included in zsh?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1998-12-16  8:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-16  8:10 Sven Wischnowsky [this message]
1998-12-16  9:06 ` Bart Schaefer
1998-12-16 10:19 ` PATCH: pws-3: AIX fix for setup/finish Peter Stephenson
1998-12-16 13:16 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1998-12-16  9:20 PATCH: unloading modules Sven Wischnowsky
1998-12-15 15:45 Sven Wischnowsky
1998-12-15 16:18 ` Peter Stephenson

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=199812160810.JAA00618@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.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).