mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-21 12:01:54 +02:00
unposted (cf. 52615): use META_NOALLOC for 52591
This commit is contained in:
parent
d27ea2ae02
commit
c0a392b392
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
2024-03-04 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted (cf. 52615): Src/builtin.c: use META_NOALLOC for 52591
|
||||
|
||||
* unposted (cf. 52617): Src/params.c: only scalars can instantiate
|
||||
a declared named reference
|
||||
|
||||
|
|
|
@ -5255,7 +5255,7 @@ bin_print(char *name, char **args, Options ops, int func)
|
|||
}
|
||||
}
|
||||
if (*argp) {
|
||||
width = (int)mathevali(metafy(*argp, len[argp - args], META_USEHEAP));
|
||||
width = (int)mathevali(metafy(*argp, len[argp - args], META_NOALLOC));
|
||||
argp++;
|
||||
if (errflag) {
|
||||
errflag &= ~ERRFLAG_ERROR;
|
||||
|
@ -5290,7 +5290,7 @@ bin_print(char *name, char **args, Options ops, int func)
|
|||
}
|
||||
|
||||
if (*argp) {
|
||||
prec = (int)mathevali(metafy(*argp, len[argp - args], META_USEHEAP));
|
||||
prec = (int)mathevali(metafy(*argp, len[argp - args], META_NOALLOC));
|
||||
argp++;
|
||||
if (errflag) {
|
||||
errflag &= ~ERRFLAG_ERROR;
|
||||
|
@ -5403,7 +5403,7 @@ bin_print(char *name, char **args, Options ops, int func)
|
|||
break;
|
||||
case 'q':
|
||||
stringval = curarg ?
|
||||
quotestring(metafy(curarg, curlen, META_USEHEAP),
|
||||
quotestring(metafy(curarg, curlen, META_NOALLOC),
|
||||
QT_BACKSLASH_SHOWNULL) : &nullstr;
|
||||
*d = 's';
|
||||
print_val(unmetafy(stringval, &curlen));
|
||||
|
@ -5475,7 +5475,7 @@ bin_print(char *name, char **args, Options ops, int func)
|
|||
*d++ = 'l';
|
||||
#endif
|
||||
*d++ = 'l', *d++ = *c, *d = '\0';
|
||||
zlongval = (curarg) ? mathevali(metafy(curarg, curlen, META_HEAPDUP)) : 0;
|
||||
zlongval = (curarg) ? mathevali(metafy(curarg, curlen, META_NOALLOC)) : 0;
|
||||
if (errflag) {
|
||||
zlongval = 0;
|
||||
errflag &= ~ERRFLAG_ERROR;
|
||||
|
@ -5526,7 +5526,7 @@ bin_print(char *name, char **args, Options ops, int func)
|
|||
if (!curarg)
|
||||
zulongval = (zulong)0;
|
||||
else if (!zstrtoul_underscore(curarg, &zulongval))
|
||||
zulongval = mathevali(metafy(curarg, curlen, META_HEAPDUP));
|
||||
zulongval = mathevali(metafy(curarg, curlen, META_NOALLOC));
|
||||
if (errflag) {
|
||||
zulongval = 0;
|
||||
errflag &= ~ERRFLAG_ERROR;
|
||||
|
|
Loading…
Reference in a new issue