diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-10-29 19:17:30 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-10-29 19:17:30 +0000 |
commit | 815bc92148939ce369585c59d3af730f69833844 (patch) | |
tree | 2787fe59d0c8b27c6a9cf18e65784cdbd925c9b1 /Src/builtin.c | |
parent | 026631ab818995ad480a9ea3e5a7ec243c645db1 (diff) | |
download | zsh-815bc92148939ce369585c59d3af730f69833844.tar.gz zsh-815bc92148939ce369585c59d3af730f69833844.tar.xz zsh-815bc92148939ce369585c59d3af730f69833844.zip |
a la 19209: zcalloc -> zshcalloc
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 4df9ea51e..3f6295639 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2411,7 +2411,7 @@ bin_functions(char *name, char **argv, Options ops, int func) DPUTS(!shf->funcdef, "BUG: Calling autoload from empty function"); } else { - shf = (Shfunc) zcalloc(sizeof *shf); + shf = (Shfunc) zshcalloc(sizeof *shf); shfunctab->addnode(shfunctab, ztrdup(scriptname), shf); } shf->flags = on; @@ -2483,7 +2483,7 @@ bin_functions(char *name, char **argv, Options ops, int func) } else if (on & PM_UNDEFINED) { /* Add a new undefined (autoloaded) function to the * * hash table with the corresponding flags set. */ - shf = (Shfunc) zcalloc(sizeof *shf); + shf = (Shfunc) zshcalloc(sizeof *shf); shf->flags = on; shf->funcdef = mkautofn(shf); shfunctab->addnode(shfunctab, ztrdup(*argv), shf); @@ -2897,11 +2897,11 @@ bin_hash(char *name, char **argv, Options ops, int func) /* The argument is of the form foo=bar, * * so define an entry for the table. */ if(OPT_ISSET(ops,'d')) { - Nameddir nd = hn = zcalloc(sizeof *nd); + Nameddir nd = hn = zshcalloc(sizeof *nd); nd->flags = 0; nd->dir = ztrdup(asg->value); } else { - Cmdnam cn = hn = zcalloc(sizeof *cn); + Cmdnam cn = hn = zshcalloc(sizeof *cn); cn->flags = HASHED; cn->u.cmd = ztrdup(asg->value); } |