emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115367: Use bool for boolean.


From: Paul Eggert
Subject: [Emacs-diffs] trunk r115367: Use bool for boolean.
Date: Tue, 03 Dec 2013 22:36:54 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115367
revision-id: address@hidden
parent: address@hidden
author: Paul Eggert  <address@hidden>
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Tue 2013-12-03 14:36:49 -0800
message:
  Use bool for boolean.
  
  * tparam.c (tparam1):
  * undo.c (record_point, record_property_change):
  Use bool for boolean, for local vars that are always true or false.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/tparam.c                   tparam.c-20091113204419-o5vbwnq5f7feedwu-624
  src/undo.c                     undo.c-20091113204419-o5vbwnq5f7feedwu-206
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-12-03 21:37:41 +0000
+++ b/src/ChangeLog     2013-12-03 22:36:49 +0000
@@ -1,5 +1,10 @@
 2013-12-03  Paul Eggert  <address@hidden>
 
+       Use bool for boolean.
+       * tparam.c (tparam1):
+       * undo.c (record_point, record_property_change):
+       Use bool for boolean, for local vars that are always true or false.
+
        Minor integer overflow fixes (Bug#16033).
        * window.c (Fset_window_new_pixel): Don't let new_pixel go negative.
        This improves on the previous fix to this function.

=== modified file 'src/tparam.c'
--- a/src/tparam.c      2013-01-01 09:11:05 +0000
+++ b/src/tparam.c      2013-12-03 22:36:49 +0000
@@ -79,7 +79,7 @@
   register int tem;
   int *old_argp = argp;                 /* can move */
   int *fixed_argp = argp;               /* never moves */
-  int explicit_param_p = 0;             /* set by %p */
+  bool explicit_param_p = 0;            /* set by %p */
   ptrdiff_t doleft = 0;
   ptrdiff_t doup = 0;
   ptrdiff_t append_len = 0;

=== modified file 'src/undo.c'
--- a/src/undo.c        2013-07-10 06:26:23 +0000
+++ b/src/undo.c        2013-12-03 22:36:49 +0000
@@ -55,7 +55,7 @@
 static void
 record_point (ptrdiff_t pt)
 {
-  int at_boundary;
+  bool at_boundary;
 
   /* Don't record position of pt when undo_inhibit_record_point holds.  */
   if (undo_inhibit_record_point)
@@ -77,7 +77,7 @@
 
   if (CONSP (BVAR (current_buffer, undo_list)))
     {
-      /* Set AT_BOUNDARY to 1 only when we have nothing other than
+      /* Set AT_BOUNDARY only when we have nothing other than
          marker adjustment before undo boundary.  */
 
       Lisp_Object tail = BVAR (current_buffer, undo_list), elt;
@@ -244,7 +244,7 @@
 {
   Lisp_Object lbeg, lend, entry;
   struct buffer *obuf = current_buffer, *buf = XBUFFER (buffer);
-  int boundary = 0;
+  bool boundary = 0;
 
   if (EQ (BVAR (buf, undo_list), Qt))
     return;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]