zsh-workers
 help / color / mirror / code / Atom feed
* module dependencies
@ 1997-03-26 17:46 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1997-03-26 17:46 UTC (permalink / raw)
  To: zsh-workers

-----BEGIN PGP SIGNED MESSAGE-----

This patch stops module dependencies being dropped when a module is
unloaded.

 -zefram

 *** Src/module.c	1997/03/23 05:09:27	1.27
 --- Src/module.c	1997/03/26 04:58:58
 ***************
 *** 609,619 ****
   		else {
   		    if (m->handle)
   			dlclose(m->handle);
 ! 		    remnode(modules, node);
 ! 		    zsfree(m->nam);
 ! 		    if (m->deps)
 ! 			freelinklist(m->deps, freestr);
 ! 		    zfree(m, sizeof(*m));
   		}
   	    } else if (!ops['i']) {
   		zwarnnam(nam, "no such module %s", *args, 0);
 --- 609,620 ----
   		else {
   		    if (m->handle)
   			dlclose(m->handle);
 ! 		    m->handle = NULL;
 ! 		    if(!m->deps) {
 ! 			remnode(modules, node);
 ! 			zsfree(m->nam);
 ! 			zfree(m, sizeof(*m));
 ! 		    }
   		}
   	    } else if (!ops['i']) {
   		zwarnnam(nam, "no such module %s", *args, 0);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: ascii

iQCVAwUBMziufHD/+HJTpU/hAQH3cwQAmaI5ZrbrqjhuuFD6INRaxJsKmReWfM5U
L3m1XOYcesTmjFXVzfAExK1jPdNo91ZglCRRhV8pc7ZgYEnSGyu6CE05JS3/eAfd
vCRHCQuwHFWY5Kl/e24ufCq13oJpKp47D086vkb+eM6JEXuGx3dqPxOfuqdZh2i5
sPKykTddsaw=
=wuoY
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-03-26 18:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-26 17:46 module dependencies Zefram

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).