summaryrefslogtreecommitdiff
path: root/gdb/typeprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r--gdb/typeprint.c33
1 files changed, 9 insertions, 24 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 249f213794e..7645d9b081d 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -57,11 +57,8 @@ static void whatis_exp (char *, int);
If SHOW is negative, we never show the details of elements' types. */
void
-type_print (type, varstring, stream, show)
- struct type *type;
- char *varstring;
- struct ui_file *stream;
- int show;
+type_print (struct type *type, char *varstring, struct ui_file *stream,
+ int show)
{
LA_PRINT_TYPE (type, varstring, stream, show, 0);
}
@@ -70,9 +67,7 @@ type_print (type, varstring, stream, show)
show is passed to type_print. */
static void
-whatis_exp (exp, show)
- char *exp;
- int show;
+whatis_exp (char *exp, int show)
{
struct expression *expr;
register value_ptr val;
@@ -134,9 +129,7 @@ whatis_exp (exp, show)
/* ARGSUSED */
static void
-whatis_command (exp, from_tty)
- char *exp;
- int from_tty;
+whatis_command (char *exp, int from_tty)
{
/* Most of the time users do not want to see all the fields
in a structure. If they do they can use the "ptype" command.
@@ -147,8 +140,7 @@ whatis_command (exp, from_tty)
/* Simple subroutine for ptype_command. */
static struct type *
-ptype_eval (exp)
- struct expression *exp;
+ptype_eval (struct expression *exp)
{
if (exp->elts[0].opcode == OP_TYPE)
{
@@ -164,9 +156,7 @@ ptype_eval (exp)
/* ARGSUSED */
static void
-ptype_command (typename, from_tty)
- char *typename;
- int from_tty;
+ptype_command (char *typename, int from_tty)
{
register struct type *type;
struct expression *expr;
@@ -212,10 +202,7 @@ ptype_command (typename, from_tty)
that come from the inferior in target byte order and target size. */
void
-print_type_scalar (type, val, stream)
- struct type *type;
- LONGEST val;
- struct ui_file *stream;
+print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
{
unsigned int i;
unsigned len;
@@ -288,9 +275,7 @@ print_type_scalar (type, val, stream)
and whatis_command(). */
void
-maintenance_print_type (typename, from_tty)
- char *typename;
- int from_tty;
+maintenance_print_type (char *typename, int from_tty)
{
register value_ptr val;
register struct type *type;
@@ -323,7 +308,7 @@ maintenance_print_type (typename, from_tty)
void
-_initialize_typeprint ()
+_initialize_typeprint (void)
{
add_com ("ptype", class_vars, ptype_command,