~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
/
crc-mktab.c
diff --git
a/hash/crc-mktab.c
b/hash/crc-mktab.c
index
4453cf3
..
a176d16
100644
(file)
--- a/
hash/crc-mktab.c
+++ b/
hash/crc-mktab.c
@@
-37,6
+37,7
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include "macros.h"
#include "mdwopt.h"
#include "quis.h"
#include "report.h"
#include "mdwopt.h"
#include "quis.h"
#include "report.h"
@@
-266,8
+267,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 = '_';
}