aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-18 09:39:15 -0700
committerPaul Eggert2011-03-18 09:39:15 -0700
commit235d7abc8e825c66c642023ff6290ae83f6dac86 (patch)
tree6e5a3d144ea5bbdbf4b032e63ef7fb3fa51a4ce8 /src
parentc83b88720cb825690820f549c1a070766b685f76 (diff)
downloademacs-235d7abc8e825c66c642023ff6290ae83f6dac86.tar.gz
emacs-235d7abc8e825c66c642023ff6290ae83f6dac86.zip
* intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/intervals.h10
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 576bbf50157..89e054f62b0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-03-18 Paul Eggert <eggert@cs.ucla.edu> 12011-03-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
4
3 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename 5 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
4 locals to avoid shadowing. 6 locals to avoid shadowing.
5 7
diff --git a/src/intervals.h b/src/intervals.h
index f6c1c002ce0..d7c34012e1f 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -161,8 +161,13 @@ struct interval
161 (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) 161 (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0)
162 162
163/* Abort if interval I's size is negative. */ 163/* Abort if interval I's size is negative. */
164#define CHECK_TOTAL_LENGTH(i) \ 164#define CHECK_TOTAL_LENGTH(i) \
165 if ((int) (i)->total_length < 0) abort (); else 165 do \
166 { \
167 if ((int) (i)->total_length < 0) \
168 abort (); \
169 } \
170 while (0)
166 171
167/* Reset this interval to its vanilla, or no-property state. */ 172/* Reset this interval to its vanilla, or no-property state. */
168#define RESET_INTERVAL(i) \ 173#define RESET_INTERVAL(i) \
@@ -339,4 +344,3 @@ extern Lisp_Object get_pos_property (Lisp_Object pos, Lisp_Object prop,
339extern void syms_of_textprop (void); 344extern void syms_of_textprop (void);
340 345
341#include "composite.h" 346#include "composite.h"
342