1DELRDSINSREC(3) RDS PHYSICAL FUNCTIONS DELRDSINSREC(3)
2
3
4
6 delrdsinsrec - deletes a rectangle of an instance
7
9 #include"rdsnnn.h"
10 int delrdsinsrec( Instance, Rectangle )
11 rdsins_list ∗Instance;
12 rdsrec_list ∗Rectangle;
13
15 Instance Instance which contains the rectangle to delete.
16
17 Rectangle The rectangle to delete.
18
20 The delrdsinsrec function deletes a rectangle of an RDS instance.
21
23 1 => The rectangle has been deleted.
24 0 => The rectangle doesn't exist.
25
27 None
28
30 #include "mutnnn.h"
31 #include "rdsnnn.h"
32 #include "rtlnnn.h"
33 typedef struct UserStruct
34 {
35 char ∗STRING;
36 void ∗USER1;
37 } UserStruct;
38 main()
39 {
40 rdsfig_list ∗Figure;
41 rdsrec_list ∗Rectangle;
42 rdsins_list ∗Instance;
43 int Result;
44 mbkenv();
45 rdsenv();
46 loadrdsparam();
47 Figure = addrdsfig ("core",sizeof ( UserStruct ) );
48 Instance = addrdsins (Figure,"na2_y","and2",RDS_NOSYM,8,6);
49 Rectangle =
50 addrdsinsrec(Instance,"Alu1",RDS_ALU1,2,4,12,1);
51 /∗
52 destruction of the rectangle of the instance
53 ∗/
54 Result = delrdsinsrec ( Instance,Rectangle );
55 if ( Result == 0 ) printf("Rectangle not found !\n");
56 }
57
59 librds, allocrdsinsrec
60
61
62
63
64
65
66ASIM/LIP6 October 1, 1997 DELRDSINSREC(3)