Example #1
0
WThing *prev_thing(WThing *first, const WObjDescr *descr)
{
	if(first==NULL)
		return NULL;
	
	return get_prev_thing(first, descr);
}
Example #2
0
File: thing.c Project: Cougar/pwm
WThing *prev_thing(WThing *first, int filt)
{
	if(first==NULL)
		return NULL;

	return get_prev_thing(first->t_prev, filt);
}
Example #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);
}