1SEGMBKRDS(3)                RDS PHYSICAL FUNCTIONS                SEGMBKRDS(3)
2
3
4

NAME

6       segmbkrds - adds to RDS figure a segment from a MBK figure
7

SYNOPSIS

9       #include "rfmnnn.h"
10        rdsrec_list ∗segmbkrds( Figure, Segment, Lynx )
11           rdsfig_list ∗Figure;
12           phseg_list  ∗Segment;
13           char         Lynx;
14

PARAMETER

16       Figure              The  RDS  figure which has to receive the converted
17                           segment.
18
19       Segment             MBK segment to convert to RDS rectangle.
20
21       Lynx                Flag used for the segment conversion. If the param‐
22                           eter  Lynx is set to 0 then this is the normal con‐
23                           version mode. If the parameter Lynx  is  set  to  1
24                           then the rds structure generated permits to extract
25                           equipotentials rectangles.
26

DESCRIPTION

28       The segmbkrds function converts and creates a RDS segment  from  a  MBK
29       segment.  The segment is attached to the RDS figure in parameter of the
30       segmbkrds function. See the rdsfig_list structure in librds.
31

RETURN VALUE

33       Pointer to the newly created RDS segment.
34

ERRORS

36       "Rds202: rdsalloc error, can't continue !"
37              it's impossible to allocate the memory size desired
38

EXAMPLE

40               #include "mphnnn.h"
41               #include "mutnnn.h"
42               #include "rdsnnn.h"
43               #include "rfmnnn.h"
44               #include "rtlnnn.h"
45               typedef struct UserStruct
46                {
47                  char ∗STRING;
48                  void ∗USER1;
49                } UserStruct;
50               main()
51                 {
52                   phfig_list  ∗MbkFigure;
53                   rdsfig_list ∗RdsFigure;
54                   rdsrec_list ∗Segment;
55                   mbkenv();
56                   rdsenv();
57                   loadrdsparam();
58                   RdsFigure =
59                      addrdsfig ("core",sizeof ( UserStruct ) );
60                   MbkFigure->PHSEG =
61                      addphseg ( MbkFigure, ALU1, 1, 1, 1, 2, 12, "seg_alu1");
62                   Segment = segmbkrds (RdsFigure, MbkFigure->PHSEG, 0);
63                   viewrdsrec ( Segment );
64                 }
65

SEE ALSO

67       librds, librfm, viewrfmseg, loadrdsparam
68
69
70
71
72
73
74ASIM/LIP6                       October 1, 1997                   SEGMBKRDS(3)
Impressum