Пример #1
0
static boolean popmenubarlist (hdlmenubarstack hstack) {
	
	/*
	unlink the indicated menubar from the menubarlist
	*/
	
	return (listunlink ((hdllinkedlist) menubarlist, (hdllinkedlist) hstack));
	} /*popmenubarlist*/
Пример #2
0
static boolean dbclosefile (hdlodbrecord hodb) {
	
	if (!odbclosefile ((**hodb).odb))
		return (false);
	
	closefile ((**hodb).fref);
	
	listunlink ((hdllinkedlist) hodblist, (hdllinkedlist) hodb);
	
	disposehandle ((Handle) hodb);
	
	return (true);
	} /*dbclosefile*/
Пример #3
0
LIST *listdel(LIST * head, LIST * elt, freefunc func)
{
    if (!elt)
	return head;

    if (head)
	head = listunlink(head, elt);

    if (func)
	(*func) (elt);
    G_free(elt);

    return head;
}