aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorKen Raeburn2000-03-22 21:44:05 +0000
committerKen Raeburn2000-03-22 21:44:05 +0000
commit439d5cb4f7aa541a93c9c5003188918af097b82a (patch)
treead3ce3a953fa8442bd99f71544cf645dd6ecb6a6 /src/ChangeLog
parent89084293988e60922e51698a441ec71ab0d2363b (diff)
downloademacs-439d5cb4f7aa541a93c9c5003188918af097b82a.tar.gz
emacs-439d5cb4f7aa541a93c9c5003188918af097b82a.zip
Changes towards better type safety regarding intervals, primarily
regarding the "parent" handle. These just separate out the different usages based on the type of parent (interval vs lisp object); later changes will do type checking and enforcement. * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. (INT_LISPLIKE): New macro. (NULL_INTERVAL_P): Use it. (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT, SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT, GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all explicit references to "parent" field of struct interval and associated unclean type conversions. * intervals.c (create_root_interval, root_interval, rotate_right, rotate_left, balance_possible_root_interval, split_interval_right, split_interval_left, interval_start_pos, find_interval, next_interval, previous_interval, update_interval, adjust_intervals_for_insertion, delete_node, delete_interval, adjust_intervals_for_deletion, merge_interval_right, merge_interval_left, reproduce_tree, graft_intervals_into_buffer, copy_intervals_to_string): Likewise. * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): Likewise. * syntax.c (update_syntax_table): Likewise. * intervals.c (reproduce_tree_obj): New function, like reproduce_tree but takes a Lisp_Object for the parent. Declare with prototype. (graft_intervals_into_buffer): Use it when appropriate. (reproduce_tree): Declare with prototype. (balance_possible_root_interval): Check that the parent is a lisp object before trying to examine its type.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1d1916b24bc..3ee198fecd3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,35 @@
12000-03-22 Ken Raeburn <raeburn@gnu.org>
2
3 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
4 (INT_LISPLIKE): New macro.
5 (NULL_INTERVAL_P): Use it.
6 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
7 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
8 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9
10 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11 explicit references to "parent" field of struct interval and
12 associated unclean type conversions.
13 * intervals.c (create_root_interval, root_interval, rotate_right,
14 rotate_left, balance_possible_root_interval, split_interval_right,
15 split_interval_left, interval_start_pos, find_interval,
16 next_interval, previous_interval, update_interval,
17 adjust_intervals_for_insertion, delete_node, delete_interval,
18 adjust_intervals_for_deletion, merge_interval_right,
19 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
20 copy_intervals_to_string): Likewise.
21 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
22 Likewise.
23 * syntax.c (update_syntax_table): Likewise.
24
25 * intervals.c (reproduce_tree_obj): New function, like
26 reproduce_tree but takes a Lisp_Object for the parent. Declare
27 with prototype.
28 (graft_intervals_into_buffer): Use it when appropriate.
29 (reproduce_tree): Declare with prototype.
30 (balance_possible_root_interval): Check that the parent is a lisp
31 object before trying to examine its type.
32
12000-03-22 Gerd Moellmann <gerd@gnu.org> 332000-03-22 Gerd Moellmann <gerd@gnu.org>
2 34
3 * xfaces.c (lface_same_font_attributes_p): Compare font attributes 35 * xfaces.c (lface_same_font_attributes_p): Compare font attributes