1UNFLATTENLOFIG(3)        MBK LOGICAL UTILITY FUNCTIONS       UNFLATTENLOFIG(3)
2
3
4

NAME

6       unflattenlofig - creates a hierarchy level from instances of a figure
7

SYNOPSIS

9       #include "mlo.h"
10       void unflattenlofig(ptfig, figname, insname, list)
11       lofig_list ∗ptfig;
12       char ∗figname;
13       char ∗insname;
14       chain_list ∗list;
15

PARAMETERS

17       ptfig               Pointer to a logical figure
18
19       figname             Name of the new figure (model)
20
21       insname             Instance name of the new figure
22
23       list                Pointer  to  the  head  of a chain_list, containing
24                           instance pointers
25

DESCRIPTION

27       unflattenlofig creates a new figure, figname, containing the  instances
28       listed in list, and adds it in the figure pointed to by ptfig, with the
29       name insname.
30       All the terminals of the new figure are called using the  name  of  the
31       corresponding signal if it exists, or with the name of a connector con‐
32       nected to this signal.   The  new  name  is  suffixed  with  a  number,
33       obtained  with  an  internal counter, in order to ensure that names are
34       different.
35

ERRORS

37       No errors can directly result from a call to unflattenlofig, but  since
38       it  uses  many  other  mbk  functions,  it may be a good error starting
39       point.
40

EXAMPLE

42       #include "mlo.h"
43       {
44        lofig_list *lofig;
45        chain_list *list = NULL;
46        lofig = getlofig ( "rootfig", 'A');
47        list = addchain (list, (void *)getloins (lofig, "nan0");
48        list = addchain (list, (void *)getloins (lofig, "nor2");
49        unflattenlofig ( lofig, "newfig", "newins", list);
50       }
51

SEE ALSO

53       mbk(1), mbkenv(3),  lofig(3),  getlofig(3),  addlofig(3),  addloins(3),
54       delloins(3),   addlocon(3),  addlosig(3),  dellosig(3),  getsigname(3),
55       lofigchain(3),  getptype(3),  addptype(3),  delptype(3),   addchain(3),
56       freechain(3), reverse(3).
57
58
59
60
61
62
63ASIM/LIP6                       October 1, 1997              UNFLATTENLOFIG(3)
Impressum