From 929c56748420b581088cd75443d21d7c06ac44d6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 6 Sep 1999 11:05:38 +0000 Subject: zsh-3.1.6-pws-3 --- Src/Modules/parameter.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Src/Modules/parameter.c') diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c index 14f05d41d..bd0d68c67 100644 --- a/Src/Modules/parameter.c +++ b/Src/Modules/parameter.c @@ -620,28 +620,23 @@ boot_parameter(Module m) * As an example for autoloaded parameters, this is probably a bad * example, because we the zsh core doesn't support creation of * special hashes, yet. */ - Param pm; - if ((pm = (Param) gethashnode2(paramtab, PAR_NAM))) - unsetparam_pm(pm, 0, 1); + unsetparam(PAR_NAM); if (!(parpm = createspecialhash(PAR_NAM, getpmparameter, scanpmparameters))) return 1; parpm->flags |= PM_READONLY; - if ((pm = (Param) gethashnode2(paramtab, CMD_NAM))) - unsetparam_pm(pm, 0, 1); + unsetparam(CMD_NAM); if (!(cmdpm = createspecialhash(CMD_NAM, getpmcommand, scanpmcommands))) return 1; cmdpm->sets.hfn = setpmcommands; - if ((pm = (Param) gethashnode2(paramtab, FUN_NAM))) - unsetparam_pm(pm, 0, 1); + unsetparam(FUN_NAM); if (!(funpm = createspecialhash(FUN_NAM, getpmfunction, scanpmfunctions))) return 1; funpm->sets.hfn = setpmfunctions; - if ((pm = (Param) gethashnode2(paramtab, OPT_NAM))) - unsetparam_pm(pm, 0, 1); + unsetparam(OPT_NAM); if (!(optpm = createspecialhash(OPT_NAM, getpmoption, scanpmoptions))) return 1; -- cgit 1.4.1