Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Gustedt
P99 - macros and functions for C99
Commits
ee5a2972
Commit
ee5a2972
authored
Dec 07, 2012
by
(no author)
Committed by
Jens Gustedt
Dec 07, 2012
Browse files
whitespace
Signed-off-by:
Jens Gustedt
<
Jens.Gustedt@loria.fr
>
parent
fd6fee69
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test-p99-rand.c
View file @
ee5a2972
...
@@ -51,13 +51,13 @@ int dComp(void const*a, void const*b, void*context) {
...
@@ -51,13 +51,13 @@ int dComp(void const*a, void const*b, void*context) {
}
}
}
}
#define TEST_MISMATCH(S, A, N, CMP, CTX) \
#define TEST_MISMATCH(S, A, N, CMP, CTX)
\
do { \
do {
\
rsize_t mm = p99_mismatch((A), (N), sizeof (A)[0], (CMP), (CTX)); \
rsize_t mm = p99_mismatch((A), (N), sizeof (A)[0], (CMP), (CTX));
\
if (mm < (N)) \
if (mm < (N))
\
P99_FPRINTF(stderr, "mismatch %s with context %s at position %s, %s > %s\n", (char const*)(S), (CTX), mm, (A)[mm - 1], (A)[mm]); \
P99_FPRINTF(stderr, "mismatch %s with context %s at position %s, %s > %s\n", (char const*)(S), (CTX), mm, (A)[mm - 1], (A)[mm]); \
else \
else
\
P99_FPRINTF(stderr, "no mismatch %s with context %s\n", (char const*)(S), (CTX)); \
P99_FPRINTF(stderr, "no mismatch %s with context %s\n", (char const*)(S), (CTX));
\
} while(false)
} while(false)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment