diff options
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/atimer.c | 2 | ||||
-rw-r--r-- | src/atimer.h | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bb1e694825a..3f6f6a272f0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-08-23 Paul Eggert <eggert@cs.ucla.edu> + + * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean. + * atimer.h: Include <stdbool.h>. + 2012-08-22 Dan Nicolaescu <dann@gnu.org> * frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_NS_P): Change to diff --git a/src/atimer.c b/src/atimer.c index d67e1375f9a..eb3136ae55d 100644 --- a/src/atimer.c +++ b/src/atimer.c @@ -408,7 +408,7 @@ do_pending_atimers (void) some systems like HPUX (see process.c). */ void -turn_on_atimers (int on) +turn_on_atimers (bool on) { if (on) { diff --git a/src/atimer.h b/src/atimer.h index 4282bab49ba..6d441d71641 100644 --- a/src/atimer.h +++ b/src/atimer.h @@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define EMACS_ATIMER_H #include "systime.h" /* for EMACS_TIME */ +#include <stdbool.h> /* Forward declaration. */ @@ -74,7 +75,7 @@ struct atimer *start_atimer (enum atimer_type, EMACS_TIME, void cancel_atimer (struct atimer *); void do_pending_atimers (void); void init_atimer (void); -void turn_on_atimers (int); +void turn_on_atimers (bool); void stop_other_atimers (struct atimer *); Lisp_Object unwind_stop_other_atimers (Lisp_Object); |