diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-06 11:05:38 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-06 11:05:38 +0000 |
commit | 929c56748420b581088cd75443d21d7c06ac44d6 (patch) | |
tree | bd68094f0d44922a9b125ea4211c45267506e478 /Src/Modules | |
parent | fb37f90888121c0fcf173539c3316e78379ff832 (diff) | |
download | zsh-929c56748420b581088cd75443d21d7c06ac44d6.tar.gz zsh-929c56748420b581088cd75443d21d7c06ac44d6.tar.xz zsh-929c56748420b581088cd75443d21d7c06ac44d6.zip |
zsh-3.1.6-pws-3 zsh-3.1.6-pws-3
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/mapfile.c | 3 | ||||
-rw-r--r-- | Src/Modules/parameter.c | 13 |
2 files changed, 5 insertions, 11 deletions
diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c index cd9c0120d..431c488e6 100644 --- a/Src/Modules/mapfile.c +++ b/Src/Modules/mapfile.c @@ -83,8 +83,7 @@ createmapfilehash() Param pm; HashTable ht; - if ((pm = (Param) gethashnode2(paramtab, mapfile_nam))) - unsetparam_pm(pm, 0, 1); + unsetparam(mapfile_nam); mapfile_pm = NULL; if (!(pm = createparam(mapfile_nam, 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; |