aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-07-17 13:12:24 +0400
committerDmitry Antipov2012-07-17 13:12:24 +0400
commitcce7fefcabe5794120d08714cbef6bba0c264226 (patch)
tree1b9368a12f1ea3193bc8c534729e83080ea415d6 /src/alloc.c
parentefc26dbecd1b548d6f44267ce13b56dbad8ab783 (diff)
downloademacs-cce7fefcabe5794120d08714cbef6bba0c264226.tar.gz
emacs-cce7fefcabe5794120d08714cbef6bba0c264226.zip
Cleanup and convert miscellaneous checks to eassert.
* alloc.c (mark_interval): Fix comment, partially rephrase old comment from intervals.h (see below). * intervals.c (find_interval, adjust_intervals_for_insertion) (delete_interval, adjust_intervals_for_deletion) (graft_intervals_into_buffer, temp_set_point_both, copy_intervals): Convert to eassert. (adjust_intervals_for_insertion, make_new_interval): Remove obsolete and unused code. * intervals.h (struct interval): Remove obsolete comment. * textprotp.c (erase_properties): Remove unused code. (Fadd_text_properties, set_text_properties_1, Fremove_text_properties) (Fremove_list_of_text_properties): Convert to eassert.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 6cbd63f716c..67ff3459e71 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1533,7 +1533,9 @@ make_interval (void)
1533static void 1533static void
1534mark_interval (register INTERVAL i, Lisp_Object dummy) 1534mark_interval (register INTERVAL i, Lisp_Object dummy)
1535{ 1535{
1536 eassert (!i->gcmarkbit); /* Intervals are never shared. */ 1536 /* Intervals should never be shared. So, if extra internal checking is
1537 enabled, GC aborts if it seems to have visited an interval twice. */
1538 eassert (!i->gcmarkbit);
1537 i->gcmarkbit = 1; 1539 i->gcmarkbit = 1;
1538 mark_object (i->plist); 1540 mark_object (i->plist);
1539} 1541}