From 1669605fa37c222cbce9fa3a1e56feb69c2a7b74 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Fri, 10 Nov 2000 01:19:47 +0000 Subject: [PATCH] Protoization. --- gdb/ChangeLog | 5 +++++ gdb/values.c | 16 +++++----------- gdb/varobj.c | 8 ++------ 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 20812839594..424818ce895 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-11-09 Kevin Buettner + + * values.c (value_being_returned, using_struct_return): Protoize. + * varobj.c (child_exists, cplus_class_num_children): Protoize. + 2000-11-09 Kevin Buettner Changes based on a patch from Ulrich Drepper: diff --git a/gdb/values.c b/gdb/values.c index 3f7c2d5ca21..bd4d1af82c4 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -1466,12 +1466,9 @@ value_from_double (struct type *type, DOUBLEST num) 0 when it is using the value returning conventions (this often means returning pointer to where structure is vs. returning value). */ +/* ARGSUSED */ value_ptr -value_being_returned (valtype, retbuf, struct_return) - register struct type *valtype; - char *retbuf; - int struct_return; - /*ARGSUSED */ +value_being_returned (struct type *valtype, char *retbuf, int struct_return) { register value_ptr val; CORE_ADDR addr; @@ -1530,13 +1527,10 @@ generic_use_struct_convention (int gcc_p, struct type *value_type) is the type returned by the function. GCC_P is nonzero if compiled with GCC. */ +/* ARGSUSED */ int -using_struct_return (function, funcaddr, value_type, gcc_p) - value_ptr function; - CORE_ADDR funcaddr; - struct type *value_type; - int gcc_p; - /*ARGSUSED */ +using_struct_return (value_ptr function, CORE_ADDR funcaddr, + struct type *value_type, int gcc_p) { register enum type_code code = TYPE_CODE (value_type); diff --git a/gdb/varobj.c b/gdb/varobj.c index 1ebf21c17e7..799558b8445 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1216,9 +1216,7 @@ uninstall_variable (struct varobj *var) /* Does a child with the name NAME exist in VAR? If so, return its data. If not, return NULL. */ static struct varobj * -child_exists (var, name) - struct varobj *var; /* Parent */ - char *name; /* name of child */ +child_exists (struct varobj *var, char *name) { struct varobj_child *vc; @@ -2156,9 +2154,7 @@ cplus_number_of_children (struct varobj *var) That means we need to descend into all baseclasses and find out how many are there, too. */ static void -cplus_class_num_children (type, children) - struct type *type; - int children[3]; +cplus_class_num_children (struct type *type, int children[3]) { int i; -- 2.30.2