diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 14:12:11 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 14:12:11 -0700 |
commit | 0c94c8d603031f6b665ae7f3136ca77fb573fd7e (patch) | |
tree | fabdd332bf09c4ea02198aa36a6a7bdab7e43397 /src/intervals.h | |
parent | ee21815118944347ad0c45d47af651e7283709d2 (diff) | |
download | emacs-0c94c8d603031f6b665ae7f3136ca77fb573fd7e.tar.gz emacs-0c94c8d603031f6b665ae7f3136ca77fb573fd7e.tar.bz2 emacs-0c94c8d603031f6b665ae7f3136ca77fb573fd7e.zip |
A few more naming-convention fixes for getters and setters.
* buffer.c (set_buffer_overlays_before): Move here from buffer.h,
and rename from buffer_overlays_set_before.
(set_buffer_overlays_after): Move here from buffer.h, and rename
from buffer_overlays_set_after.
* buffer.h (buffer_intervals): Rename from buffer_get_intervals.
All uses changed.
(set_buffer_intervals): Rename from buffer_set_intervals.
* intervals.c (set_interval_object): Move here from intervals.h,
and rename from interval_set_object.
(set_interval_left): Move here from intervals.h, and rename from
interval_set_left.
(set_interval_right): Move here from intervals.h, and rename from
interval_set_right.
(copy_interval_parent): Move here from intervals.h, and rename from
interval_copy_parent.
* intervals.h (set_interval_parent): Rename from interval_set_parent.
(set_interval_plist): Rename from interval_set_plist.
Return void, not Lisp_Object, since no caller uses the result.
* lisp.h (string_intervals): Rename from string_get_intervals.
(set_string_intervals): Rename from string_set_intervals.
Diffstat (limited to 'src/intervals.h')
-rw-r--r-- | src/intervals.h | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/src/intervals.h b/src/intervals.h index a5166c6376f..01e72d7c9db 100644 --- a/src/intervals.h +++ b/src/intervals.h @@ -137,47 +137,16 @@ struct interval or pointer slots of struct interval. */ INTERVALS_INLINE void -interval_set_parent (INTERVAL i, INTERVAL parent) +set_interval_parent (INTERVAL i, INTERVAL parent) { i->up_obj = 0; i->up.interval = parent; } INTERVALS_INLINE void -interval_set_object (INTERVAL i, Lisp_Object obj) -{ - eassert (BUFFERP (obj) || STRINGP (obj)); - i->up_obj = 1; - i->up.obj = obj; -} - -INTERVALS_INLINE void -interval_set_left (INTERVAL i, INTERVAL left) -{ - i->left = left; -} - -INTERVALS_INLINE void -interval_set_right (INTERVAL i, INTERVAL right) -{ - i->right = right; -} - -INTERVALS_INLINE Lisp_Object -interval_set_plist (INTERVAL i, Lisp_Object plist) +set_interval_plist (INTERVAL i, Lisp_Object plist) { i->plist = plist; - return plist; -} - -/* Make the parent of D be whatever the parent of S is, regardless - of the type. This is used when balancing an interval tree. */ - -INTERVALS_INLINE void -interval_copy_parent (INTERVAL d, INTERVAL s) -{ - d->up = s->up; - d->up_obj = s->up_obj; } /* Get the parent interval, if any, otherwise a null pointer. Useful @@ -191,11 +160,11 @@ interval_copy_parent (INTERVAL d, INTERVAL s) { \ (i)->total_length = (i)->position = 0; \ (i)->left = (i)->right = NULL; \ - interval_set_parent (i, NULL); \ + set_interval_parent (i, NULL); \ (i)->write_protect = 0; \ (i)->visible = 0; \ (i)->front_sticky = (i)->rear_sticky = 0; \ - interval_set_plist (i, Qnil); \ + set_interval_plist (i, Qnil); \ } /* Copy the cached property values of interval FROM to interval TO. */ |