aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-11-06 13:12:10 -0800
committerPaul Eggert2011-11-06 13:12:10 -0800
commitcb41b32a2325b0bd6e12d62cc82f2bc6dd00047a (patch)
treecac980e6ca70924145e6b79705a252c8e4f49a57 /src/ChangeLog
parentb70413668a72cbc36fba7d505131a71a847d602b (diff)
downloademacs-cb41b32a2325b0bd6e12d62cc82f2bc6dd00047a.tar.gz
emacs-cb41b32a2325b0bd6e12d62cc82f2bc6dd00047a.zip
Fix some portability problems with 'inline'.
* dispextern.h (window_box, window_box_height, window_text_bottom_y) (window_box_width, window_box_left, window_box_left_offset) (window_box_right, window_box_right_offset): Declare extern. Otherwise, these inline functions do not conform to C99 and are miscompiled by Microsoft compilers. Reported by Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>. * intervals.c (adjust_intervals_for_insertion) (adjust_intervals_for_deletion): Now extern, because otherwise the extern inline functions 'offset_intervals' couldn't refer to it. (static_offset_intervals): Remove. (offset_intervals): Rewrite using the old contents of static_offset_intervals. The old version didn't conform to C99 because an extern inline function contained a reference to an identifier with static linkage.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a134b5f4871..4074ee4e924 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,21 @@
12011-11-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix some portability problems with 'inline'.
4 * dispextern.h (window_box, window_box_height, window_text_bottom_y)
5 (window_box_width, window_box_left, window_box_left_offset)
6 (window_box_right, window_box_right_offset): Declare extern.
7 Otherwise, these inline functions do not conform to C99 and
8 are miscompiled by Microsoft compilers. Reported by Eli Zaretskii in
9 <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>.
10 * intervals.c (adjust_intervals_for_insertion)
11 (adjust_intervals_for_deletion): Now extern, because otherwise the
12 extern inline functions 'offset_intervals' couldn't refer to it.
13 (static_offset_intervals): Remove.
14 (offset_intervals): Rewrite using the old contents of
15 static_offset_intervals. The old version didn't conform to C99
16 because an extern inline function contained a reference to an
17 identifier with static linkage.
18
12011-11-06 Andreas Schwab <schwab@linux-m68k.org> 192011-11-06 Andreas Schwab <schwab@linux-m68k.org>
2 20
3 * keyboard.c (interrupt_signal): Don't call kill-emacs while in 21 * keyboard.c (interrupt_signal): Don't call kill-emacs while in