summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-12-03 14:36:49 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-12-03 14:36:49 -0800
commit5df474aaa900307b90d55434308c32c555314313 (patch)
treebd95be90b49d93039720ad80484e13c85b61db28 /src/undo.c
parent2654ac09ccc5da6e2fe99e60291d4c6013958c3e (diff)
downloademacs-5df474aaa900307b90d55434308c32c555314313.tar.gz
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.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c
index 234b8510f0a..88cca102b6d 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -55,7 +55,7 @@ static Lisp_Object pending_boundary;
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 @@ record_point (ptrdiff_t pt)
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 @@ record_property_change (ptrdiff_t beg, ptrdiff_t length,
{
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;