Cleanup mpz_out_str in tests

Seth Troisi braintwo at gmail.com
Thu Mar 26 01:15:14 UTC 2020


This cleans up a number of

printf(...)
mpz_out_str(stdout, 10/16, var);
printf(...);

and replaces them with

gmp_printf(...%Zd..., var);

In tests/mpz/t-scan.c
"0x" was replaced with "%XZX which is "0X"
In tests/rand/statlib.c (tests/rand/statlib and findlc seem to not compile)
I added a space to align "hp =" and "h  ="

This is the easiest cases, if it get's the okay I'll fix the rest (mostly
gmp_fprintf(stderr))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests_mpz_out_str.patch
Type: text/x-patch
Size: 10958 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-devel/attachments/20200325/f10a4d34/attachment.bin>


More information about the gmp-devel mailing list