getptype - retrieve a ptype from a ptype_list
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
#include mut315.h"
ptype_list *getptype(pthead,type)
ptype_list *pthead;
long type;
getptype looks for a ptype element in the list pointed to by pthead.
getptype returns a pointer to the ptype that match the type. Be careful, it is not the ptype->DATA that is returned. If no ptype has the given type, then NULL is returned.
#include mut315.h"
#include mph315.h"
void get_corner(ptfig, name, x2, y2)
phfig_list *ptfig;
char *name;
int *x2, *y2;
{
phins_list *i = getphins(ptfig, name);
ptype_list *p = getptype(i->USER, (long)PLACEABOX);
*x2 = (num_list *)(p->DATA)->DATA;
*y2 = (num_list *)(p->DATA)->NEXT->DATA;
}
mbk(1) , ptype(3) , addptype(3) , freeptype(3) , delptype(3) .
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.