This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
PATCH: Eliminate some uses of PTR.
- To: gdb at sourceware dot cygnus dot com
- Subject: PATCH: Eliminate some uses of PTR.
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Fri, 3 Mar 2000 10:52:04 -0500 (EST)
This eliminates uses of PTR from event-loop.h, event-top.c.
I've checked this in.
Elena
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.96
diff -c -r1.96 ChangeLog
*** ChangeLog 2000/03/03 02:18:26 1.96
--- ChangeLog 2000/03/03 15:26:44
***************
*** 1,3 ****
--- 1,12 ----
+ 2000-03-03 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
+
+ * defs.h (struct continuation_arg): Change type of field 'data'
+ from PTR to void *.
+
+ * event-loop.h: Eliminate uses of PTR, use 'void *' instead.
+
+ * event-top.c: Ditto.
+
2000-03-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/alpha/alpha-linux.mh: Remove core-regset.o fron the
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.4
diff -c -r1.4 defs.h
*** defs.h 2000/02/24 00:04:03 1.4
--- defs.h 2000/03/03 15:26:44
***************
*** 613,619 ****
struct continuation_arg
{
struct continuation_arg *next;
! PTR data;
};
struct continuation
--- 613,619 ----
struct continuation_arg
{
struct continuation_arg *next;
! void *data;
};
struct continuation
Index: event-loop.h
===================================================================
RCS file: /cvs/src/src/gdb/event-loop.h,v
retrieving revision 1.1.1.15
diff -c -r1.1.1.15 event-loop.h
*** event-loop.h 1999/10/05 23:08:11 1.1.1.15
--- event-loop.h 2000/03/03 15:26:44
***************
*** 57,63 ****
Corollary tasks are the creation and deletion of event sources. */
! typedef PTR gdb_client_data;
struct async_signal_handler;
typedef void (handler_func) (int, gdb_client_data);
typedef void (sig_handler_func) (gdb_client_data);
--- 57,63 ----
Corollary tasks are the creation and deletion of event sources. */
! typedef void * gdb_client_data;
struct async_signal_handler;
typedef void (handler_func) (int, gdb_client_data);
typedef void (sig_handler_func) (gdb_client_data);
Index: event-top.c
===================================================================
RCS file: /cvs/src/src/gdb/event-top.c,v
retrieving revision 1.2
diff -c -r1.2 event-top.c
*** event-top.c 2000/02/23 00:25:42 1.2
--- event-top.c 2000/03/03 15:26:44
***************
*** 129,145 ****
handlers mark these functions as ready to be executed and the event
loop, in a later iteration, calls them. See the function
invoke_async_signal_handler. */
! PTR sigint_token;
#ifdef SIGHUP
! PTR sighup_token;
#endif
! PTR sigquit_token;
! PTR sigfpe_token;
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
! PTR sigwinch_token;
#endif
#ifdef STOP_SIGNAL
! PTR sigtstp_token;
#endif
/* Structure to save a partially entered command. This is used when
--- 129,145 ----
handlers mark these functions as ready to be executed and the event
loop, in a later iteration, calls them. See the function
invoke_async_signal_handler. */
! void *sigint_token;
#ifdef SIGHUP
! void *sighup_token;
#endif
! void *sigquit_token;
! void *sigfpe_token;
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
! void *sigwinch_token;
#endif
#ifdef STOP_SIGNAL
! void *sigtstp_token;
#endif
/* Structure to save a partially entered command. This is used when
***************
*** 525,532 ****
(struct continuation_arg *) xmalloc (sizeof (struct continuation_arg));
arg1->next = arg2;
arg2->next = NULL;
! arg1->data = (PTR) time_at_cmd_start;
! arg2->data = (PTR) space_at_cmd_start;
add_continuation (command_line_handler_continuation, arg1);
}
--- 525,532 ----
(struct continuation_arg *) xmalloc (sizeof (struct continuation_arg));
arg1->next = arg2;
arg2->next = NULL;
! arg1->data = (void *) time_at_cmd_start;
! arg2->data = (void *) space_at_cmd_start;
add_continuation (command_line_handler_continuation, arg1);
}
***************
*** 957,963 ****
}
void
! mark_async_signal_handler_wrapper (PTR token)
{
mark_async_signal_handler ((struct async_signal_handler *) token);
}
--- 957,963 ----
}
void
! mark_async_signal_handler_wrapper (void *token)
{
mark_async_signal_handler ((struct async_signal_handler *) token);
}