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]
/
struct
/
t
/
dstr-putf-test.c
diff --git
a/struct/t/dstr-putf-test.c
b/struct/t/dstr-putf-test.c
index 5de787075b8f74a4bbcefae3a0476d8ce915d08f..462371d5e8d37b92908da475246093d3b499500e 100644
(file)
--- a/
struct/t/dstr-putf-test.c
+++ b/
struct/t/dstr-putf-test.c
@@
-8,6
+8,7
@@
#include <string.h>
#include "dstr.h"
#include <string.h>
#include "dstr.h"
+#include "macros.h"
static int win = 0, lose = 0;
static dstr d = DSTR_INIT;
static int win = 0, lose = 0;
static dstr d = DSTR_INIT;
@@
-15,7
+16,7
@@
static char buf[1024];
static void check(const char *what, const char *want)
{
static void check(const char *what, const char *want)
{
- if (
strcmp(want, d.buf) == 0
)
+ if (
STRCMP(want, ==, d.buf)
)
win++;
else {
lose++;
win++;
else {
lose++;