Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

delchain(3) [minix man page]

DELCHAIN(3)						       MBK UTILITY FUNCTIONS						       DELCHAIN(3)

NAME
delchain - delete an element of a chain_list ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
#include "mut.h" chain_list *delchain(pthead, ptdel) chain_list *pthead; chain_list *ptdel; PARAMETERS
pthead Pointer to a chain list ptdel Pointer to the element to be deleted. DESCRIPTION
delchain deletes the element of the chain_list pointed to by ptdel in the list pointed to by pthead. The list consistency is maintainded, and the element put back in the list of free blocks. RETURN VALUE
delchain returns a pointer to the new head of list if the ptdel pointer used to belong to the list. In most case, it has the value of pthead. If the pointer doesn't belong to the list, NULL is returned. ERROR
"*** mbk error *** delchain impossible : pointer NULL" At least one of the arguments are pointing to NULL, and that clear that such a pointer can't be deleted, or used for freeing. EXAMPLE
#include "mut.h" void delete_match(c0, c1) chain_list *c0, *c1; { chain_list *t0, *t1, *next; for (t0 = c0; t0; t0 = next) for (t1 = c1; t1; t1 = t1->NEXT) if (t1->DATA == t0->DATA) next = delchain(c0, t0); } SEE ALSO
mbk(1), chain(3), addchain(3), freechain(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 DELCHAIN(3)

Check Out this Related Man Page

UNFLATTENLOFIG(3)					   MBK LOGICAL UTILITY FUNCTIONS					 UNFLATTENLOFIG(3)

NAME
unflattenlofig - creates a hierarchy level from instances of a figure ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
#include "mlo.h" void unflattenlofig(ptfig, figname, insname, list) lofig_list *ptfig; char *figname; char *insname; chain_list *list; PARAMETERS
ptfig Pointer to a logical figure figname Name of the new figure (model) insname Instance name of the new figure list Pointer to the head of a chain_list, containing instance pointers DESCRIPTION
unflattenlofig creates a new figure, figname, containing the instances listed in list, and adds it in the figure pointed to by ptfig, with the name insname. All the terminals of the new figure are called using the name of the corresponding signal if it exists, or with the name of a connector connected to this signal. The new name is suffixed with a number, obtained with an internal counter, in order to ensure that names are differents. ERRORS
No errors can directly result from a call to unflattenlofig, but since it uses many other mbk functions, it may be a good error starting point. EXAMPLE
#include "mlo.h" { lofig_list *lofig; chain_list *list = NULL; lofig = getlofig ( "rootfig", 'A'); list = addchain (list, (void *)getloins (lofig, "nan0"); list = addchain (list, (void *)getloins (lofig, "nor2"); unflattenlofig ( lofig, "newfig", "newins", list); } SEE ALSO
mbk(1), mbkenv(3), lofig(3), getlofig(3), addlofig(3), addloins(3), delloins(3), addlocon(3), addlosig(3), dellosig(3), getsigname(3), lofigchain(3), getptype(3), addptype(3), delptype(3), addchain(3), freechain(3), reverse(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 UNFLATTENLOFIG(3)
Man Page