From: Paul Eggert Date: Mon, 11 Mar 2013 04:02:06 +0000 (-0700) Subject: * insdel.c (adjust_after_replace): Use bool for boolean. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~573 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb0290dfa24e02a8b0967e5674e37e440c1b6e7e;p=emacs.git * insdel.c (adjust_after_replace): Use bool for boolean. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2359311f98a..8ae25e6e612 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-03-11 Paul Eggert + + * insdel.c (adjust_after_replace): Use bool for boolean. + 2013-03-11 Stefan Monnier * keyboard.c: Move keyboard decoding to read_key_sequence. diff --git a/src/insdel.c b/src/insdel.c index 992cebb04b0..5e3f4427538 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1162,16 +1162,16 @@ insert_from_buffer_1 (struct buffer *buf, /* Record undo information and adjust markers and position keepers for a replacement of a text PREV_TEXT at FROM to a new text of LEN - chars (LEN_BYTE bytes). If TEXT_AT_GAP_TAIL is zero, the new text - resides in the gap just after GPT_BYTE. Otherwise, the text - resides at the gap tail; i.e. at (GAP_END_ADDR - LEN_BNYTE). + chars (LEN_BYTE bytes). If TEXT_AT_GAP_TAIL, the new text + resides at the gap tail; i.e. at (GAP_END_ADDR - LEN_BNYTE) + Otherwise, the text resides in the gap just after GPT_BYTE. PREV_TEXT nil means the new text was just inserted. */ void adjust_after_replace (ptrdiff_t from, ptrdiff_t from_byte, Lisp_Object prev_text, ptrdiff_t len, ptrdiff_t len_byte, - int text_at_gap_tail) + bool text_at_gap_tail) { ptrdiff_t nchars_del = 0, nbytes_del = 0; diff --git a/src/lisp.h b/src/lisp.h index 171292f942e..bb9f60b29f9 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -2900,10 +2900,8 @@ extern Lisp_Object del_range_2 (ptrdiff_t, ptrdiff_t, extern void modify_region_1 (ptrdiff_t, ptrdiff_t, bool); extern void prepare_to_modify_buffer (ptrdiff_t, ptrdiff_t, ptrdiff_t *); extern void signal_after_change (ptrdiff_t, ptrdiff_t, ptrdiff_t); -extern void adjust_after_replace (ptrdiff_t from, ptrdiff_t from_byte, - Lisp_Object prev_text, - ptrdiff_t len, ptrdiff_t len_byte, - int text_at_gap_tail); +extern void adjust_after_replace (ptrdiff_t, ptrdiff_t, Lisp_Object, + ptrdiff_t, ptrdiff_t, bool); extern void adjust_after_insert (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t); extern void adjust_markers_for_delete (ptrdiff_t, ptrdiff_t,