Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
d868fb95
Commit
d868fb95
authored
Sep 22, 1998
by
Niels Möller
Browse files
New function werror_mpz.
Rev: src/werror.c:1.8 Rev: src/werror.h:1.7
parent
f768a59a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/werror.c
View file @
d868fb95
...
...
@@ -69,7 +69,7 @@ void verbose(char *format, ...)
}
}
void
wash_char
(
UINT8
c
)
static
void
wash_char
(
UINT8
c
)
{
switch
(
c
)
{
...
...
@@ -93,7 +93,7 @@ void wash_char(UINT8 c)
}
/* Escape non-printable characters. */
void
werror_washed
(
UINT32
length
,
UINT8
*
msg
)
static
void
werror_washed
(
UINT32
length
,
UINT8
*
msg
)
{
int
i
;
...
...
@@ -166,3 +166,9 @@ void fatal(char *format, ...)
abort
();
}
void
werror_mpz
(
mpz_t
n
)
{
mpz_out_str
(
stderr
,
16
,
n
);
putc
(
'\n'
,
stderr
);
}
src/werror.h
View file @
d868fb95
...
...
@@ -28,6 +28,8 @@
#include
"lsh_types.h"
#include
"bignum.h"
/* Global variables */
extern
int
debug_flag
;
extern
int
quiet_flag
;
...
...
@@ -46,4 +48,6 @@ void werror_safe_utf8(UINT32 length, UINT8 *msg);
void
fatal
(
char
*
format
,
...)
PRINTF_STYLE
(
1
,
2
)
NORETURN
;
void
werror_mpz
(
mpz_t
n
);
#endif
/* LSH_ERROR_H_INCLUDED */
Write
Preview
Supports
Markdown
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