]> git.eshelyaron.com Git - emacs.git/commit
* src/intervals.c: Tighten assertions.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 May 2014 15:15:46 +0000 (11:15 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 May 2014 15:15:46 +0000 (11:15 -0400)
commit23c931aa24622cafab8e30c4f779b70f2390a409
tree054a070f44869a310a4c3daf307de77565f1dff7
parentf40c5041bb429029ef066552d0768fe61bd1f163
* src/intervals.c: Tighten assertions.
(create_root_interval): Make sure the interval is not empty.
(intervals_equal): Use booleans.
(rotate_right, rotate_left): Check LENGTHs rather than TOTAL_LENGTH.
(balance_an_interval): Sanity check LENGTHs and TOTAL_LENGTHs.
(balance_possible_root_interval): Simplify and use booleans.
(split_interval_right, split_interval_left): Check LENGTH, and remove
now redundant assertion.
(adjust_intervals_for_insertion): Remove now redundant assertions.
(delete_node, interval_deletion_adjustment)
(adjust_intervals_for_deletion, merge_interval_right)
(merge_interval_left): Check LENGTH rather than TOTAL_LENGTH.
(reproduce_interval): Make sure the interval is not empty.
src/ChangeLog
src/intervals.c