chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils/macros.h: Add <ctype.h> and `foocmp' helper macros.
[mLib]
/
hash
/
unihash-mkstatic.c
diff --git
a/hash/unihash-mkstatic.c
b/hash/unihash-mkstatic.c
index 0505fcff3e45fdf28ca162ce526f65846ff27a96..958b3d7fe28e9b04e3b6e035652141e90e9f3f90 100644
(file)
--- a/
hash/unihash-mkstatic.c
+++ b/
hash/unihash-mkstatic.c
@@
-187,8
+187,8
@@
int main(int argc, char *argv[])
die(EXIT_FAILURE, "not enough memory");
guard = p;
for (q = file; *q; p++, q++) {
die(EXIT_FAILURE, "not enough memory");
guard = p;
for (q = file; *q; p++, q++) {
- if (
isalnum((unsigned char)
*q))
- *p =
toupper((unsigned char)
*q);
+ if (
ISALNUM(
*q))
+ *p =
TOUPPER(
*q);
else
*p = '_';
}
else
*p = '_';
}