Lines Matching defs:index
115 * the index list breaks the keys into time intervals as specified in init.
116 * the index is "shifted" one time interval whenever el_first returns an
122 struct index { struct key *key;
123 struct index *right; };
125 /* index pts to the front of the index list */
126 static struct index *index = NULL;
137 struct index *indprev, *ind;
149 * initialize index, keys, and notices
167 /* no index element to allocate this time */
169 /* create dummy notices, dummy keys, and index elements */
187 ind = (struct index *)xmalloc(sizeof (struct index));
190 index = ind;
210 /* create last index element */
211 ind = (struct index *)xmalloc(sizeof (struct index));
235 struct index *ind;
244 if ((index == NULL) || (time <= 0)) {
260 ind = index;
322 if ((index == NULL) || (current == NULL))
381 k = (index->key)->left;
408 struct index *ind, *fi;
412 if ((index == NULL) || (current == NULL))
415 while ((index->key)->time < current->time) {
418 k = index->key;
423 * remove the notice, key, and index corresponding
428 fi = index;
435 index = index->right;
437 ind = index;
439 /* ind points to the next to last index interval */
454 * insert the new index element
506 struct index *ind, *ind2;
510 if (index == NULL)
512 ind = index;
529 index = NULL;