viewphseg3
Display elements of a phseg_list
Synopsys
#include "mph.h" void viewphseg(pt) phseg_list ∗pt;
Parameter
- pt
-
Pointer to the
phsegto be scaned
Overview
viewphseg scans all the primary elements of the phseg_list pointed to by pt, and displays a textual output of the data strcuture contents.
Its use is mostly for debugging purposes, and educational ones, since the output is quite verbose, even if very easy to understand.
Examples
#include <stdio.h>
#include "mph.h"
void view_seg(ptfig)
phfig_list ∗ptfig;
{
phseg_list ∗seg;
for (seg = ptfig->PHSEG; seg; seg = seg->NEXT)
viewphseg(seg);
}
Releases
4 releases since Debian 7 (Wheezy); the text changed 1 time.