summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
420731b)
Some very old printf implementations (e.g., on ULTRIX 4.5) do not
support negative precision with %.*s conversions in order to behave
as if the precision was omitted.
It is easy to change the rendertest program to avoid this problem,
so let's change it.
- printf("%lu %.*s\n", (unsigned long)rc, -(n>0), line);
+ printf(n > 0 ? "%lu %s\n" : "%lu\n", (unsigned long)rc, line);
cdecl_free(decl);
return 0;
}
cdecl_free(decl);
return 0;
}
]])
AT_CHECK([rendertest -n 0 <input], [0],
]])
AT_CHECK([rendertest -n 0 <input], [0],
]])
AT_CHECK([rendertest -n 10 <input], [0],
]])
AT_CHECK([rendertest -n 10 <input], [0],
]])
AT_CHECK([rendertest --english -n 0 <input], [0],
]])
AT_CHECK([rendertest --english -n 0 <input], [0],
]])
AT_CHECK([rendertest --english -n 15 <input], [0],
]])
AT_CHECK([rendertest --english -n 15 <input], [0],