Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
86c4c938
Commit
86c4c938
authored
Mar 20, 2012
by
Brad King
Browse files
Merge branch 'upstream-kwiml' into update-KWIML
parents
d69c2c58
10272e64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Utilities/KWIML/test/test_INT_format.h.in
View file @
86c4c938
...
...
@@ -25,8 +25,8 @@
T const x = VALUE(T, U); \
T y = C(V); \
printf(LANG #C ":" \
" expression [%"@KWIML@_INT_PRI##PRI"],"
\
" literal [%"@KWIML@_INT_PRI##PRI"]", x, y);
\
" expression [%"
@KWIML@_INT_PRI##PRI
"]," \
" literal [%"
@KWIML@_INT_PRI##PRI
"]", x, y); \
if(x == y) \
{ \
printf(", PASSED\n"); \
...
...
@@ -42,7 +42,7 @@
{ \
T const x = VALUE(T, U); \
char const* str = STR; \
sprintf(buf, "%"@KWIML@_INT_PRI##PRI, x);
\
sprintf(buf, "%"
@KWIML@_INT_PRI##PRI, x); \
printf(LANG "@KWIML@_INT_PRI" #PRI ":" \
" expected [%s], got [%s]", str, buf); \
if(strcmp(str, buf) == 0) \
...
...
@@ -62,13 +62,13 @@
T const x = VALUE(T, U); \
T y; \
char const* str = STR; \
if(sscanf(str, "%"@KWIML@_INT_SCN##SCN, &y) != 1)
\
if(sscanf(str, "%"
@KWIML@_INT_SCN##SCN, &y) != 1) \
{ \
y = 0; \
} \
printf(LANG "@KWIML@_INT_SCN" #SCN ":" \
" expected [%"@KWIML@_INT_PRI##PRI"],"
\
" got [%"@KWIML@_INT_PRI##PRI"]", x, y);
\
" expected [%"
@KWIML@_INT_PRI##PRI
"]," \
" got [%"
@KWIML@_INT_PRI##PRI
"]", x, y); \
if(x == y) \
{ \
printf(", PASSED\n"); \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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