diff options
author | wlestes <wlestes> | 2012-02-03 22:21:37 +0000 |
---|---|---|
committer | wlestes <wlestes> | 2012-02-03 22:21:37 +0000 |
commit | 48658c017179243b859cc3ddb01a9e0d58f8e451 (patch) | |
tree | dd224c0e0015885db692d0d221249ff591c4c933 | |
parent | 0fba1571f33d4cc7b4c4fdde2a1e2ec0e7f8568f (diff) | |
download | flex-48658c017179243b859cc3ddb01a9e0d58f8e451.tar.gz |
more careful/paranoia
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -184,7 +184,7 @@ int all_lower (str) register char *str; { while (*str) { - if (!isascii ((Char) * str) || !islower (*str)) + if (!isascii ((Char) * str) || !islower ((Char) * str)) return 0; ++str; } @@ -199,7 +199,7 @@ int all_upper (str) register char *str; { while (*str) { - if (!isascii ((Char) * str) || !isupper (*str)) + if (!isascii ((Char) * str) || !isupper ((Char) * str)) return 0; ++str; } @@ -675,7 +675,7 @@ Char myesc (array) int sptr = 2; while (isascii (array[sptr]) && - isxdigit ((char) array[sptr])) + isxdigit (array[sptr])) /* Don't increment inside loop control * because if isdigit() is a macro it might * expand into multiple increments ... |