From 2da42df615c0489291f8d3e1ce873642755a49c6 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 14 Sep 2003 12:20:17 +0000 Subject: * addr2line.c: Convert to ISO C90 prototypes, change PTR, remove unneeded (void *) casts. * ar.c: Likewise. * arlex.l: Likewise. * arparse.y: Likewise. * arsup.c: Likewise. * binemul.c: Likewise. * binemul.h: Likewise. * bucomm.c: Likewise. * bucomm.h: Likewise. * budbg.h: Likewise. * budemang.c: Likewise. * budemang.h: Likewise. * coffdump.c: Likewise. * coffgrok.c: Likewise. * cxxfilt.c: Likewise. * debug.c: Likewise. * debug.h: Likewise. * deflex.l: Likewise. * dlltool.c: Likewise. * dlltool.h: Likewise. * dllwrap.c: Likewise. * emul_aix.c: Likewise. * filemode.c: Likewise. * ieee.c: Likewise. * nlmconv.c: Likewise. * nlmconv.h: Likewise. * nlmheader.y: Likewise. * nm.c: Likewise. * prdbg.c: Likewise. * rclex.l: Likewise. * rcparse.y: Likewise. * rdcoff.c: Likewise. * rddbg.c: Likewise. * rename.c: Likewise. * resbin.c: Likewise. * rescoff.c: Likewise. * resrc.c: Likewise. * size.c: Likewise. * srconv.c: Likewise. * stabs.c: Likewise. * strings.c: Likewise. * sysdump.c: Likewise. * sysinfo.y: Likewise. * syslex.l: Likewise. * unwind-ia64.c: Likewise. * unwind-ia64.h: Likewise. * version.c: Likewise. * windres.c: Likewise. * windres.h: Likewise. * winduni.c: Likewise. * wrstabs.c: Likewise. --- binutils/cxxfilt.c | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) (limited to 'binutils/cxxfilt.c') diff --git a/binutils/cxxfilt.c b/binutils/cxxfilt.c index e4289c8ea1b..f41493b74ed 100644 --- a/binutils/cxxfilt.c +++ b/binutils/cxxfilt.c @@ -1,6 +1,6 @@ /* Demangler for GNU C++ - main program Copyright 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002 Free Software Foundation, Inc. + 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.uucp) Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling Modified by Satish Pai (pai@apollo.hp.com) for HP demangling @@ -32,13 +32,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA static int flags = DMGL_PARAMS | DMGL_ANSI | DMGL_VERBOSE; -static void demangle_it PARAMS ((char *)); -static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN; -static void print_demangler_list PARAMS ((FILE *)); +static void demangle_it (char *); +static void usage (FILE *, int) ATTRIBUTE_NORETURN; +static void print_demangler_list (FILE *); static void -demangle_it (mangled_name) - char *mangled_name; +demangle_it (char *mangled_name) { char *result; @@ -55,14 +54,13 @@ demangle_it (mangled_name) } } -static void -print_demangler_list (stream) - FILE *stream; +static void +print_demangler_list (FILE *stream) { - const struct demangler_engine *demangler; + const struct demangler_engine *demangler; fprintf (stream, "{%s", libiberty_demanglers->demangling_style_name); - + for (demangler = libiberty_demanglers + 1; demangler->demangling_style != unknown_demangling; ++demangler) @@ -72,9 +70,7 @@ print_demangler_list (stream) } static void -usage (stream, status) - FILE *stream; - int status; +usage (FILE *stream, int status) { fprintf (stream, "\ Usage: %s [-_] [-n] [--strip-underscores] [--no-strip-underscores] \n", @@ -109,18 +105,16 @@ static const struct option long_options[] = { {0, no_argument, 0, 0} }; -static const char * -standard_symbol_characters PARAMS ((void)); +static const char *standard_symbol_characters (void); -static const char * -hp_symbol_characters PARAMS ((void)); +static const char *hp_symbol_characters (void); -/* Return the string of non-alnum characters that may occur +/* Return the string of non-alnum characters that may occur as a valid symbol component, in the standard assembler symbol syntax. */ static const char * -standard_symbol_characters () +standard_symbol_characters (void) { return "_$."; } @@ -157,17 +151,15 @@ standard_symbol_characters () So have fun. */ static const char * -hp_symbol_characters () +hp_symbol_characters (void) { return "_$.<>#,*&[]:(){}"; } -extern int main PARAMS ((int, char **)); +extern int main (int, char **); int -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { char *result; int c; -- cgit v1.2.1