Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Modules dependencies RE: PATCH: zftp/tcp abstraction
- X-seq: zsh-workers 14785
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: Modules dependencies RE: PATCH: zftp/tcp abstraction
- Date: Thu, 07 Jun 2001 11:00:43 +0100
- In-reply-to: ""Andrej Borsenkow""'s message of "Thu, 07 Jun 2001 13:41:10 +0400." <000701c0ef35$fc04ebe0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
"Andrej Borsenkow" wrote:
> Index: Src/Modules/zftp.mdd
> +moddeps="zsh/net/tcp"
>
> The problem is, it is currently ignored for modules without auto stuff.
> Dependencies are put only in main zsh in Src/bltinmods.list.
>
> To make it work in general every module needs a standard function, let's
> call it dep_, that is autogenerated out of moddeps and called before module
> is attempted to be loaded to register dependencies. We may need the
> counterpart to remove dependencies when module is unloaded (seems
> reasonable).
Yes, possibly we should distinguish explicitly by checks in module.c
between modules which provide features directly (builtins, parameters,
etc.) and those which only exist as a dependency to provide support for
other modules. Then we can tell what it's safe to unload. Currently
modules are either one or the other --- maybe we can get away with keeping
it like this.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author