diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/mi | |
parent | 29e6d33b03a5e39540d17bc8235573b1dac13341 (diff) | |
download | gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmds.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 9 | ||||
-rw-r--r-- | gdb/mi/mi-out.c | 60 | ||||
-rw-r--r-- | gdb/mi/mi-parse.c | 2 |
4 files changed, 21 insertions, 52 deletions
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index f03d5be..ff8b537 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -253,7 +253,7 @@ build_table (struct mi_cmd *commands) } void -_initialize_mi_cmds () +_initialize_mi_cmds (void) { build_table (mi_cmds); memset (&stats, 0, sizeof (stats)); diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index b7b5ae3..12be2b7 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1412,7 +1412,7 @@ mi_load_progress (const char *section_name, } static void -mi_command_loop () +mi_command_loop (void) { /* HACK: Force stdout/stderr to point at the console. This avoids any potential side effects caused by legacy code that is still @@ -1468,7 +1468,7 @@ mi_command_loop () } static void -setup_architecture_data () +setup_architecture_data (void) { /* don't trust REGISTER_BYTES to be zero. */ old_regs = xmalloc (REGISTER_BYTES + 1); @@ -1476,15 +1476,14 @@ setup_architecture_data () } static void -mi_init_ui (arg0) - char *arg0; +mi_init_ui (char *arg0) { /* Eventually this will contain code that takes control of the console. */ } void -_initialize_mi_main () +_initialize_mi_main (void) { /* If we're _the_ interpreter, take control. */ if (interpreter_p diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 8554a88..e70ba28 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -99,10 +99,7 @@ static void out_field_fmt (struct ui_out *uiout, int fldno, char *fldname, /* Mark beginning of a table */ void -mi_table_begin (uiout, nbrofcols, tblid) - struct ui_out *uiout; - int nbrofcols; - char *tblid; +mi_table_begin (struct ui_out *uiout, int nbrofcols, char *tblid) { struct ui_out_data *data = ui_out_data (uiout); field_separator (uiout); @@ -116,8 +113,7 @@ mi_table_begin (uiout, nbrofcols, tblid) /* Mark beginning of a table body */ void -mi_table_body (uiout) - struct ui_out *uiout; +mi_table_body (struct ui_out *uiout) { struct ui_out_data *data = ui_out_data (uiout); /* close the table header line if there were any headers */ @@ -128,8 +124,7 @@ mi_table_body (uiout) /* Mark end of a table */ void -mi_table_end (uiout) - struct ui_out *uiout; +mi_table_end (struct ui_out *uiout) { struct ui_out_data *data = ui_out_data (uiout); list_close (uiout); @@ -140,11 +135,7 @@ mi_table_end (uiout) /* Specify table header */ void -mi_table_header (uiout, width, alignment, colhdr) - struct ui_out *uiout; - int width; - int alignment; - char *colhdr; +mi_table_header (struct ui_out *uiout, int width, int alignment, char *colhdr) { struct ui_out_data *data = ui_out_data (uiout); if (!data->first_header++) @@ -158,10 +149,7 @@ mi_table_header (uiout, width, alignment, colhdr) /* Mark beginning of a list */ void -mi_list_begin (uiout, list_flag, lstid) - struct ui_out *uiout; - int list_flag; - char *lstid; +mi_list_begin (struct ui_out *uiout, int list_flag, char *lstid) { struct ui_out_data *data = ui_out_data (uiout); field_separator (uiout); @@ -174,9 +162,7 @@ mi_list_begin (uiout, list_flag, lstid) /* Mark end of a list */ void -mi_list_end (uiout, list_flag) - struct ui_out *uiout; - int list_flag; +mi_list_end (struct ui_out *uiout, int list_flag) { struct ui_out_data *data = ui_out_data (uiout); list_close (uiout); @@ -187,13 +173,8 @@ mi_list_end (uiout, list_flag) /* output an int field */ void -mi_field_int (uiout, fldno, width, alignment, fldname, value) - struct ui_out *uiout; - int fldno; - int width; - int alignment; - char *fldname; - int value; +mi_field_int (struct ui_out *uiout, int fldno, int width, int alignment, + char *fldname, int value) { char buffer[20]; /* FIXME: how many chars long a %d can become? */ @@ -204,12 +185,8 @@ mi_field_int (uiout, fldno, width, alignment, fldname, value) /* used to ommit a field */ void -mi_field_skip (uiout, fldno, width, alignment, fldname) - struct ui_out *uiout; - int fldno; - int width; - int alignment; - char *fldname; +mi_field_skip (struct ui_out *uiout, int fldno, int width, int alignment, + char *fldname) { mi_field_string (uiout, fldno, width, alignment, fldname, ""); } @@ -253,16 +230,12 @@ mi_field_fmt (struct ui_out *uiout, int fldno, } void -mi_spaces (uiout, numspaces) - struct ui_out *uiout; - int numspaces; +mi_spaces (struct ui_out *uiout, int numspaces) { } void -mi_text (uiout, string) - struct ui_out *uiout; - char *string; +mi_text (struct ui_out *uiout, char *string) { } @@ -272,16 +245,13 @@ mi_message (struct ui_out *uiout, int verbosity, char *format, va_list args) } void -mi_wrap_hint (uiout, identstring) - struct ui_out *uiout; - char *identstring; +mi_wrap_hint (struct ui_out *uiout, char *identstring) { wrap_here (identstring); } void -mi_flush (uiout) - struct ui_out *uiout; +mi_flush (struct ui_out *uiout) { struct ui_out_data *data = ui_out_data (uiout); gdb_flush (data->buffer); @@ -391,7 +361,7 @@ mi_out_new (void) /* standard gdb initialization hook */ void -_initialize_mi_out () +_initialize_mi_out (void) { /* nothing happens here */ } diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c index 26c47a8..a739043 100644 --- a/gdb/mi/mi-parse.c +++ b/gdb/mi/mi-parse.c @@ -234,6 +234,6 @@ mi_parse (char *cmd) } void -_initialize_mi_parse () +_initialize_mi_parse (void) { } |