diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-11-16 10:52:23 -0800 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-11-16 11:10:48 -0800 |
commit | 94bea5dd6c9a06ddb6244be1e5196ff5fbe2b186 (patch) | |
tree | c50f01c72e42404c4c1a43acd14998170dfe4891 | |
parent | 083892ba18452383a1f240072d2a96dd72321a4f (diff) | |
download | gcc-94bea5dd6c9a06ddb6244be1e5196ff5fbe2b186.zip gcc-94bea5dd6c9a06ddb6244be1e5196ff5fbe2b186.tar.gz gcc-94bea5dd6c9a06ddb6244be1e5196ff5fbe2b186.tar.bz2 |
libiberity: ANSIfy test-demangle.c
Some of the function definitions used K&R style definitions (but not all).
This just moves them all to be ANSI C
Bootstrapped and tested on x86_64-linux-gnu.
libiberty/ChangeLog:
* testsuite/test-demangle.c (get_line): Change K&R style
definition into ANSI C90 definitions.
(fail): Likewise.
(main): Likewise.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
-rw-r--r-- | libiberty/testsuite/test-demangle.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c index abe9015..f79cd89 100644 --- a/libiberty/testsuite/test-demangle.c +++ b/libiberty/testsuite/test-demangle.c @@ -49,8 +49,7 @@ static unsigned int lineno; #define LINELEN 80 static void -get_line(buf) - struct line *buf; +get_line(struct line *buf) { char *data = buf->data; size_t alloc = buf->alloced; @@ -134,12 +133,8 @@ protect_end (const char * s) } static void -fail (lineno, opts, in, out, exp) - int lineno; - const char *opts; - const char *in; - const char *out; - const char *exp; +fail (int lineno, const char *opts, const char *in, + const char *out, const char *exp) { printf ("\ FAIL at line %d, options %s:\n\ @@ -170,9 +165,7 @@ exp: %s\n", */ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { enum demangling_styles style = auto_demangling; int no_params; |