diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-11-23 22:27:22 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-11-23 22:27:22 +0200 |
commit | f8ab8c1f816bac2eebb86581bc50cd1434effe50 (patch) | |
tree | d936fe3a9f524ac0cc3a907053daf9de64febf23 /src/intervals.c | |
parent | 628e219faf38943e266eb0286ddda7e1390cb0bf (diff) | |
download | emacs-f8ab8c1f816bac2eebb86581bc50cd1434effe50.tar.gz |
Avoid GCC warning with inline functions.
intervals.c (temp_set_point_both): Define before calling, to
avoid GCC warnings.
Diffstat (limited to 'src/intervals.c')
-rw-r--r-- | src/intervals.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/intervals.c b/src/intervals.c index 5e08e13d23b..def63c43cc4 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -1875,15 +1875,6 @@ lookup_char_property (Lisp_Object plist, register Lisp_Object prop, int textprop } -/* 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 @@ temp_set_point_both (struct buffer *buffer, 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. */ |