Lines Matching defs:notice

76  * a notice points to an event.  a notice has the following fields:
81 * isdummy = tells whether this notice points to a real event or
82 * is just a dummy notice (one that is used to "mark off"
84 * key = points back to the key that points to this notice,
86 * left = points to the notice immediately preceding this one.
87 * right = points to the notice immediately following this one.
89 struct notice { time_t time;
94 struct notice *left;
95 struct notice *right; };
98 struct notice *current = NULL;
104 * notice = pointer to the notice with max time.
110 struct notice *notice;
139 struct notice *nprev, *n;
152 /* create first dummy notice */
153 n = (struct notice *)xmalloc(sizeof (struct notice));
162 k->notice = n;
165 /* make notice point to key */
173 n = (struct notice *)xmalloc(sizeof (struct notice));
182 k->notice = n;
194 /* create last dummy notice */
195 n = (struct notice *)xmalloc(sizeof (struct notice));
205 k->notice = n;
237 struct notice *n, *n2;
251 /* allocate new notice */
252 n = (struct notice *)xmalloc(sizeof (struct notice));
272 n2 = k->notice;
274 /* create a key which will point to notice n2 */
278 k2->notice = n2;
284 /* which of the new sublists will hold the new notice? */
288 * the new notice n is ready to be inserted
292 n2 = k->notice;
314 * the notice list. if n is the sole element of a sublist, the
319 struct notice *n, *n2;
341 (n->key)->notice = n->left; }
353 if ((!(kl->notice)->isdummy) &&
356 (kl->notice)->key = NULL;
361 } else if ((!(k->notice)->isdummy) &&
365 (k->notice)->key = NULL;
383 n = (k->notice)->right;
406 struct notice *n, *fn;
420 (k->notice)->time += DT;
423 * remove the notice, key, and index corresponding
430 fn = fk->notice;
444 n = (k->notice)->left;
451 * n points to first notice of the new overflow interval
466 /* insert the new dummy notice */
508 struct notice *n, *n2;
515 n = k->notice;