diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-13 16:30:13 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-13 16:30:13 +0000 |
commit | 3c37057c34d975ada2e9e6590845732677e77104 (patch) | |
tree | 35d876225f35ea3d3c90c68df50e41fba8dbbe44 /Src/params.c | |
parent | cc81bba1e34b4a7a357b6a7e6ec1d4eede4ffa61 (diff) | |
download | zsh-3c37057c34d975ada2e9e6590845732677e77104.tar.gz zsh-3c37057c34d975ada2e9e6590845732677e77104.tar.xz zsh-3c37057c34d975ada2e9e6590845732677e77104.zip |
21871: replace INULL() by inull()
Diffstat (limited to 'Src/params.c')
-rw-r--r-- | Src/params.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Src/params.c b/Src/params.c index 218744000..835c12230 100644 --- a/Src/params.c +++ b/Src/params.c @@ -1043,8 +1043,8 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w) for (t = s, i = 0; (c = *t) && ((c != Outbrack && (ishash || c != ',')) || i); t++) { - /* Untokenize INULL() except before brackets and double-quotes */ - if (INULL(c)) { + /* Untokenize inull() except before brackets and double-quotes */ + if (inull(c)) { c = t[1]; if (c == '[' || c == ']' || c == '(' || c == ')' || @@ -1070,7 +1070,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w) return 0; s = dupstrpfx(s, t - s); *str = tt = t; - /* If we're NOT reverse subscripting, strip the INULL()s so brackets * + /* If we're NOT reverse subscripting, strip the inull()s so brackets * * are not backslashed after parsestr(). Otherwise leave them alone * * so that the brackets will be escaped when we patcompile() or when * * subscript arithmetic is performed (for nested subscripts). */ @@ -1305,11 +1305,11 @@ getindex(char **pptr, Value v, int dq) *s++ = '['; s = parse_subscript(s, dq); /* Error handled after untokenizing */ - /* Now we untokenize everything except INULL() markers so we can check * - * for the '*' and '@' special subscripts. The INULL()s are removed * + /* Now we untokenize everything except inull() markers so we can check * + * for the '*' and '@' special subscripts. The inull()s are removed * * in getarg() after we know whether we're doing reverse indexing. */ for (tbrack = *pptr + 1; *tbrack && tbrack != s; tbrack++) { - if (INULL(*tbrack) && !*++tbrack) + if (inull(*tbrack) && !*++tbrack) break; if (itok(*tbrack)) /* Need to check for Nularg here? */ *tbrack = ztokens[*tbrack - Pound]; |