This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH RFC] PARAMS elimination: tui/tuiIO.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] PARAMS elimination: tui/tuiIO.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Thu, 15 Jun 2000 19:20:19 -0700
More PARAMS elminiation... I'll wait two days for comments / objections
before committing the changes below.
* tui/tuiIO.c: Eliminate use of PARAMS from this file.
Index: tui/tuiIO.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiIO.c,v
retrieving revision 1.3
diff -u -r1.3 tuiIO.c
--- tuiIO.c 2000/06/04 00:41:10 1.3
+++ tuiIO.c 2000/06/16 02:15:46
@@ -602,7 +602,7 @@
{
/* Un-do the effect of the memory lock in terminal_inferior() */
- tputs (term_memory_unlock, 1, (int (*)PARAMS ((int))) putchar);
+ tputs (term_memory_unlock, 1, (int (*) (int)) putchar);
fflush (stdout);
}
@@ -618,7 +618,7 @@
/* Set scroll region to be 0..end */
buffer = (char *) tgoto (term_scroll_region, end, 0);
- tputs (buffer, 1, (int (*)PARAMS ((int))) putchar);
+ tputs (buffer, 1, (int (*) (int)) putchar);
} /* else we're out of luck */
@@ -708,8 +708,8 @@
* So first position the cursor, then call memory lock.
*/
buffer = tgoto (term_cursor_move, 0, start);
- tputs (buffer, 1, (int (*)PARAMS ((int))) putchar);
- tputs (term_memory_lock, 1, (int (*)PARAMS ((int))) putchar);
+ tputs (buffer, 1, (int (*) (int)) putchar);
+ tputs (term_memory_lock, 1, (int (*) (int)) putchar);
}
else if (term_scroll_region)
@@ -717,17 +717,17 @@
/* Set the scroll region to the command window */
buffer = tgoto (term_scroll_region, end, start);
- tputs (buffer, 1, (int (*)PARAMS ((int))) putchar);
+ tputs (buffer, 1, (int (*) (int)) putchar);
} /* else we can't do anything about target I/O */
/* Also turn off standout mode, in case it is on */
if (term_se != NULL)
- tputs (term_se, 1, (int (*)PARAMS ((int))) putchar);
+ tputs (term_se, 1, (int (*) (int)) putchar);
/* Now go to the appropriate spot on the end line */
buffer = tgoto (term_cursor_move, to_column, end);
- tputs (buffer, 1, (int (*)PARAMS ((int))) putchar);
+ tputs (buffer, 1, (int (*) (int)) putchar);
fflush (stdout);
tui_owns_terminal = 0;