Protoization.

This commit is contained in:
Kevin Buettner
2000-11-10 01:19:47 +00:00
parent e2a44558ad
commit 1669605fa3
3 changed files with 12 additions and 17 deletions

View File

@ -1,3 +1,8 @@
2000-11-09 Kevin Buettner <kevinb@redhat.com>
* values.c (value_being_returned, using_struct_return): Protoize.
* varobj.c (child_exists, cplus_class_num_children): Protoize.
2000-11-09 Kevin Buettner <kevinb@redhat.com> 2000-11-09 Kevin Buettner <kevinb@redhat.com>
Changes based on a patch from Ulrich Drepper: Changes based on a patch from Ulrich Drepper:

View File

@ -1466,12 +1466,9 @@ value_from_double (struct type *type, DOUBLEST num)
0 when it is using the value returning conventions (this often 0 when it is using the value returning conventions (this often
means returning pointer to where structure is vs. returning value). */ means returning pointer to where structure is vs. returning value). */
/* ARGSUSED */
value_ptr value_ptr
value_being_returned (valtype, retbuf, struct_return) value_being_returned (struct type *valtype, char *retbuf, int struct_return)
register struct type *valtype;
char *retbuf;
int struct_return;
/*ARGSUSED */
{ {
register value_ptr val; register value_ptr val;
CORE_ADDR addr; 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 is the type returned by the function. GCC_P is nonzero if compiled
with GCC. */ with GCC. */
/* ARGSUSED */
int int
using_struct_return (function, funcaddr, value_type, gcc_p) using_struct_return (value_ptr function, CORE_ADDR funcaddr,
value_ptr function; struct type *value_type, int gcc_p)
CORE_ADDR funcaddr;
struct type *value_type;
int gcc_p;
/*ARGSUSED */
{ {
register enum type_code code = TYPE_CODE (value_type); register enum type_code code = TYPE_CODE (value_type);

View File

@ -1216,9 +1216,7 @@ uninstall_variable (struct varobj *var)
/* Does a child with the name NAME exist in VAR? If so, return its data. /* Does a child with the name NAME exist in VAR? If so, return its data.
If not, return NULL. */ If not, return NULL. */
static struct varobj * static struct varobj *
child_exists (var, name) child_exists (struct varobj *var, char *name)
struct varobj *var; /* Parent */
char *name; /* name of child */
{ {
struct varobj_child *vc; 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 That means we need to descend into all baseclasses and find out
how many are there, too. */ how many are there, too. */
static void static void
cplus_class_num_children (type, children) cplus_class_num_children (struct type *type, int children[3])
struct type *type;
int children[3];
{ {
int i; int i;