aboutsummaryrefslogtreecommitdiffstats
path: root/src/intervals.c
diff options
context:
space:
mode:
authorJoakim Verona2012-09-10 16:03:53 +0200
committerJoakim Verona2012-09-10 16:03:53 +0200
commitb035a30e5cd2f34fedc04c253eeb5a11afed8145 (patch)
treeb9350cce389602f4967bdc1beed745929155ad5d /src/intervals.c
parent4a37733c693d59a9b83a3fb2d0c7f9461d149f60 (diff)
parenta31a4cdacb196cc96dcb9bd229edb1d635e01344 (diff)
downloademacs-b035a30e5cd2f34fedc04c253eeb5a11afed8145.tar.gz
emacs-b035a30e5cd2f34fedc04c253eeb5a11afed8145.zip
upstream
Diffstat (limited to 'src/intervals.c')
-rw-r--r--src/intervals.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 49d61b2f9b0..e508f968963 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -199,13 +199,13 @@ intervals_equal (INTERVAL i0, INTERVAL i1)
199 i0_sym = XCAR (i0_cdr); 199 i0_sym = XCAR (i0_cdr);
200 i0_cdr = XCDR (i0_cdr); 200 i0_cdr = XCDR (i0_cdr);
201 if (!CONSP (i0_cdr)) 201 if (!CONSP (i0_cdr))
202 return 0; /* abort (); */ 202 return 0;
203 i1_val = i1->plist; 203 i1_val = i1->plist;
204 while (CONSP (i1_val) && !EQ (XCAR (i1_val), i0_sym)) 204 while (CONSP (i1_val) && !EQ (XCAR (i1_val), i0_sym))
205 { 205 {
206 i1_val = XCDR (i1_val); 206 i1_val = XCDR (i1_val);
207 if (!CONSP (i1_val)) 207 if (!CONSP (i1_val))
208 return 0; /* abort (); */ 208 return 0;
209 i1_val = XCDR (i1_val); 209 i1_val = XCDR (i1_val);
210 } 210 }
211 211
@@ -223,7 +223,7 @@ intervals_equal (INTERVAL i0, INTERVAL i1)
223 223
224 i1_cdr = XCDR (i1_cdr); 224 i1_cdr = XCDR (i1_cdr);
225 if (!CONSP (i1_cdr)) 225 if (!CONSP (i1_cdr))
226 return 0; /* abort (); */ 226 return 0;
227 i1_cdr = XCDR (i1_cdr); 227 i1_cdr = XCDR (i1_cdr);
228 } 228 }
229 229
@@ -1253,7 +1253,7 @@ delete_interval (register INTERVAL i)
1253 else if (STRINGP (owner)) 1253 else if (STRINGP (owner))
1254 set_string_intervals (owner, parent); 1254 set_string_intervals (owner, parent);
1255 else 1255 else
1256 abort (); 1256 emacs_abort ();
1257 1257
1258 return; 1258 return;
1259 } 1259 }
@@ -1408,7 +1408,7 @@ offset_intervals (struct buffer *buffer, ptrdiff_t start, ptrdiff_t length)
1408 start, length); 1408 start, length);
1409 else 1409 else
1410 { 1410 {
1411 IF_LINT (if (length < - TYPE_MAXIMUM (ptrdiff_t)) abort ();) 1411 lint_assume (- TYPE_MAXIMUM (ptrdiff_t) <= length);
1412 adjust_intervals_for_deletion (buffer, start, -length); 1412 adjust_intervals_for_deletion (buffer, start, -length);
1413 } 1413 }
1414} 1414}
@@ -1468,7 +1468,7 @@ merge_interval_right (register INTERVAL i)
1468 1468
1469 /* This must be the rightmost or last interval and cannot 1469 /* This must be the rightmost or last interval and cannot
1470 be merged right. The caller should have known. */ 1470 be merged right. The caller should have known. */
1471 abort (); 1471 emacs_abort ();
1472} 1472}
1473 1473
1474/* Merge interval I with its lexicographic predecessor. The resulting 1474/* Merge interval I with its lexicographic predecessor. The resulting
@@ -1524,7 +1524,7 @@ merge_interval_left (register INTERVAL i)
1524 1524
1525 /* This must be the leftmost or first interval and cannot 1525 /* This must be the leftmost or first interval and cannot
1526 be merged left. The caller should have known. */ 1526 be merged left. The caller should have known. */
1527 abort (); 1527 emacs_abort ();
1528} 1528}
1529 1529
1530/* Create a copy of SOURCE but with the default value of UP. */ 1530/* Create a copy of SOURCE but with the default value of UP. */
@@ -2170,7 +2170,7 @@ get_property_and_range (ptrdiff_t pos, Lisp_Object prop, Lisp_Object *val,
2170 else if (STRINGP (object)) 2170 else if (STRINGP (object))
2171 i = find_interval (string_intervals (object), pos); 2171 i = find_interval (string_intervals (object), pos);
2172 else 2172 else
2173 abort (); 2173 emacs_abort ();
2174 2174
2175 if (!i || (i->position + LENGTH (i) <= pos)) 2175 if (!i || (i->position + LENGTH (i) <= pos))
2176 return 0; 2176 return 0;
@@ -2209,7 +2209,7 @@ get_local_map (register ptrdiff_t position, register struct buffer *buffer,
2209 2209
2210 /* Perhaps we should just change `position' to the limit. */ 2210 /* Perhaps we should just change `position' to the limit. */
2211 if (position > BUF_ZV (buffer) || position < BUF_BEGV (buffer)) 2211 if (position > BUF_ZV (buffer) || position < BUF_BEGV (buffer))
2212 abort (); 2212 emacs_abort ();
2213 2213
2214 /* Ignore narrowing, so that a local map continues to be valid even if 2214 /* Ignore narrowing, so that a local map continues to be valid even if
2215 the visible region contains no characters and hence no properties. */ 2215 the visible region contains no characters and hence no properties. */