diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-10-28 22:15:09 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-10-28 22:15:09 +0000 |
commit | fd118b61e7186b102bbae78c3855bea1c8943103 (patch) | |
tree | 838965f4c5e8276535fd60557b1e049436081224 /gdb | |
parent | 1006ba1936c68c64f91fcf904a8b22d3133feb82 (diff) | |
download | gdb-fd118b61e7186b102bbae78c3855bea1c8943103.zip gdb-fd118b61e7186b102bbae78c3855bea1c8943103.tar.gz gdb-fd118b61e7186b102bbae78c3855bea1c8943103.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 20 | ||||
-rw-r--r-- | gdb/thread.c | 5 |
3 files changed, 12 insertions, 18 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c9f3623..7f0703e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-10-28 Kevin Buettner <kevinb@redhat.com> + + * symtab.c (decode_line_2, file_matches, search_symbols): Protoize. + * thread.c (iterate_over_threads): Protoize. + 2000-10-27 J.T. Conklin <jtc@redback.com> * arch-utils.c (set_architecture, set_architecture_from_arch_mach, diff --git a/gdb/symtab.c b/gdb/symtab.c index d612072..f47d1b0 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3260,11 +3260,8 @@ decode_line_spec (char *string, int funfirstline) as canonical line specs there. */ static struct symtabs_and_lines -decode_line_2 (sym_arr, nelts, funfirstline, canonical) - struct symbol *sym_arr[]; - int nelts; - int funfirstline; - char ***canonical; +decode_line_2 (struct symbol *sym_arr[], int nelts, int funfirstline, + char ***canonical) { struct symtabs_and_lines values, return_values; char *args, *arg1; @@ -3479,10 +3476,7 @@ sources_info (char *ignore, int from_tty) } static int -file_matches (file, files, nfiles) - char *file; - char *files[]; - int nfiles; +file_matches (char *file, char *files[], int nfiles) { int i; @@ -3539,12 +3533,8 @@ make_cleanup_free_search_symbols (struct symbol_search *symbols) free_search_symbols should be called when *MATCHES is no longer needed. */ void -search_symbols (regexp, kind, nfiles, files, matches) - char *regexp; - namespace_enum kind; - int nfiles; - char *files[]; - struct symbol_search **matches; +search_symbols (char *regexp, namespace_enum kind, int nfiles, char *files[], + struct symbol_search **matches) { register struct symtab *s; diff --git a/gdb/thread.c b/gdb/thread.c index 9ae251e..94f0b3f 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -191,9 +191,8 @@ find_thread_pid (int pid) */ struct thread_info * -iterate_over_threads (callback, data) - int (*callback) (); - void *data; +iterate_over_threads (int (*callback) (struct thread_info *, void *), + void *data) { struct thread_info *tp; |