* atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Aug 2012 08:27:08 +0000 (01:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Aug 2012 08:27:08 +0000 (01:27 -0700)
* atimer.h: Include <stdbool.h>.

src/ChangeLog
src/atimer.c
src/atimer.h

index bb1e694..3f6f6a2 100644 (file)
@@ -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
index d67e137..eb3136a 100644 (file)
@@ -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)
     {
index 4282bab..6d441d7 100644 (file)
@@ -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);