|
NAMEaddphvia - create a physical via See the file man1/alc_origin.1. SYNOPSIS#include "mph.h" phvia_list ∗addphvia(ptfig, viatype, x, y) phfig_list ∗ptfig; char viatype; long x, y; PARAMETERSDESCRIPTIONaddphvia creates a new via whose center is at the given
coordinates, and adds it to the list of vias pointed to by
ptfig->PHVIA. The new via is added in front of the list, and
becomes itself the list head.
RETURN VALUEaddphvia returns a pointer to the newly created via. ERRORS"∗∗∗ mbk error ∗∗∗ illegal addphvia viatype : viatype at x, y" The via type is not a predefined contact. For a list of
legal via types, see phvia(3).
EXAMPLE
#include "mph.h"
phvia_list ∗via_dup(pfd, pfs) /∗ duplicate vias ∗/
phfig_list ∗pfd, ∗pfs;
{
phvia_list ∗pv;
for (pv = pfs->phvia; pv != NULL; pv = pv->NEXT)
addphvia(pfd, pv->TYPE, ps->XVIA, ps->YVIA);
return pfd->PHVIA;
}
SEE ALSOmbk(1), phfig(3), phvia(3), delphvia(3). See the file man1/alc_bug_report.1.
|