~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb]
/
symm
/
pmac1-def.h
diff --git
a/symm/pmac1-def.h
b/symm/pmac1-def.h
index
4b0da04
..
5df9338
100644
(file)
--- a/
symm/pmac1-def.h
+++ b/
symm/pmac1-def.h
@@
-288,6
+288,7
@@
PMAC1_TESTX(PRE, pre, name, fname)
#include <stdio.h>
#include <mLib/dstr.h>
#include <stdio.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include <mLib/quis.h>
#include <mLib/testrig.h>
#include <mLib/quis.h>
#include <mLib/testrig.h>
@@
-327,7
+328,7
@@
static int macverify(dstr *v) \
csz -= i; \
} \
pre##_pmac1done(&cctx, d.buf); \
csz -= i; \
} \
pre##_pmac1done(&cctx, d.buf); \
- if (
memcmp(d.buf, v[2].buf, PRE##_BLKSZ) != 0) {
\
+ if (
MEMCMP(d.buf, !=, v[2].buf, PRE##_BLKSZ)) {
\
printf("\nfail:\n\tstep = %i\n\tkey = ", *ip); \
type_hex.dump(&v[0], stdout); \
fputs("\n\tinput = ", stdout); \
printf("\nfail:\n\tstep = %i\n\tkey = ", *ip); \
type_hex.dump(&v[0], stdout); \
fputs("\n\tinput = ", stdout); \