1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-24 17:21:08 +02:00

zsh-workers/7616

This commit is contained in:
Tanaka Akira 1999-09-01 16:50:09 +00:00
parent c4fc4a14c0
commit 9556424c44
2 changed files with 11 additions and 5 deletions

View file

@ -83,7 +83,8 @@ createmapfilehash()
Param pm; Param pm;
HashTable ht; HashTable ht;
unsetparam(mapfile_nam); if ((pm = (Param) gethashnode2(paramtab, mapfile_nam)))
unsetparam_pm(pm, 0, 1);
mapfile_pm = NULL; mapfile_pm = NULL;
if (!(pm = createparam(mapfile_nam, PM_SPECIAL|PM_REMOVABLE|PM_HASHED))) if (!(pm = createparam(mapfile_nam, PM_SPECIAL|PM_REMOVABLE|PM_HASHED)))

View file

@ -617,23 +617,28 @@ boot_parameter(Module m)
* As an example for autoloaded parameters, this is probably a bad * As an example for autoloaded parameters, this is probably a bad
* example, because we the zsh core doesn't support creation of * example, because we the zsh core doesn't support creation of
* special hashes, yet. */ * special hashes, yet. */
Param pm;
unsetparam(PAR_NAM); if ((pm = (Param) gethashnode2(paramtab, PAR_NAM)))
unsetparam_pm(pm, 0, 1);
if (!(parpm = createspecialhash(PAR_NAM, getpmparameter, if (!(parpm = createspecialhash(PAR_NAM, getpmparameter,
scanpmparameters))) scanpmparameters)))
return 1; return 1;
parpm->flags |= PM_READONLY; parpm->flags |= PM_READONLY;
unsetparam(CMD_NAM); if ((pm = (Param) gethashnode2(paramtab, CMD_NAM)))
unsetparam_pm(pm, 0, 1);
if (!(cmdpm = createspecialhash(CMD_NAM, getpmcommand, if (!(cmdpm = createspecialhash(CMD_NAM, getpmcommand,
scanpmcommands))) scanpmcommands)))
return 1; return 1;
cmdpm->sets.hfn = setpmcommands; cmdpm->sets.hfn = setpmcommands;
unsetparam(FUN_NAM); if ((pm = (Param) gethashnode2(paramtab, FUN_NAM)))
unsetparam_pm(pm, 0, 1);
if (!(funpm = createspecialhash(FUN_NAM, getpmfunction, if (!(funpm = createspecialhash(FUN_NAM, getpmfunction,
scanpmfunctions))) scanpmfunctions)))
return 1; return 1;
funpm->sets.hfn = setpmfunctions; funpm->sets.hfn = setpmfunctions;
unsetparam(OPT_NAM); if ((pm = (Param) gethashnode2(paramtab, OPT_NAM)))
unsetparam_pm(pm, 0, 1);
if (!(optpm = createspecialhash(OPT_NAM, getpmoption, if (!(optpm = createspecialhash(OPT_NAM, getpmoption,
scanpmoptions))) scanpmoptions)))
return 1; return 1;