Lines Matching refs:events_used
310 Int events_used;
392 for(i=0; i<clgs->events_used; i++) {
432 for(i = 0; i < clgs->events_used; i = inew) {
441 tl_assert(i >= 0 && i < clgs->events_used);
444 ev2 = ( i < clgs->events_used-1 ? &clgs->events[i+1] : NULL );
445 ev3 = ( i < clgs->events_used-2 ? &clgs->events[i+2] : NULL );
596 clgs->events_used = 0;
605 if (clgs->events_used == N_EVENTS)
607 tl_assert(clgs->events_used >= 0 && clgs->events_used < N_EVENTS);
608 evt = &clgs->events[clgs->events_used];
612 clgs->events_used++;
624 if (clgs->events_used == N_EVENTS)
626 tl_assert(clgs->events_used >= 0 && clgs->events_used < N_EVENTS);
627 evt = &clgs->events[clgs->events_used];
633 clgs->events_used++;
647 lastEvt = &clgs->events[clgs->events_used-1];
648 if (clgs->events_used > 0
659 if (clgs->events_used == N_EVENTS)
661 tl_assert(clgs->events_used >= 0 && clgs->events_used < N_EVENTS);
662 evt = &clgs->events[clgs->events_used];
668 clgs->events_used++;
689 tl_assert(clgs->events_used >= 0);
691 tl_assert(clgs->events_used == 0);
724 if (clgs->events_used == N_EVENTS)
726 tl_assert(clgs->events_used >= 0 && clgs->events_used < N_EVENTS);
727 evt = &clgs->events[clgs->events_used];
732 clgs->events_used++;
744 if (clgs->events_used == N_EVENTS)
746 tl_assert(clgs->events_used >= 0 && clgs->events_used < N_EVENTS);
747 evt = &clgs->events[clgs->events_used];
752 clgs->events_used++;
761 if (clgs->events_used == N_EVENTS)
763 tl_assert(clgs->events_used >= 0 && clgs->events_used < N_EVENTS);
764 evt = &clgs->events[clgs->events_used];
768 clgs->events_used++;
1011 clgs.events_used = 0;