void setupheaders() { struct hdrinfo *hi; STAB *s; for (hi = HdrInfo; hi->hi_field != NULL; hi++) { s = stab(hi->hi_field, ST_HEADER, ST_ENTER); s->s_header.hi_flags = hi->hi_flags; s->s_header.hi_ruleset = NULL; } }
int16_t main(void) { /* Configure the oscillator for the device */ ConfigureOscillator(); /* Initialize IO ports and peripherals */ InitApp(); /* TODO <INSERT USER APPLICATION CODE HERE> */ while(1) { stab(); } }
void BP_EndpointList::range(const BP_Endpoint& min, const BP_Endpoint& max, DT_Index& first, DT_Index& last, BP_ProxyList& proxies) const { first = stab(min, proxies); last = std::upper_bound(begin(), end(), max) - begin(); DT_Index i; for (i = first; i != last; ++i) { const BP_Endpoint& endpoint = (*this)[i]; if (endpoint.getType() == BP_Endpoint::MINIMUM) { proxies.add(endpoint.getProxy()); } } }