Table of Contents

Name

delptype - delete an element of a ptype_list

Origin

This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie 4, place Jussieu 75252 PARIS Cedex 05 FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr

Synopsys

#include mut315.h"
ptype_list *delptype(pthead, type)
ptype_list *pthead;
long type;

Parameters

pthead
Pointer to a ptype list
type
The pointer of this type is to be deleted.

Description

delptype deletes the element of the ptype_list that has the type type in the list pointed to by pthead. The list consistency is maintained, and the element put back in the list of free blocks.

Return Value

delptype returns a pointer to the new head of list if a typed pointer used to belong to the list. In most case, it has the value of pthead. If the type doesn't belong to the list, NULL is returned.

Error

*** mbk error *** delptype impossible : pthead = NULL" The pointer to the head of list is NULL, and that clear that such a list can't be ran thru.

Example

#include mut315.h"
#include mph315.h"
void delete_user(ptfig)
phfig_list *ptfig;
{
phins_list *i;
for (i = ptfig->PHINS; i; i = i->NEXT) i->USER = delptype(i->USER, PLACEABOX); }

See Also

mbk(1) , ptype(3) , addptype(3) , getptype(3) , freeptype(3) .

Bug Report

This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.