aboutsummaryrefslogtreecommitdiff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-10-28 16:52:17 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-10-28 16:52:17 +0000
commit40dcdf68a2368b0e889a6be5d7b6323101fcbe9f (patch)
treec0428f62747bfb85bf45a6aa2c30874b928bd235 /Src/builtin.c
parent0d78947de1c8480825836d76a6c6c36591e4b13e (diff)
downloadzsh-40dcdf68a2368b0e889a6be5d7b6323101fcbe9f.tar.gz
zsh-40dcdf68a2368b0e889a6be5d7b6323101fcbe9f.tar.xz
zsh-40dcdf68a2368b0e889a6be5d7b6323101fcbe9f.zip
19209: Rename zcalloc to zshcalloc.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index c1468c6aa..bfb2f85b8 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2207,7 +2207,7 @@ bin_functions(char *name, char **argv, char *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;
@@ -2278,7 +2278,7 @@ bin_functions(char *name, char **argv, char *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);
@@ -2665,11 +2665,11 @@ bin_hash(char *name, char **argv, char *ops, int func)
/* The argument is of the form foo=bar, *
* so define an entry for the table. */
if(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);
}