Exemplo n.º 1
0
WThing *prev_thing(WThing *first, const WObjDescr *descr)
{
	if(first==NULL)
		return NULL;
	
	return get_prev_thing(first, descr);
}
Exemplo n.º 2
0
Arquivo: thing.c Projeto: Cougar/pwm
WThing *prev_thing(WThing *first, int filt)
{
	if(first==NULL)
		return NULL;

	return get_prev_thing(first->t_prev, filt);
}
Exemplo n.º 3
0
WThing *last_thing(WThing *parent, const WObjDescr *descr)
{
	WThing *p;
	
	if(parent==NULL)
		return NULL;
	
	p=parent->t_children;
	
	if(p==NULL)
		return NULL;
	
	p=p->t_prev;
	
	if(wobj_is((WObj*)p, descr))
		return p;
	
	return get_prev_thing(p, descr);
}