Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

module dependencies



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



Messages sorted by: Reverse Date, Date, Thread, Author