diff options
| author | Bart Schaefer <schaefer@ipost.com> | 2021-03-27 14:04:05 -0700 |
|---|---|---|
| committer | Bart Schaefer <schaefer@ipost.com> | 2021-04-13 21:18:35 -0700 |
| commit | fbc1125316b07ddc9d51fa032fffc5b09b98f2ac (patch) | |
| tree | 268323dadd9dc2dd2246ba01f7d595939d80889f /Src/builtin.c | |
| parent | Fix ${(t)var} output, add comparative test cases (diff) | |
| download | zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.tar zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.tar.gz zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.tar.bz2 zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.tar.lz zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.tar.xz zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.tar.zst zsh-fbc1125316b07ddc9d51fa032fffc5b09b98f2ac.zip | |
Change DECLAREDNULL to DEFAULTED
Diffstat (limited to 'Src/builtin.c')
| -rw-r--r-- | Src/builtin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index b0d4eb7f7..f0c490119 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2492,7 +2492,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), } } if (isset(POSIXBUILTINS)) - pm->node.flags |= PM_DECLAREDNULL; + pm->node.flags |= PM_DEFAULTED; } else { if (idigit(*pname)) zerrnam(cname, "not an identifier: %s", pname); @@ -2892,7 +2892,7 @@ bin_typeset(char *name, char **argv, LinkList assigns, Options ops, int func) * Don't attempt to set it yet, it's too early * to be exported properly. * - * This may create the array with PM_DECLAREDNULL. + * This may create the array with PM_DEFAULTED. */ asg2.name = asg->name; asg2.flags = 0; @@ -2936,7 +2936,7 @@ bin_typeset(char *name, char **argv, LinkList assigns, Options ops, int func) assignaparam(asg->name, zlinklist2array(asg->value.array, 1), flags); } else if (asg0.value.scalar || oldval) { /* We have to undo what we did wrong with asg2 */ - apm->node.flags &= ~PM_DECLAREDNULL; + apm->node.flags &= ~PM_DEFAULTED; if (oldval) assignsparam(asg0.name, oldval, 0); } |
