[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102492: Avoid GCC warning with inlin
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102492: Avoid GCC warning with inline functions. |
Date: |
Tue, 23 Nov 2010 22:27:22 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102492
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2010-11-23 22:27:22 +0200
message:
Avoid GCC warning with inline functions.
intervals.c (temp_set_point_both): Define before calling, to
avoid GCC warnings.
modified:
src/ChangeLog
src/intervals.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-11-23 19:36:48 +0000
+++ b/src/ChangeLog 2010-11-23 20:27:22 +0000
@@ -1,3 +1,8 @@
+2010-11-23 Eli Zaretskii <address@hidden>
+
+ * intervals.c (temp_set_point_both): Define before calling, to
+ avoid GCC warnings.
+
2010-11-23 Dan Nicolaescu <address@hidden>
* nsmenu.m: Use #include <config.h> instead of "config.h".
=== modified file 'src/intervals.c'
--- a/src/intervals.c 2010-09-23 19:18:30 +0000
+++ b/src/intervals.c 2010-11-23 20:27:22 +0000
@@ -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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102492: Avoid GCC warning with inline functions.,
Eli Zaretskii <=