HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert (most) functions in src to standard C.
[bpt/emacs.git]
/
src
/
atimer.c
diff --git
a/src/atimer.c
b/src/atimer.c
index
3ef5152
..
46c333a
100644
(file)
--- a/
src/atimer.c
+++ b/
src/atimer.c
@@
-68,7
+68,7
@@
static void set_alarm (void);
static void schedule_atimer (struct atimer *);
static struct atimer *append_atimer_lists (struct atimer *,
struct atimer *);
static void schedule_atimer (struct atimer *);
static struct atimer *append_atimer_lists (struct atimer *,
struct atimer *);
-SIGTYPE alarm_signal_handler ();
+SIGTYPE alarm_signal_handler (
int signo
);
/* Start a new atimer of type TYPE. TIME specifies when the timer is
/* Start a new atimer of type TYPE. TIME specifies when the timer is
@@
-90,11
+90,7
@@
SIGTYPE alarm_signal_handler ();
to cancel_atimer; don't free it yourself. */
struct atimer *
to cancel_atimer; don't free it yourself. */
struct atimer *
-start_atimer (type, time, fn, client_data)
- enum atimer_type type;
- EMACS_TIME time;
- atimer_callback fn;
- void *client_data;
+start_atimer (enum atimer_type type, struct timeval time, atimer_callback fn, void *client_data)
{
struct atimer *t;
{
struct atimer *t;
@@
-159,8
+155,7
@@
start_atimer (type, time, fn, client_data)
/* Cancel and free atimer TIMER. */
void
/* Cancel and free atimer TIMER. */
void
-cancel_atimer (timer)
- struct atimer *timer;
+cancel_atimer (struct atimer *timer)
{
int i;
{
int i;
@@
-199,8
+194,7
@@
cancel_atimer (timer)
result list. */
static struct atimer *
result list. */
static struct atimer *
-append_atimer_lists (list1, list2)
- struct atimer *list1, *list2;
+append_atimer_lists (struct atimer *list1, struct atimer *list2)
{
if (list1 == NULL)
return list2;
{
if (list1 == NULL)
return list2;
@@
-221,8
+215,7
@@
append_atimer_lists (list1, list2)
/* Stop all timers except timer T. T null means stop all timers. */
void
/* Stop all timers except timer T. T null means stop all timers. */
void
-stop_other_atimers (t)
- struct atimer *t;
+stop_other_atimers (struct atimer *t)
{
BLOCK_ATIMERS;
{
BLOCK_ATIMERS;
@@
-257,7
+250,7
@@
stop_other_atimers (t)
stop_other_atimers. */
void
stop_other_atimers. */
void
-run_all_atimers ()
+run_all_atimers (
void
)
{
if (stopped_atimers)
{
{
if (stopped_atimers)
{
@@
-283,8
+276,7
@@
run_all_atimers ()
/* A version of run_all_timers suitable for a record_unwind_protect. */
Lisp_Object
/* A version of run_all_timers suitable for a record_unwind_protect. */
Lisp_Object
-unwind_stop_other_atimers (dummy)
- Lisp_Object dummy;
+unwind_stop_other_atimers (Lisp_Object dummy)
{
run_all_atimers ();
return Qnil;
{
run_all_atimers ();
return Qnil;
@@
-294,7
+286,7
@@
unwind_stop_other_atimers (dummy)
/* Arrange for a SIGALRM to arrive when the next timer is ripe. */
static void
/* Arrange for a SIGALRM to arrive when the next timer is ripe. */
static void
-set_alarm ()
+set_alarm (
void
)
{
if (atimers)
{
{
if (atimers)
{
@@
-330,8
+322,7
@@
set_alarm ()
already. */
static void
already. */
static void
-schedule_atimer (t)
- struct atimer *t;
+schedule_atimer (struct atimer *t)
{
struct atimer *a = atimers, *prev = NULL;
{
struct atimer *a = atimers, *prev = NULL;
@@
-349,7
+340,7
@@
schedule_atimer (t)
}
static void
}
static void
-run_timers ()
+run_timers (
void
)
{
EMACS_TIME now;
{
EMACS_TIME now;
@@
-401,8
+392,7
@@
run_timers ()
SIGALRM. */
SIGTYPE
SIGALRM. */
SIGTYPE
-alarm_signal_handler (signo)
- int signo;
+alarm_signal_handler (int signo)
{
#ifndef SYNC_INPUT
SIGNAL_THREAD_CHECK (signo);
{
#ifndef SYNC_INPUT
SIGNAL_THREAD_CHECK (signo);
@@
-420,7
+410,7
@@
alarm_signal_handler (signo)
/* Call alarm_signal_handler for pending timers. */
void
/* Call alarm_signal_handler for pending timers. */
void
-do_pending_atimers ()
+do_pending_atimers (
void
)
{
if (pending_atimers)
{
{
if (pending_atimers)
{
@@
-435,8
+425,7
@@
do_pending_atimers ()
some systems like HPUX (see process.c). */
void
some systems like HPUX (see process.c). */
void
-turn_on_atimers (on)
- int on;
+turn_on_atimers (int on)
{
if (on)
{
{
if (on)
{
@@
-449,7
+438,7
@@
turn_on_atimers (on)
void
void
-init_atimer ()
+init_atimer (
void
)
{
free_atimers = stopped_atimers = atimers = NULL;
pending_atimers = 0;
{
free_atimers = stopped_atimers = atimers = NULL;
pending_atimers = 0;