APM_NEVENTS
if (sc->event_count == APM_NEVENTS) {
sc->event_ptr %= APM_NEVENTS;
struct apm_event_info event_list[APM_NEVENTS];
i = sc->sc_event_ptr + APM_NEVENTS - sc->sc_event_count;
i %= APM_NEVENTS;
struct apm_event_info sc_event_list[APM_NEVENTS];
(sc->sc_event_count < APM_NEVENTS)) {
sc->sc_event_ptr %= APM_NEVENTS;
if (sc->sc_event_count == APM_NEVENTS)
sc->sc_event_ptr %= APM_NEVENTS;
i = sc->sc_event_ptr + APM_NEVENTS - sc->sc_event_count;
i %= APM_NEVENTS;
struct apm_event_info sc_event_list[APM_NEVENTS];
if (sc->sc_event_count == APM_NEVENTS)
sc->sc_event_ptr %= APM_NEVENTS;
i = sc->sc_event_ptr + APM_NEVENTS - sc->sc_event_count;
i %= APM_NEVENTS;