diff options
author | Oliver Kiddle <opk@zsh.org> | 2022-12-16 23:22:33 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2022-12-16 23:28:10 +0100 |
commit | a73c705b0c864a9ce042fca6e72e0c92d4ad8237 (patch) | |
tree | 6ea60926217bfc66140a8f60bbc8c37f36396ea2 /Src/init.c | |
parent | 7fb6c133bfdf445b4478897adc142ed7d07b5fd6 (diff) | |
download | zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.gz zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.xz zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.zip |
51212: remove STOUC() macro
This served as a workaround for ancient compilers where casts to unsigned char were broken.
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/init.c b/Src/init.c index 871d46b12..9981d059a 100644 --- a/Src/init.c +++ b/Src/init.c @@ -500,10 +500,10 @@ parseopts(char *nam, char ***argvp, char *new_opts, char **cmdp, } } break; - } else if (isspace(STOUC(**argv))) { + } else if (isspace((unsigned char) **argv)) { /* zsh's typtab not yet set, have to use ctype */ while (*++*argv) - if (!isspace(STOUC(**argv))) { + if (!isspace((unsigned char) **argv)) { badoptionstring: WARN_OPTION("bad option string: '%s'", args); return 1; @@ -1724,9 +1724,9 @@ zsh_main(UNUSED(int argc), char **argv) * interactive */ typtab['\0'] |= IMETA; - typtab[STOUC(Meta) ] |= IMETA; - typtab[STOUC(Marker)] |= IMETA; - for (t0 = (int)STOUC(Pound); t0 <= (int)STOUC(Nularg); t0++) + typtab[(unsigned char) Meta ] |= IMETA; + typtab[(unsigned char) Marker] |= IMETA; + for (t0 = (int) (unsigned char) Pound; t0 <= (int) (unsigned char) Nularg; t0++) typtab[t0] |= ITOK | IMETA; for (t = argv; *t; *t = metafy(*t, -1, META_ALLOC), t++); |