示例#1
0
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;
	}
}
示例#2
0
文件: main.c 项目: guru1014/stab
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();
    }
}
示例#3
0
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());
		}
	}
}