From fe3537c3a91491253a87f4d43540344d040c34e7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 23 Sep 2010 15:18:30 -0400 Subject: [PATCH] Fix last changes in editfns.c and intervals.c. editfns.c (clip_to_bounds): Return an EMACS_INT value. lisp.h (clip_to_bounds): Adjust prototype. intervals.c (adjust_for_invis_intang): Return EMACS_INT value. --- src/ChangeLog | 8 ++++++++ src/editfns.c | 2 +- src/intervals.c | 2 +- src/lisp.h | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 199495a6c13..c8ea550e18c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2010-09-23 Eli Zaretskii + + * editfns.c (clip_to_bounds): Return an EMACS_INT value. + + * lisp.h (clip_to_bounds): Adjust prototype. + + * intervals.c (adjust_for_invis_intang): Return EMACS_INT value. + 2010-09-23 Lars Magne Ingebrigtsen * lisp.h: Change the definition of all marker.c functions that diff --git a/src/editfns.c b/src/editfns.c index d8be23a8f70..f7240e99190 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -272,7 +272,7 @@ DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, return buildmark (PT, PT_BYTE); } -int +EMACS_INT clip_to_bounds (EMACS_INT lower, EMACS_INT num, EMACS_INT upper) { if (num < lower) diff --git a/src/intervals.c b/src/intervals.c index 421cce76db2..5e08e13d23b 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -1926,7 +1926,7 @@ set_point (EMACS_INT charpos) Note that `stickiness' is determined by overlay marker insertion types, if the invisible property comes from an overlay. */ -static int +static EMACS_INT adjust_for_invis_intang (EMACS_INT pos, EMACS_INT test_offs, EMACS_INT adj, int test_intang) { diff --git a/src/lisp.h b/src/lisp.h index 16c92e9afe5..5291719bea8 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -2991,7 +2991,7 @@ EXFUN (Fwiden, 0); EXFUN (Fuser_login_name, 1); EXFUN (Fsystem_name, 0); EXFUN (Fcurrent_time, 0); -extern int clip_to_bounds (EMACS_INT, EMACS_INT, EMACS_INT); +extern EMACS_INT clip_to_bounds (EMACS_INT, EMACS_INT, EMACS_INT); extern Lisp_Object make_buffer_string (EMACS_INT, EMACS_INT, int); extern Lisp_Object make_buffer_string_both (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, int); -- 2.39.5