|
NAMEaddphseg - create a physical segment See the file man1/alc_origin.1. SYNOPSIS#include "mph.h" phseg_list ∗addphseg(ptfig, layer, width, x1, y1, x2, y2, nodename) phfig_list ∗ptfig; char layer; long width; long x1, y1, x2, y2; char ∗nodename; PARAMETERS
DESCRIPTIONaddphseg creates a new segment at the given coordinates,
possibly called segname, and adds it to the list of segments pointed
to by ptfig->PHSEG. The new segment is added in front of the list,
and becomes itself the list head. The segment name is an optional
information, and does not allow the segment identification. When not needed,
this parameter should be set to NULL.
RETURN VALUEaddphseg returns a pointer to the newly created segment. ERRORS"∗∗∗ mbk error ∗∗∗ illegal addphseg wrong layer code layer in x1, y1, x2, y2" The layer parameter is out of range, and does not
represent a legal symbolic layer. See phseg(3) for a complete list of
layers.
"∗∗∗ mbk error ∗∗∗ illegal
addphseg : x1, y1, x2,
y2"
The segment coordinates are such that the segment is
neither vertical nor horizontal. So it's not a legal symbolic segment.
EXAMPLE
#include "mph.h"
phseg_list ∗du_seg(pfd, pfs)
phfig_list ∗pfd, ∗pfs;
{
phseg_list ∗ps;
/∗ names don't matter ∗/
for (ps = pfs->PHSEG; ps != NULL; ps = ps->NEXT)
addphseg(pfd, ps->LAYER, ps->WIDTH, ps->X1, ps->Y1,
ps->X2, ps->Y2, NULL);
}
SEE ALSOmbk(1), phfig(3), phseg(3), delphseg(3). See the file man1/alc_bug_report.1.
|