return 1;
}
\f
-static int icount;
-static int idepth;
-static int zero_length;
/* Traverse an interval tree TREE, performing FUNCTION on each node.
Pass FUNCTION two args: an interval, and ARG. */
}
\f
#if 0
+
+static int icount;
+static int idepth;
+static int zero_length;
+
/* These functions are temporary, for debugging purposes only. */
INTERVAL search_interval, found_interval;
/* Deal with any Parent of A; make it point to B. */
if (! ROOT_INTERVAL_P (interval))
- if (AM_LEFT_CHILD (interval))
- interval->parent->left = B;
- else
- interval->parent->right = B;
+ {
+ if (AM_LEFT_CHILD (interval))
+ interval->parent->left = B;
+ else
+ interval->parent->right = B;
+ }
B->parent = interval->parent;
/* Make B the parent of A */
/* Deal with any parent of A; make it point to B. */
if (! ROOT_INTERVAL_P (interval))
- if (AM_LEFT_CHILD (interval))
- interval->parent->left = B;
- else
- interval->parent->right = B;
+ {
+ if (AM_LEFT_CHILD (interval))
+ interval->parent->left = B;
+ else
+ interval->parent->right = B;
+ }
B->parent = interval->parent;
/* Make B the parent of A */
int offset;
{
INTERVAL new = make_interval ();
- int position = interval->position;
int new_length = offset;
new->position = interval->position;
register INTERVAL interval;
{
register INTERVAL i;
- register int position_of_previous;
if (NULL_INTERVAL_P (interval))
return NULL_INTERVAL;
{
register int left_to_delete = length;
register INTERVAL tree = BUF_INTERVALS (buffer);
- register int deleted;
Lisp_Object parent;
int offset;
register struct buffer *buffer;
register int charpos, bytepos;
{
- register INTERVAL to, from, toprev, fromprev, target;
+ register INTERVAL to, from, toprev, fromprev;
int buffer_point;
- register Lisp_Object obj;
int old_position = BUF_PT (buffer);
int backwards = (charpos < old_position ? 1 : 0);
int have_overlays;
int multi_flag;
int start, start_byte, end, end_byte;
{
- INTERVAL left, right;
-
/* Fix the length of this interval. */
if (multi_flag)
i->total_length = end - start;