Commit 69fe6543 authored by Niels Möller's avatar Niels Möller
Browse files

*_mpz output functions.

Rev: src/werror.c:1.9
Rev: src/werror.h:1.8
parent 7233fda2
......@@ -169,6 +169,18 @@ void fatal(char *format, ...)
void werror_mpz(mpz_t n)
{
if (!quiet_flag)
mpz_out_str(stderr, 16, n);
}
void debug_mpz(mpz_t n)
{
if (debug_flag)
mpz_out_str(stderr, 16, n);
}
void verbose_mpz(mpz_t n)
{
if (verbose_flag)
mpz_out_str(stderr, 16, n);
putc('\n', stderr);
}
......@@ -49,5 +49,7 @@ void werror_safe_utf8(UINT32 length, UINT8 *msg);
void fatal(char *format, ...) PRINTF_STYLE(1,2) NORETURN;
void werror_mpz(mpz_t n);
void debug_mpz(mpz_t n);
void verbose_mpz(mpz_t n);
#endif /* LSH_ERROR_H_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment