Lines Matching refs:events_used
588 Int events_used;
714 while (i < cgs->events_used) {
723 tl_assert(i >= 0 && i < cgs->events_used);
726 ev2 = ( i < cgs->events_used-1 ? &cgs->events[i+1] : NULL );
727 ev3 = ( i < cgs->events_used-2 ? &cgs->events[i+2] : NULL );
880 cgs->events_used = 0;
886 if (cgs->events_used == N_EVENTS)
888 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS);
889 evt = &cgs->events[cgs->events_used];
899 cgs->events_used++;
910 if (cgs->events_used == N_EVENTS)
912 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS);
913 evt = &cgs->events[cgs->events_used];
919 cgs->events_used++;
935 lastEvt = &cgs->events[cgs->events_used-1];
936 if (cgs->events_used > 0
947 if (cgs->events_used == N_EVENTS)
949 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS);
950 evt = &cgs->events[cgs->events_used];
956 cgs->events_used++;
978 tl_assert(cgs->events_used >= 0);
980 tl_assert(cgs->events_used == 0);
1014 if (cgs->events_used == N_EVENTS)
1016 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS);
1017 evt = &cgs->events[cgs->events_used];
1022 cgs->events_used++;
1034 if (cgs->events_used == N_EVENTS)
1036 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS);
1037 evt = &cgs->events[cgs->events_used];
1042 cgs->events_used++;
1092 cgs.events_used = 0;