Mercurial > emacs
diff src/intervals.c @ 111692:565fc8de76e1
Avoid GCC warning with inline functions.
intervals.c (temp_set_point_both): Define before calling, to
avoid GCC warnings.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 23 Nov 2010 22:27:22 +0200 |
parents | ba79df773e8d |
children | 417b1e4d63cd |
line wrap: on
line diff
--- a/src/intervals.c Tue Nov 23 22:21:16 2010 +0200 +++ b/src/intervals.c Tue Nov 23 22:27:22 2010 +0200 @@ -1875,15 +1875,6 @@ } -/* Set point "temporarily", without checking any text properties. */ - -INLINE void -temp_set_point (struct buffer *buffer, EMACS_INT charpos) -{ - temp_set_point_both (buffer, charpos, - buf_charpos_to_bytepos (buffer, charpos)); -} - /* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to byte position BYTEPOS. */ @@ -1906,6 +1897,15 @@ BUF_PT (buffer) = charpos; } +/* Set point "temporarily", without checking any text properties. */ + +INLINE void +temp_set_point (struct buffer *buffer, EMACS_INT charpos) +{ + temp_set_point_both (buffer, charpos, + buf_charpos_to_bytepos (buffer, charpos)); +} + /* Set point in BUFFER to CHARPOS. If the target position is before an intangible character, move to an ok place. */